-
Notifications
You must be signed in to change notification settings - Fork 0
/
bc.tex
74 lines (51 loc) · 2.84 KB
/
bc.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
\documentclass[11pt]{article}
\usepackage[margin=1in]{geometry}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{bm}
\usepackage{color}
%\usepackage{cite}
\newcommand{\gcc}{\mathrm{g~cm^{-3} }}
\newcommand{\castro}{{\sffamily{Castro}}}
\begin{document}
From the Castro paper II, \cite{castroGray} in equation (16) we have
\begin{align*}
\frac{\partial E_r}{\partial t} + \nabla \cdot \left( \frac{3-f}{2} E_r \bm{u}\right) - \lambda \bm{u} \cdot \nabla E_r = c \kappa_P \left( a T^4 - E^{(0)}_r\right) + \nabla \cdot \left( \frac{c\lambda}{\chi_R} \nabla E\right)
\end{align*}
The terms on the left (Hyperbolic subsystem) are solved with the hydro solver, while the terms on the right (parabolic system) are solved with the implicit solver. \\
The inputs file specifies the incoming radiation flux $F_{in}$ to the boundary (radiation.hi\_bcval), which is used to fill the ghost cells for the implicit solver. The hydro solver does not know about this, so the ghost cells for the radiation energy are just filled in the way the hydro BC were specified. \\
In order to fill the hydro BC for radiation energy, taking into account the radiation flux comming from the boundary, we can use Eq. (2.19) from the SANDIA report \cite{advinrad} :
\begin{align*}
F_{in} = \frac{c}{4}E_r - \frac{1}{2} \bm{\hat{n}} \cdot \bm{F} \Rightarrow
\bm{\hat{n}} \cdot \bm{F} = -2 F_{in} + \frac{c}{2} E_r
\end{align*}
Where the Flux is given by equation (2.1.5) in \cite{advinrad}
\begin{align*}
\bm{F} = -c D \nabla E_r
\end{align*}
Therefore
\begin{align*}
\bm{\hat{n}} \cdot \bm{F} = -cD \frac{\partial E_r}{\partial n}
\qquad
\Rightarrow
\qquad
\frac{\partial E_r}{\partial n} = \frac{-1}{cD} \bm{\hat{n}} \cdot \bm{F} = \frac{-1}{cD} \left[ -2 F_{in} + \frac{c}{2} E_r\right]
\end{align*}
Then at the boundary, for let's say coordinate x this leads to
\begin{align*}
\frac{E_{r,ghost} - E_{r}}{\Delta x} = \frac{-1}{cD} \left[ -2 F_{in} + \frac{c}{2} E_{r,ghost?}\right]
\qquad ,
\qquad
D = \frac{\lambda}{\chi_R}
\end{align*}
\textcolor{blue}{ Question: What value of $E_r$ should we be using on the right side of the equation?}\\
Note that $D$ is different by a factor of $c$ from Castro paper equation (8) because of the difference in Flux definition from the SANDIA report. (Equations (2.1.5) and (7) respectively) \\
% E_{r,ghost} = \frac{2D}{2D+ \Delta x} \left[ \frac{2 \Delta x}{cD} F_{in} + E_r\right]
\begin{align*}
E_{r,ghost} = E_r - \frac{\Delta x}{c D} \left[ -2 F_{in} + \frac{c}{2} E_{r,ghost?}\right]
\end{align*}
This will be implemented in a bc\_fill\_nd.F90 file in the problem setup with a ca\_radfill() routine\\
\textcolor{blue}{Question: What should we use for D? We were thinking on having D as a constant from the initialization parameters}
\bibliography{references}{}
\bibliographystyle{plain}
\end{document}