Difference between revisions of "User:Tohline/PGE/AStarScheme"
m (Add couple of lines at beginning to force table of contents) |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
''March 1, 2014'' by Joel E. Tohline | ''March 1, 2014'' by Joel E. Tohline | ||
As is mentioned in the preface to our | As is mentioned in the preface to our [[User:Tohline/PGE/Hybrid_Scheme#Hybrid_Advection_Scheme|primary discussion of the Hybrid Advection Scheme]], my early notes on this topic were included in my earliest version of this web-based H_Book. The relevant page can be accessed [http://www.phys.lsu.edu/astro/H_Book.current/Context/PGE/angmom.conserve.html via this link]; it is an html file whose linux time stamp is <font color="red">August 27, 2000</font>. Here we re-present the content of these "year 2000" notes because the symbol fonts utilized throughout the original html page seem now not to be properly translated by some web browsers. | ||
As my group discussed this proposed new algorithmic approach to advecting angular momentum over the first decade of the new millennium, it was often referred to as the "A* scheme," where, <math>~A^* \equiv (A_\mathrm{rot} + \rho\varpi^2\Omega_f)</math> was the inertial-frame angular momentum density as given by the sum of variables whose values were tracked in the rotating frame. | |||
{{LSU_HBook_header}} | {{LSU_HBook_header}} | ||
==ASIDE: Relevant to hydrocode development== | ==ASIDE: Relevant to hydrocode development== | ||
===Curvature Terms=== | |||
Converting from a Lagrangian to an Eulerian time-derivative, Equation [I.A.5] becomes, | |||
<div align="center"> | <div align="center"> | ||
<table border="0" cellpadding="3"> | <table border="0" cellpadding="3"> | ||
Line 29: | Line 32: | ||
</table> | </table> | ||
</div> | </div> | ||
Now, if you're not working in Cartesian coordinates, care must be taken when dealing with the second term on the left-hand-side of this | Now, if you're not working in Cartesian coordinates, care must be taken when dealing with the second term on the left-hand-side of this equation because when the gradient operator acts on a vector quantity (in this case, <math>~\rho\boldsymbol{v}</math>), various curvature terms will arise reflecting the fact that, in general, the unit vectors of your curvilinear coordinate system point in different directions as the fluid moves to different locations in space. Quite generally, though, for the <math>~j^\mathrm{th}</math> component of the equation of motion we may isolate these curvature terms as follows: | ||
<div align="center"> | <div align="center"> | ||
<table border="0" cellpadding="3"> | <table border="0" cellpadding="3"> | ||
Line 176: | Line 179: | ||
</table> | </table> | ||
</div> | </div> | ||
===Conservation of Angular Momentum=== | |||
Now, the first and third of these expressions are indeed the ones we are utilizing in our hydrocode. but the middle one, expressing the time-rate-of-change of the azimuthal velocity, has been implemented in a different form, namely, | |||
<div align="center"> | |||
<table border="0" cellpadding="3"> | |||
<tr> | |||
<td align="right"> | |||
<math> | |||
\partial_t(\rho \varpi v_\theta) + \nabla\cdot(\rho\varpi v_\theta \boldsymbol{v} ) | |||
</math> | |||
</td> | |||
<td align="center"> | |||
<math>~=~</math> | |||
</td> | |||
<td align="left"> | |||
<math> | |||
~ - \varpi \nabla_\theta P - \varpi \rho \nabla_\theta \Phi \, . | |||
</math> | |||
</td> | |||
</tr> | |||
</table> | |||
</div> | |||
The $64,000 question is, "<font color="maroon">Are these equivalent expressions?</font>" Well, let's play with the left-hand-side of this last expression. | |||
<div align="center"> | |||
<table border="0" cellpadding="3"> | |||
<tr> | |||
<td align="right"> | |||
<math> | |||
\partial_t(\rho \varpi v_\theta) + \nabla\cdot(\rho\varpi v_\theta \boldsymbol{v} ) | |||
</math> | |||
</td> | |||
<td align="center"> | |||
<math>~=~</math> | |||
</td> | |||
<td align="left"> | |||
<math> | |||
\varpi \partial_t(\rho v_\theta) + (\rho v_\theta) \partial_t(\varpi) + \varpi \nabla\cdot(\rho v_\theta \boldsymbol{v}) + (\rho v_\theta | |||
\boldsymbol{v}\cdot\nabla)\varpi | |||
</math> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td align="right"> | |||
| |||
</td> | |||
<td align="center"> | |||
<math>~=~</math> | |||
</td> | |||
<td align="left"> | |||
<math> | |||
\varpi \{ \partial_t(\rho v_\theta) + \nabla\cdot(\rho v_\theta \boldsymbol{v}) \} + (\rho v_\theta v_\varpi) | |||
</math> | |||
</td> | |||
</tr> | |||
</table> | |||
</div> | |||
It is easy to see, therefore, that the two expressions are equivalent; but the latter one is used in preference to the former because it provides a direct statement of conservation of angular momentum. Specifically, when the external forces (due to gradients in the gravitational potential and pressure) balance, our selected "conservative" finite-difference scheme will guarantee that the physical quantity <math>~A = \rho\varpi v_\theta</math> is conserved globally to precisely the same degree of accuracy as mass is conserved. | |||
===Notation Adjustment=== | |||
In what follows, the governing PDEs will be expressed in terms of velocities that are measured in the context of a rotating reference frame. In our [http://www.phys.lsu.edu/astro/H_Book.current/Context/PGE/angmom.conserve.html original html-formatted notes], these variables are differentiated from inertial-frame variables by color; specifically, rotating-frame variables are colored orange. Here we will abandon the color labeling and, instead, use <math>~\boldsymbol{u}</math> to represent the velocity as measured in a frame rotating about the <math>~z</math>-axis with angular frequency, <math>~\Omega_f</math>. That is, <math>~\boldsymbol{u}</math> is related to the inertial-frame velocity <math>~\boldsymbol{v}</math> through the expression, | |||
<div align="center"> | |||
<table border="0" cellpadding="3"> | |||
<tr> | |||
<td align="right"> | |||
<math> | |||
~\boldsymbol{u} | |||
</math> | |||
</td> | |||
<td align="center"> | |||
<math>~=~</math> | |||
</td> | |||
<td align="left"> | |||
<math> | |||
~\boldsymbol{v} - \boldsymbol{\hat{e}}_\theta \varpi\Omega_f \, . | |||
</math> | |||
</td> | |||
</tr> | |||
</table> | |||
</div> | |||
===The So-called A* Scheme=== | |||
Now, in a rotating frame of reference, this preferred form of the azimuthal component of the equation of motion takes the form, | |||
<div align="center"> | |||
<table border="0" cellpadding="3"> | |||
<tr> | |||
<td align="right"> | |||
<math> | |||
\partial_t(\rho \varpi u_\theta) + \nabla\cdot(\rho\varpi u_\theta \boldsymbol{u} ) | |||
</math> | |||
</td> | |||
<td align="center"> | |||
<math>~=~</math> | |||
</td> | |||
<td align="left"> | |||
<math> | |||
~ - \varpi \nabla_\theta P - \varpi \rho \nabla_\theta \Phi -2\rho\varpi \Omega_f u_\varpi \, . | |||
</math> | |||
</td> | |||
</tr> | |||
</table> | |||
</div> | |||
Notice that a new term has appeared due to the coriolis force. Traditionally, in numerical hydrodynamics, this new term has been treated explicitly as a source term. Hence, this component of the equation of motion no longer takes on a strictly conservative form, and the adopted "conservative" finite-difference is no longer a particularly useful tool to guarantee that the angular momentum is globally conserved even when the external forces due to pressure and gravity balance one another. | |||
To derive a form of this equation that is a lot more suited to a "conservative" finite-difference implementation, note that, | |||
<div align="center"> | |||
<table border="0" cellpadding="3"> | |||
<tr> | |||
<td align="right"> | |||
<math> | |||
\partial_t (\rho \varpi^2 \Omega_f ) + \nabla\cdot [(\rho \varpi^2 \Omega_f)\boldsymbol{u}] | |||
</math> | |||
</td> | |||
<td align="center"> | |||
<math>~=~</math> | |||
</td> | |||
<td align="left"> | |||
<math> | |||
\varpi^2 \Omega_f [ \partial_t \rho + \nabla\cdot (\rho \boldsymbol{u})] + \rho \Omega_f (\boldsymbol{u}\cdot \nabla)\varpi^2 | |||
</math> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td align="right"> | |||
| |||
</td> | |||
<td align="center"> | |||
<math>~=~</math> | |||
</td> | |||
<td align="left"> | |||
<math> | |||
2\rho\varpi \Omega_f u_\varpi \, . | |||
</math> | |||
</td> | |||
</tr> | |||
</table> | |||
</div> | |||
Hence, in a rotating frame of reference, the azimuthal component of the equation of motion can be written as, | |||
<div align="center"> | |||
<table border="0" cellpadding="3"> | |||
<tr> | |||
<td align="right"> | |||
<math> | |||
\partial_t (\rho\varpi u_\theta) + \nabla\cdot(\rho\varpi u_\theta \boldsymbol{u} + \partial_t (\rho\varpi^2 \Omega_f) + | |||
\nabla\cdot [ (\rho\varpi^2 \Omega_f) \boldsymbol{u} ] | |||
</math> | |||
</td> | |||
<td align="center"> | |||
<math>~=~</math> | |||
</td> | |||
<td align="left"> | |||
<math> | |||
~ - \varpi \nabla_\theta P - \varpi \rho \nabla_\theta\Phi \, , | |||
</math> | |||
</td> | |||
</tr> | |||
</table> | |||
</div> | |||
or, | |||
<div align="center"> | |||
<table border="0" cellpadding="3"> | |||
<tr> | |||
<td align="right"> | |||
<math> | |||
\partial_t [ \rho\varpi (u_\theta + \varpi\Omega_f) + \nabla\cdot \{ [ \rho\varpi (u_\theta + \varpi\Omega_f) ] \boldsymbol{u} \} | |||
</math> | |||
</td> | |||
<td align="center"> | |||
<math>~=~</math> | |||
</td> | |||
<td align="left"> | |||
<math> | |||
~ - \varpi \nabla_\theta P - \varpi \rho \nabla_\theta\Phi \, . | |||
</math> | |||
</td> | |||
</tr> | |||
</table> | |||
</div> | |||
When advancing the angular momentum density (i.e., <math>~A_\mathrm{rot} = \rho\varpi u_\theta</math>) forward in time using a finite-difference scheme, I recommend that the "sourcing" step only include the terms on the right-hand-side of these last expressions (i.e., only the gradients in the pressure and gravitational potential), and the "fluxing" step should include the following terms: | |||
<div align="center"> | |||
<table border="0" cellpadding="3"> | |||
<tr> | |||
<td align="right"> | |||
<math> | |||
~\partial_t A_\mathrm{rot} | |||
</math> | |||
</td> | |||
<td align="center"> | |||
<math>~=~</math> | |||
</td> | |||
<td align="left"> | |||
<math> | |||
- \nabla\cdot (A_\mathrm{rot} \boldsymbol{u}) - \partial_t (\rho\varpi^2 \Omega_f) - \nabla\cdot [ ( \rho \varpi^2 \Omega_f) \boldsymbol{u} ] | |||
</math> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td align="right"> | |||
| |||
</td> | |||
<td align="center"> | |||
<math>~=~</math> | |||
</td> | |||
<td align="left"> | |||
<math> | |||
- \nabla\cdot (A_\mathrm{rot} \boldsymbol{u}) | |||
- \varpi^2 \Omega_f \partial_t (\rho ) - \Omega_f \nabla\cdot [(\rho\varpi^2) \boldsymbol{u} ] | |||
</math> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td align="right"> | |||
| |||
</td> | |||
<td align="center"> | |||
<math>~=~</math> | |||
</td> | |||
<td align="left"> | |||
<math> | |||
- \nabla\cdot (A_\mathrm{rot} \boldsymbol{u}) | |||
+ \varpi^2 \Omega_f \nabla\cdot [(\rho) \boldsymbol{u}] - \Omega_f \nabla\cdot [(\rho\varpi^2) \boldsymbol{u} ] \, . | |||
</math> | |||
</td> | |||
</tr> | |||
</table> | |||
</div> | |||
This last expression is directly implementable using our standard fluxing scheme because all three terms have the form <math>~\nabla\cdot[Q\boldsymbol{u}]</math>. (Note that the density that appears in the last two terms on the right-hand-side of this last expression must be taken from precisely the same point in time as the "<math>~A_\mathrm{rot}</math>" that appears in the first term on the right-hand-side.) | |||
Whether you adopt precisely this final prescription or not, the primary point to keep in mind is that you want to advect the "intertial" [''sic''] angular momentum density <math>~[\rho\varpi(u_\theta + \varpi\Omega_f)] = [A_\mathrm{rot} + \rho\varpi^2 \Omega_f]</math> using the "rotating-frame velocity <math>~\boldsymbol{u}</math> at each grid cell face. Hence, you might prefer to use one slightly earlier relation to guide your design of the fluxing step. In the absence of "true" source terms (due to pressure and gravity), we have, | |||
<div align="center"> | |||
<table border="0" cellpadding="3"> | |||
<tr> | |||
<td align="right"> | |||
<math> | |||
\partial_t [\rho \varpi (u_\theta + \varpi\Omega_f)] | |||
</math> | |||
</td> | |||
<td align="center"> | |||
<math>~=~</math> | |||
</td> | |||
<td align="left"> | |||
<math> | |||
- \nabla\cdot\{[\rho\varpi ( u_\theta + \varpi\Omega_f)]\boldsymbol{u} \} \, , | |||
</math> | |||
</td> | |||
</tr> | |||
</table> | |||
</div> | |||
which is the same as, | |||
<div align="center"> | |||
<table border="0" cellpadding="3"> | |||
<tr> | |||
<td align="right"> | |||
<math> | |||
\partial_t [A_\mathrm{rot} + \rho\varpi^2\Omega_f ] | |||
</math> | |||
</td> | |||
<td align="center"> | |||
<math>~=~</math> | |||
</td> | |||
<td align="left"> | |||
<math> | |||
- \nabla\cdot\{[A_\mathrm{rot} + \rho\varpi^2\Omega_f ]\boldsymbol{u} \} \, . | |||
</math> | |||
</td> | |||
</tr> | |||
</table> | |||
</div> | |||
But this may also be written as, | |||
<div align="center"> | |||
<table border="0" cellpadding="3"> | |||
<tr> | |||
<td align="right"> | |||
<math> | |||
\partial_t (A_\mathrm{rot}) | |||
</math> | |||
</td> | |||
<td align="center"> | |||
<math>~=~</math> | |||
</td> | |||
<td align="left"> | |||
<math> | |||
- \partial_t(\rho\varpi^2\Omega_f) - \nabla\cdot\{[A_\mathrm{rot} + \rho\varpi^2\Omega_f ]\boldsymbol{u} \} \, . | |||
</math> | |||
</td> | |||
</tr> | |||
</table> | |||
</div> | |||
So, you can carry out the calculation by first adding the quantity <math>~(\rho\varpi^2 \Omega_f)</math> to <math>~A_\mathrm{rot}</math> to get the value of the angular momentum density in the inertial frame; advect this "inertial" quantity; then subtract from this result ''the change in the quantity'' <math>~(\rho\varpi^2 \Omega_f)</math> as determined from the updated value of the density as derived via the continuity equation. | |||
=Related Discussions= | =Related Discussions= |
Latest revision as of 20:11, 13 July 2015
Hybrid Advection Scheme (Background)
March 1, 2014 by Joel E. Tohline
As is mentioned in the preface to our primary discussion of the Hybrid Advection Scheme, my early notes on this topic were included in my earliest version of this web-based H_Book. The relevant page can be accessed via this link; it is an html file whose linux time stamp is August 27, 2000. Here we re-present the content of these "year 2000" notes because the symbol fonts utilized throughout the original html page seem now not to be properly translated by some web browsers.
As my group discussed this proposed new algorithmic approach to advecting angular momentum over the first decade of the new millennium, it was often referred to as the "A* scheme," where, <math>~A^* \equiv (A_\mathrm{rot} + \rho\varpi^2\Omega_f)</math> was the inertial-frame angular momentum density as given by the sum of variables whose values were tracked in the rotating frame.
| Tiled Menu | Tables of Content | Banner Video | Tohline Home Page | |
ASIDE: Relevant to hydrocode development
Curvature Terms
Converting from a Lagrangian to an Eulerian time-derivative, Equation [I.A.5] becomes,
<math> \partial_t(\rho\boldsymbol{v}) + (\boldsymbol{v}\cdot\nabla)(\rho \boldsymbol{v}) + (\rho \boldsymbol{v})\nabla\cdot \boldsymbol{v} </math> |
<math>~=~</math> |
<math> -\nabla P - \rho \nabla\Phi \, . </math> |
Now, if you're not working in Cartesian coordinates, care must be taken when dealing with the second term on the left-hand-side of this equation because when the gradient operator acts on a vector quantity (in this case, <math>~\rho\boldsymbol{v}</math>), various curvature terms will arise reflecting the fact that, in general, the unit vectors of your curvilinear coordinate system point in different directions as the fluid moves to different locations in space. Quite generally, though, for the <math>~j^\mathrm{th}</math> component of the equation of motion we may isolate these curvature terms as follows:
<math> \partial_t(\rho v_j) + \nabla\cdot (\rho v_j \boldsymbol{v}) + (\mathrm{curvature})_j </math> |
<math>~=~</math> |
<math> -\nabla_j P - \rho \nabla_j \Phi \, , </math> |
where,
<math> ~(\mathrm{curvature})_j </math> |
<math>~=~</math> |
<math> \Sigma_{i=1,2,3} \{ [ (\rho v_i)/(h_i h_j) ] [ v_j \partial_{\xi_i} h_j - v_i \partial_{\xi_j} h_i ] \} \, . </math> |
So, for example, in cylindrical coordinates where <math>~h_1 = h_\varpi = 1, h_2 = h_\theta = \varpi,</math> and <math>~h_3 = h_z = 1,</math>
<math> ~(\mathrm{curvature})_\varpi </math> |
<math>~=~</math> |
<math> [ (\rho v_\theta)/\varpi ] [ -v_\theta ] = - \rho v_\theta^2/\varpi \, ; </math> |
<math> ~(\mathrm{curvature})_\theta </math> |
<math>~=~</math> |
<math> [ (\rho v_\varpi)/\varpi ] [ v_\theta ] = \rho v_\varpi v_\theta/\varpi \, ; </math> |
<math> ~(\mathrm{curvature})_z </math> |
<math>~=~</math> |
<math> 0 \, ; </math> |
Thus, in cylindrical coordinates the three components of the equation of motion become,
<math> \partial_t(\rho v_\varpi) + \nabla\cdot (\rho v_\varpi \boldsymbol{v}) </math> |
<math>~=~</math> |
<math> -\nabla_\varpi P - \rho \nabla_\varpi \Phi + \rho v_\theta^2/\varpi \, ; </math> |
<math> \partial_t(\rho v_\theta) + \nabla\cdot (\rho v_\theta \boldsymbol{v}) </math> |
<math>~=~</math> |
<math> -\nabla_\theta P - \rho \nabla_\theta \Phi - \rho v_\varpi v_\theta/\varpi \, ; </math> |
<math> \partial_t(\rho v_z) + \nabla\cdot (\rho v_z \boldsymbol{v}) </math> |
<math>~=~</math> |
<math> -\nabla_z P - \rho \nabla_z \Phi \, . </math> |
Conservation of Angular Momentum
Now, the first and third of these expressions are indeed the ones we are utilizing in our hydrocode. but the middle one, expressing the time-rate-of-change of the azimuthal velocity, has been implemented in a different form, namely,
<math> \partial_t(\rho \varpi v_\theta) + \nabla\cdot(\rho\varpi v_\theta \boldsymbol{v} ) </math> |
<math>~=~</math> |
<math> ~ - \varpi \nabla_\theta P - \varpi \rho \nabla_\theta \Phi \, . </math> |
The $64,000 question is, "Are these equivalent expressions?" Well, let's play with the left-hand-side of this last expression.
<math> \partial_t(\rho \varpi v_\theta) + \nabla\cdot(\rho\varpi v_\theta \boldsymbol{v} ) </math> |
<math>~=~</math> |
<math> \varpi \partial_t(\rho v_\theta) + (\rho v_\theta) \partial_t(\varpi) + \varpi \nabla\cdot(\rho v_\theta \boldsymbol{v}) + (\rho v_\theta \boldsymbol{v}\cdot\nabla)\varpi </math> |
|
<math>~=~</math> |
<math> \varpi \{ \partial_t(\rho v_\theta) + \nabla\cdot(\rho v_\theta \boldsymbol{v}) \} + (\rho v_\theta v_\varpi) </math> |
It is easy to see, therefore, that the two expressions are equivalent; but the latter one is used in preference to the former because it provides a direct statement of conservation of angular momentum. Specifically, when the external forces (due to gradients in the gravitational potential and pressure) balance, our selected "conservative" finite-difference scheme will guarantee that the physical quantity <math>~A = \rho\varpi v_\theta</math> is conserved globally to precisely the same degree of accuracy as mass is conserved.
Notation Adjustment
In what follows, the governing PDEs will be expressed in terms of velocities that are measured in the context of a rotating reference frame. In our original html-formatted notes, these variables are differentiated from inertial-frame variables by color; specifically, rotating-frame variables are colored orange. Here we will abandon the color labeling and, instead, use <math>~\boldsymbol{u}</math> to represent the velocity as measured in a frame rotating about the <math>~z</math>-axis with angular frequency, <math>~\Omega_f</math>. That is, <math>~\boldsymbol{u}</math> is related to the inertial-frame velocity <math>~\boldsymbol{v}</math> through the expression,
<math> ~\boldsymbol{u} </math> |
<math>~=~</math> |
<math> ~\boldsymbol{v} - \boldsymbol{\hat{e}}_\theta \varpi\Omega_f \, . </math> |
The So-called A* Scheme
Now, in a rotating frame of reference, this preferred form of the azimuthal component of the equation of motion takes the form,
<math> \partial_t(\rho \varpi u_\theta) + \nabla\cdot(\rho\varpi u_\theta \boldsymbol{u} ) </math> |
<math>~=~</math> |
<math> ~ - \varpi \nabla_\theta P - \varpi \rho \nabla_\theta \Phi -2\rho\varpi \Omega_f u_\varpi \, . </math> |
Notice that a new term has appeared due to the coriolis force. Traditionally, in numerical hydrodynamics, this new term has been treated explicitly as a source term. Hence, this component of the equation of motion no longer takes on a strictly conservative form, and the adopted "conservative" finite-difference is no longer a particularly useful tool to guarantee that the angular momentum is globally conserved even when the external forces due to pressure and gravity balance one another.
To derive a form of this equation that is a lot more suited to a "conservative" finite-difference implementation, note that,
<math> \partial_t (\rho \varpi^2 \Omega_f ) + \nabla\cdot [(\rho \varpi^2 \Omega_f)\boldsymbol{u}] </math> |
<math>~=~</math> |
<math> \varpi^2 \Omega_f [ \partial_t \rho + \nabla\cdot (\rho \boldsymbol{u})] + \rho \Omega_f (\boldsymbol{u}\cdot \nabla)\varpi^2 </math> |
|
<math>~=~</math> |
<math> 2\rho\varpi \Omega_f u_\varpi \, . </math> |
Hence, in a rotating frame of reference, the azimuthal component of the equation of motion can be written as,
<math> \partial_t (\rho\varpi u_\theta) + \nabla\cdot(\rho\varpi u_\theta \boldsymbol{u} + \partial_t (\rho\varpi^2 \Omega_f) + \nabla\cdot [ (\rho\varpi^2 \Omega_f) \boldsymbol{u} ] </math> |
<math>~=~</math> |
<math> ~ - \varpi \nabla_\theta P - \varpi \rho \nabla_\theta\Phi \, , </math> |
or,
<math> \partial_t [ \rho\varpi (u_\theta + \varpi\Omega_f) + \nabla\cdot \{ [ \rho\varpi (u_\theta + \varpi\Omega_f) ] \boldsymbol{u} \} </math> |
<math>~=~</math> |
<math> ~ - \varpi \nabla_\theta P - \varpi \rho \nabla_\theta\Phi \, . </math> |
When advancing the angular momentum density (i.e., <math>~A_\mathrm{rot} = \rho\varpi u_\theta</math>) forward in time using a finite-difference scheme, I recommend that the "sourcing" step only include the terms on the right-hand-side of these last expressions (i.e., only the gradients in the pressure and gravitational potential), and the "fluxing" step should include the following terms:
<math> ~\partial_t A_\mathrm{rot} </math> |
<math>~=~</math> |
<math> - \nabla\cdot (A_\mathrm{rot} \boldsymbol{u}) - \partial_t (\rho\varpi^2 \Omega_f) - \nabla\cdot [ ( \rho \varpi^2 \Omega_f) \boldsymbol{u} ] </math> |
|
<math>~=~</math> |
<math> - \nabla\cdot (A_\mathrm{rot} \boldsymbol{u}) - \varpi^2 \Omega_f \partial_t (\rho ) - \Omega_f \nabla\cdot [(\rho\varpi^2) \boldsymbol{u} ] </math> |
|
<math>~=~</math> |
<math> - \nabla\cdot (A_\mathrm{rot} \boldsymbol{u}) + \varpi^2 \Omega_f \nabla\cdot [(\rho) \boldsymbol{u}] - \Omega_f \nabla\cdot [(\rho\varpi^2) \boldsymbol{u} ] \, . </math> |
This last expression is directly implementable using our standard fluxing scheme because all three terms have the form <math>~\nabla\cdot[Q\boldsymbol{u}]</math>. (Note that the density that appears in the last two terms on the right-hand-side of this last expression must be taken from precisely the same point in time as the "<math>~A_\mathrm{rot}</math>" that appears in the first term on the right-hand-side.)
Whether you adopt precisely this final prescription or not, the primary point to keep in mind is that you want to advect the "intertial" [sic] angular momentum density <math>~[\rho\varpi(u_\theta + \varpi\Omega_f)] = [A_\mathrm{rot} + \rho\varpi^2 \Omega_f]</math> using the "rotating-frame velocity <math>~\boldsymbol{u}</math> at each grid cell face. Hence, you might prefer to use one slightly earlier relation to guide your design of the fluxing step. In the absence of "true" source terms (due to pressure and gravity), we have,
<math> \partial_t [\rho \varpi (u_\theta + \varpi\Omega_f)] </math> |
<math>~=~</math> |
<math> - \nabla\cdot\{[\rho\varpi ( u_\theta + \varpi\Omega_f)]\boldsymbol{u} \} \, , </math> |
which is the same as,
<math> \partial_t [A_\mathrm{rot} + \rho\varpi^2\Omega_f ] </math> |
<math>~=~</math> |
<math> - \nabla\cdot\{[A_\mathrm{rot} + \rho\varpi^2\Omega_f ]\boldsymbol{u} \} \, . </math> |
But this may also be written as,
<math> \partial_t (A_\mathrm{rot}) </math> |
<math>~=~</math> |
<math> - \partial_t(\rho\varpi^2\Omega_f) - \nabla\cdot\{[A_\mathrm{rot} + \rho\varpi^2\Omega_f ]\boldsymbol{u} \} \, . </math> |
So, you can carry out the calculation by first adding the quantity <math>~(\rho\varpi^2 \Omega_f)</math> to <math>~A_\mathrm{rot}</math> to get the value of the angular momentum density in the inertial frame; advect this "inertial" quantity; then subtract from this result the change in the quantity <math>~(\rho\varpi^2 \Omega_f)</math> as determined from the updated value of the density as derived via the continuity equation.
Related Discussions
- Euler equation viewed from a rotating frame of reference or Main Page.
- An earlier draft of this "Euler equation" presentation.
© 2014 - 2021 by Joel E. Tohline |