Lothars Scratch: Difference between revisions

From Arbeitsgruppe Kuiper
Jump to navigation Jump to search
(→‎InitDomain(): fix Druck-DGL)
(→‎analytisch: α≈6)
 
(3 intermediate revisions by the same user not shown)
Line 19: Line 19:
* BC_ZeroGradient für \(v_x\) (und \(v_z\))
* BC_ZeroGradient für \(v_x\) (und \(v_z\))


==== analytisch ====
Für einen linearen Verlauf \(T=T_0-T'\, y\) mit \(T'=(T_0-T_1)/L_y\) können Druck- und Dichteprofil analytisch bestimmt werden, Letzteres lautet
\[
\rho(y)=\frac{P_0\,m}{k_\text{B}T_0}\left(1-\frac{T'}{T_0}y\right)^{\alpha-1}
\qquad,\qquad
\alpha = \frac{mg}{k_\text{B}T'}
\]
Für eine "Inversionslage" muss \(\alpha<1\) gelten. Für die ursprünglichen Werte (\(T'=9\cdot 10^6 K/R_\odot, g=GM_\odot/R_\odot^2\)) gilt aber \(\alpha\approx 6\).
<small>(/ (* 2.353e-3 6.674e-11 1.989e30) (* 8.314 9e6 6.963e8)) ≈ 5.995</small>


=== pluto.ini ===
=== pluto.ini ===
* Grid = [0.0,0.1] x [1.0,1.1]
 
* Grid = [0.0,0.1] x [1.0,1.1] (LE = Sonnenradius)
* Boundary = [periodic,periodic] x [reflective,userdef]
* Boundary = [periodic,periodic] x [reflective,userdef]
* Anfangswerte:
* Anfangswerte:
Line 28: Line 41:
   IC_Perturbation_mode            +5.0
   IC_Perturbation_mode            +5.0
   IC_Perturbation_Amplitude_cs    +0.3
   IC_Perturbation_Amplitude_cs    +0.3


=== bodyforce.c ===
=== bodyforce.c ===
Line 37: Line 48:




=== makefile_user_simulationdefs ===


=== makefile_user_simulationdefs ===
   DIMENSIONS              = 2
   DIMENSIONS              = 2
   GEOMETRY                = CARTESIAN
   GEOMETRY                = CARTESIAN
Line 46: Line 57:


=== user_defined_parameters.h ===
=== user_defined_parameters.h ===
   UNIT_DENSITY                    (1e-0)
   UNIT_DENSITY                    (1e-0)
   UNIT_LENGTH                    (CONST_Rsun)
   UNIT_LENGTH                    (CONST_Rsun)
Line 54: Line 66:
   IC_Perturbation_mode       
   IC_Perturbation_mode       
   IC_Perturbation_Amplitude_cs
   IC_Perturbation_Amplitude_cs
=== Molecules.conf ===
  mtot = 2.353
  Ntot = 1
  f_DegreesOfFreedom = 3
(<code>mtot</code> in g/mol)

Latest revision as of 15:47, 15 January 2026

Alexanders Setups

lin_T-Grad

init.c

InitDomain()

  • lineares \(T\)-Profil gemäß IC_Temperature_X2BEG_K> IC_Temperature_X2END_K
  • ideales Gas: isotherme Kompressibilität = \(1/P \Rightarrow \tilde c^2=P/\rho=k_BT/m\)
  • Druck-DGL \(\partial_y P=-Pg/\tilde c^2(T) \Rightarrow P(y)\) numerisch mit RB \(P(y_\text{min})=10^9\)bar
  • Dichteprofil aus \(\rho=P/\tilde c^2(T)\), beide Profile ggf. von unten gedeckelt durch RHO_min aus Restrictions.conf
  • \(v_y\) gestört durch Sinus mit Wellenlänge = Systembreite/IC_Perturbation_mode und Amplitude IC_Perturbation_Amplitude_cs × \(\exp(-\vert y_\text{rel}-1/2\vert)\)

UserDefBoundary()

am oberen Rand(X2_END):

  • BC_Outflow_NoInflow für \(v_y\) und \(\rho \Rightarrow\) BC_ZeroGradient für \(P\)
  • BC_ZeroGradient für \(v_x\) (und \(v_z\))


analytisch

Für einen linearen Verlauf \(T=T_0-T'\, y\) mit \(T'=(T_0-T_1)/L_y\) können Druck- und Dichteprofil analytisch bestimmt werden, Letzteres lautet \[ \rho(y)=\frac{P_0\,m}{k_\text{B}T_0}\left(1-\frac{T'}{T_0}y\right)^{\alpha-1} \qquad,\qquad \alpha = \frac{mg}{k_\text{B}T'} \] Für eine "Inversionslage" muss \(\alpha<1\) gelten. Für die ursprünglichen Werte (\(T'=9\cdot 10^6 K/R_\odot, g=GM_\odot/R_\odot^2\)) gilt aber \(\alpha\approx 6\).

(/ (* 2.353e-3 6.674e-11 1.989e30) (* 8.314 9e6 6.963e8)) ≈ 5.995

pluto.ini

  • Grid = [0.0,0.1] x [1.0,1.1] (LE = Sonnenradius)
  • Boundary = [periodic,periodic] x [reflective,userdef]
  • Anfangswerte:
 IC_Temperature_X2BEG_K          1e+6
 IC_Temperature_X2END_K          1e+5
 IC_Perturbation_mode            +5.0
 IC_Perturbation_Amplitude_cs    +0.3

bodyforce.c

konstante Beschleunigung in \(-y\)-Richtung:

 g[JDIR] = - G_GravityConstant * SolarMass / (SolarRadius*SolarRadius);


makefile_user_simulationdefs

 DIMENSIONS              = 2
 GEOMETRY                = CARTESIAN
 BODY_FORCE              = VECTOR
 EOS                     = IDEAL


user_defined_parameters.h

 UNIT_DENSITY                    (1e-0)
 UNIT_LENGTH                     (CONST_Rsun)
 UNIT_VELOCITY                   (CONST_Rsun * CONST_c / CONST_ly)
 
 IC_Temperature_X2BEG_K      
 IC_Temperature_X2END_K      
 IC_Perturbation_mode      
 IC_Perturbation_Amplitude_cs


Molecules.conf

 mtot = 2.353
 Ntot = 1
 f_DegreesOfFreedom = 3

(mtot in g/mol)