BA Elias Saarmann: Difference between revisions
m (→Boundary conditions for fields in belt...: Engl.) |
(+Code-Anpassungen für konstante Dirichtlet-RBn) |
||
| Line 88: | Line 88: | ||
(While the zero gradient conditions do not match theoretical curves they should still be appropriate as the will only lead to local <s>devastation</s>deviations near the respective boundary.) | (While the zero gradient conditions do not match theoretical curves they should still be appropriate as the will only lead to local <s>devastation</s>deviations near the respective boundary.) | ||
= Code-Anpassungen | = Code-Anpassungen...= | ||
<small>(Lothar)</small> | <small>(Lothar)</small> | ||
== für konstante Zentralmasse == | |||
* <code>M_centr</code> (o.Ä.) als weiteren Parameter in ''user_defined_parameters.h'' definieren und die Anzahl <code>USER_DEF_PARAMETERS</code> entsprechend erhöhen | * <code>M_centr</code> (o.Ä.) als weiteren Parameter in ''user_defined_parameters.h'' definieren und die Anzahl <code>USER_DEF_PARAMETERS</code> entsprechend erhöhen | ||
* den Wert von <code>M_centr</code> in ''pluto.ini'' unter <code>[Parameters]</code> setzen (in Gramm) | * den Wert von <code>M_centr</code> in ''pluto.ini'' unter <code>[Parameters]</code> setzen (in Gramm) | ||
* ''body-force.c'' aus belt/src/Misc in den Run-Folder kopieren und in Zeile 64 die <code>M_X1_BEG</code> durch <code>(g_inputParam[M_centr]/ReferenceMass)</code> ersetzen | * ''body-force.c'' aus belt/src/Misc in den Run-Folder kopieren und in Zeile 64 die <code>M_X1_BEG</code> durch <code>(g_inputParam[M_centr]/ReferenceMass)</code> ersetzen | ||
== für Dirichlet-RBn == | |||
Abgesehen von <code>reflective</code> zur Nullsetzung der Normalkomponenten von \(\vec v\) und \(\vec B\) bietet PLUTO keine Dirichlet-RBn. Workaround: | |||
* gewünschte Randwerte in <code>Init()</code> oder <code>InitDomain()</code> in den Geisterzellen (Zellen mit <code>il<IBEG</code> bzw. <code>il>IEND</code>) setzen | |||
* Wahl <code>userdef</code> in ''pluto.ini'', aber in <code>UserDefBoundary()</code> am entsprechenden Rand gar keine Manipulationen vornehmen | |||
Revision as of 15:32, 7 July 2026
Literature
Bondary Conditions
in Radiating Bondi Flows I
For the outer boundry conditions \(r \rightarrow \infty\) \[ (\tilde{\rho},\mathcal{M}, s, \tilde{L}, \tilde{E}_\text{r}) \rightarrow (1, 0, s_\infty, \tilde{L}_\infty, 1) \]
With dimensionless density \( \tilde{\rho} = \frac{\rho(r)}{\rho_\infty}\), Mach number \(\mathcal{M} = \frac{v(r)}{c_s(r)}\), dimensionless entropy \( s = \frac{S}{c_\text{V}}\) and dimensionless radiation Energy density \(\tilde{E}_\text{r} = \frac{E_\text{r}}{a_\text{r}T_\infty^4}\).
in PLUTO/belt
General independent paramters:
- Density at infinity \(\rho_\infty\)
- Temperature at infinity \(T_\infty\)
- Constant opacity \(\kappa\)
- Adiabatic constant \(\gamma\)
- Central mass \(M\)
- molecular Mass of gas molecules \(m_\text{molec}\)
Useful dependent parameters:
- Sound velocity:
\[c_\text{s} = \sqrt{\frac{T \gamma k_\text{B}}{m_\text{molec}}}\]
- Bondi Radius:
\[r_\text{B} = \frac{GM}{2c_{\text{s},\infty}^2} = \frac{GM m_\text{molec}}{2T\gamma k_\text{B}}\]
Parameters for belt:
- Central Mass:
\[M = M_\odot\]
- Optical density:
\[\kappa = \]
- Adiabatic constant/degrees of freedom
\[\gamma = \frac{7}{5} \rightarrow \text{degrees of freedom} = 5\]
- inner radius:
\[r_\text{s} = 10^{-2} r_B\]
- outer radius:
\[r_\text{s} = 10^{-2} r_B\]
- molecular mass:
\[m_\text{molec} = \]
Boundary conditions for fields in belt...
...at outer radius \(r_\text{o}\):
\[ p(r_\text{o}) = \frac{\rho_\infty k_\text{b} T_\infty}{m_\text{molec}}\]
\[ \rho (r_\text{o}) = \rho_\infty\]
\[\partial_r v(r_\text{o}) = 0\]
\[E_\text{r}(r_\text{o}) = a_\text{r} T_\infty^4\]
...at inner radius \(r_\text{s}\):
\[\partial_r p(r_\text{s}) = 0\]
\[\partial_r \rho (r_\text{s}) = 0\]
\[\partial_r v(r_\text{s}) = 0\]
\[\partial_r E_\text{r}(r_\text{s}) = 0\]
(While the zero gradient conditions do not match theoretical curves they should still be appropriate as the will only lead to local devastationdeviations near the respective boundary.)
Code-Anpassungen...
(Lothar)
für konstante Zentralmasse
M_centr(o.Ä.) als weiteren Parameter in user_defined_parameters.h definieren und die AnzahlUSER_DEF_PARAMETERSentsprechend erhöhen- den Wert von
M_centrin pluto.ini unter[Parameters]setzen (in Gramm) - body-force.c aus belt/src/Misc in den Run-Folder kopieren und in Zeile 64 die
M_X1_BEGdurch(g_inputParam[M_centr]/ReferenceMass)ersetzen
für Dirichlet-RBn
Abgesehen von reflective zur Nullsetzung der Normalkomponenten von \(\vec v\) und \(\vec B\) bietet PLUTO keine Dirichlet-RBn. Workaround:
- gewünschte Randwerte in
Init()oderInitDomain()in den Geisterzellen (Zellen mitil<IBEGbzw.il>IEND) setzen - Wahl
userdefin pluto.ini, aber inUserDefBoundary()am entsprechenden Rand gar keine Manipulationen vornehmen