-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add a dedicated linear WCNSFV page with links to the relevant sections in linearFV, NS and physics #31888
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: next
Are you sure you want to change the base?
Add a dedicated linear WCNSFV page with links to the relevant sections in linearFV, NS and physics #31888
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,16 +3,15 @@ | |
| The MOOSE Navier-Stokes module is a library for the implementation of simulation tools that solve the | ||
| Navier-Stokes equations using either the continuous Galerkin finite element | ||
| (CGFE) or finite volume (FV) methods. The Navier-Stokes | ||
| equations are usually solved using either the pressure-based, incompressible formulation (assuming a | ||
| constant fluid density), or a density-based, compressible formulation, although | ||
| there are plans to add a finite volume weakly-compressible pressured-based implementation in | ||
| the not-too-distant future. | ||
| equations are usually solved using either the pressure-based, incompressible or weakly-compressible formulation (assuming a | ||
| constant or pressure-independent fluid density), or a density-based, compressible formulation. | ||
|
|
||
| For documentation specific to finite element or finite volume implementations, | ||
| please refer to the below pages: | ||
|
|
||
| - [Incompressible Finite Volume](insfv.md) | ||
| - [Weakly Compressible Finite Volume](wcnsfv.md) | ||
| - [Weakly compressible finite volume using a linear discretization and a segregated solvealgorithm (SIMPLE/PIMPLE)](linear_wcnsfv.md) | ||
GiudGiud marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - [Porous media Incompressible Finite Volume](pinsfv.md) | ||
| - [Continuous Galerkin Finite Element](navier_stokes/cgfe.md) | ||
| - [Hybridized Discontinous Galerkin (HDG) Finite Element](NavierStokesLHDGKernel.md) | ||
|
|
@@ -25,7 +24,7 @@ please refer to the below pages: | |
| Here we give a brief tabular summary of the Navier-Stokes implementations: | ||
|
|
||
| !table id=navier_stokes_summary caption=Summary of Navier-Stokes implementations | ||
| | prefix | Jacobian | compressibility | turbulence support | friction support | method | advection strategy | | ||
| | prefix | Jacobian | compressibility | turbulence support | friction support | discretiz. | advection strategy | | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it might be more accurate/clearer to introduce an additional column called "solver" and then discretization would remain just "FV" for the linear FV implementation and solver would be "SIMPLE/PIMPLE"
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. linearFV is kind of different though, not just the solver? like the base classes for the variables are similar but different
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Those are implementation details that are not relevant to a user. Real differences are things like lagging certain quantities in order to keep them linear. I don't know if that is really a difference in the spatial discretization though. More like a state difference
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. well we do lag a ton more in linearFV than in Newton. In fact we try not to lag anything in Newton
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. but that's all tied to the solver / discretization in time rather than in space the gradients are lagged in linearFV and not FV that's a space-time discretization that is different
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I know that. That's why I said
I wrote a very large share of the Newton code. I know how it works.
Agreed. That's why I said
If the spatial locations used to evaluate things like a Green-Gauss gradient or the non-orthogonal gradient are the same, then I believe the spatial discretization is the same. If the only difference is that you're indexing into different vectors (states), I don't think that equates to a difference in spatial discretization
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The iterative two term expansions are something that are unique to FV.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
@grmnptr any differences on that aspect? |
||
| | ------ | -------- | ----------------------------- | --------------------------- | ---------------- | ------ | --------------------------------- | | ||
| | INS | Hand-coded | incompressible | None | Not porous | CGFE | SUPG | | ||
| | INSAD | AD | incompressible | Smagorinsky | Not porous | CGFE | SUPG | | ||
|
|
@@ -35,7 +34,9 @@ Here we give a brief tabular summary of the Navier-Stokes implementations: | |
| | INSChorin | Hand-coded | incompressible | None | Not porous | CGFE | Chorin predictor-corrector | | ||
| | INSFV | AD | incompressible | mixing length; $k-\epsilon$ | Not porous | FV | RC, CD velocity; limited advected | | ||
| | WCNSFV | AD | weakly compressible | mixing length | Not porous | FV | RC, CD velocity; limited advected | | ||
| | Linear(WCNS)FV | N/A | weakly compressible | $k-\epsilon$ | Not porous | LinearFV | RC velocity; limited advected | | ||
| | WCNSFV2P | AD | weakly compressible; 2-phase | mixing length | Not porous | FV | RC, CD velocity; limited advected | | ||
| | LinearWCNSFV2P | N/A | weakly compressible; 2-phase | None | Not porous | LinearFV | RC velocity; limited advected | | ||
| | PINSFV | AD | incompressible | mixing length | Darcy, Forcheimer | FV | RC, CD velocity; limited advected | | ||
| | CNSFVHLLC | AD | compressible | None | Not porous | FV | HLLC, piecewise constant data | | ||
| | PCNSFVHLLC | AD | compressible | None | Darcy, Forcheimer | FV | HLLC, piecewise constant data | | ||
|
|
@@ -49,6 +50,7 @@ Table definitions: | |
| - WCNS2P: weakly-compressible Navier-Stokes 2-phase | ||
| - CNS: compressible Navier-Stokes | ||
| - PINS or PCNS: porous incompressible Navier-Stokes or porous compressible Navier-Stokes | ||
| - LinearFV: the [linear finite volume discretization](linear_fv_design.md) | ||
GiudGiud marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - SUPG: Streamline-Upwind Petrov-Galerkin | ||
| - RC: Rhie-Chow interpolation | ||
| - CD: central differencing interpolation; equivalent to average interpolation | ||
|
|
@@ -78,7 +80,7 @@ As Navier-Stokes Finite Volume solvers continue to evolve in MOOSE, many new sol | |
| | Turbulence | Mixing length | Yes | Yes | Yes | | | ||
| | | $k-\epsilon$ | | Yes | Yes | Yes | | ||
| | | $k-\omega$ SST | | | in [PR #28151](https://github.com/idaholab/moose/pull/28151) | | | ||
| | Two-phase | Mixture model | Yes | Yes | Yes | in [PR #29614](https://github.com/idaholab/moose/pull/29614) | | ||
| | Two-phase | Mixture model | Yes | Yes | Yes | Yes | | ||
| | | Eulerian-Eulerian | | | Yes | | | ||
| | Porous Flow | -- | Yes | Yes | Yes | | | ||
| | Compressibility | Incompressible | Yes | Yes | Yes | Yes | | ||
|
|
@@ -91,7 +93,7 @@ As Navier-Stokes Finite Volume solvers continue to evolve in MOOSE, many new sol | |
| | Physics Syntax | Flow | | Yes | | Yes | | ||
| | | Fluid heat transfer | | Yes | | Yes | | ||
| | | Solid phase heat transfer | | Yes | | | | ||
| | | Two phase | | Yes | | in [PR #29614](https://github.com/idaholab/moose/pull/29614) | | ||
| | | Two phase | | Yes | | Yes | | ||
| | | Turbulence | | Yes | | | | ||
| | | Scalar transport | | Yes | | Yes | | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,67 @@ | ||
| # Weakly Compressible Navier Stokes using the Linear Finite Volume discretization | ||
GiudGiud marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ## Equations | ||
|
|
||
| The linear finite volume discretization of the weakly compressible Navier Stokes equations is used | ||
GiudGiud marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| to solve the following equations: | ||
|
|
||
| - conservation of momentum | ||
| - pressure-correction (see [SIMPLE.md]) | ||
| - turbulence equations | ||
| - conservation of energy | ||
| - conservation of advected passive scalars | ||
| - conservation of an advected phase in a homogeneous mixture | ||
|
|
||
| We refer the reader to the respective `Physics` pages, listed in [linear_wcnsfv.md#syntax], for the strong form of the equations. | ||
|
|
||
| ## Solver algorithm(s) | ||
|
|
||
| For steady state simulations, you may use the [SIMPLE.md] executioner which implements the SIMPLE algorithm [!citep](patankar1983calculation). | ||
|
|
||
| For transient simulations, you may use the [PIMPLE.md] executioner which implements the PIMPLE algorithm [!citep](greenshieldsweller2022). | ||
GiudGiud marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ## Discretization | ||
|
|
||
| ### General | ||
|
|
||
| We use the linear finite volume discretization, a face-centered finite volume discretization. We have implemented orthogonal | ||
GiudGiud marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| gradient correction and skewness correction for face values, and thus can reach second-order accuracy in many cases. | ||
GiudGiud marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| !alert note | ||
| Triangular and tetrahedral meshes currently only achieve first order convergence rates at the moment. | ||
GiudGiud marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| !alert note | ||
| This implementation does not require forming a Jacobian because it is solving using the SIMPLE/PIMPLE algorithm, which | ||
GiudGiud marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| involve segregated linear equation solved nested in a fixed point iteration loop, rather than a Newton method-based solver. | ||
GiudGiud marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| The discretization of the equation is optimized to form a right hand side (RHS) and sparse matrices. | ||
GiudGiud marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| Additional details about the linear finite volume discretization can be found on [this page](linear_fv_design.md). | ||
|
|
||
| ### Advection term | ||
|
|
||
| The advection term is discretized using the Rhie Chow interpolation for the face velocities. Additional details may be found in the documentation | ||
GiudGiud marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| for the object handling the computation of the Rhie Chow velocities: the [RhieChowMassFlux.md]. | ||
|
|
||
| ## Syntax id=syntax | ||
|
|
||
| These equations can be created in MOOSE using the [LinearFVKernels](syntax/LinearFVKernels/index.md) and [LinearFVBCs](syntax/LinearFVBCs/index.md) | ||
| classes, or using the [Physics](syntax/Physics/index.md) classes. | ||
| For `LinearWCNSFV`, the relevant `Physics` classes are: | ||
|
|
||
| - [WCNSLinearFVFlowPhysics.md] for the velocity-pressure coupling. | ||
| - [WCNSLinearFVFluidHeatTransferPhysics.md] for the fluid energy conservation equation. | ||
| - [WCNSLinearFVScalarTransportPhysics.md] for the advection of passive scalars. | ||
|
|
||
| For `LinearWCNSFV2P`, the relevant `Physics` classes are: | ||
|
|
||
| - [WCNSLinearFVTwoPhaseMixturePhysics.md] for a basic implementation of a mixture model. | ||
|
|
||
| ## Validation | ||
|
|
||
| The linear finite volume discretization is being verified and validated as part of the `OpenPronghorn` open-source software. | ||
GiudGiud marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| Please refer to [OpenPronghorn](https://mooseframework.inl.gov/open_pronghorn/) for this ongoing effort. | ||
|
|
||
| ## Gallery | ||
|
|
||
| !alert construction | ||
| The gallery has not been created for this discretization yet. | ||
GiudGiud marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| Please refer to [OpenPronghorn](https://mooseframework.inl.gov/open_pronghorn/) for example simulations. | ||
Uh oh!
There was an error while loading. Please reload this page.