PDESystem< PDE, Scheme > Class Template Reference
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
|
#include <PDE.H>
Public Types | |
using | PDEType = PDE |
using | SchemeType = Scheme |
Public Member Functions | |
PDESystem (CFDSim &sim) | |
void | initialize () override |
Perform initialization actions after the mesh is created. | |
void | post_regrid_actions () override |
Perform update actions after a regrid is performed. | |
PDEFields & | fields () override |
Return the object holding the fields necessary for solving this PDE. | |
const PDEFields & | fields () const override |
void | compute_source_term (const FieldState fstate) override |
void | compute_mueff (const FieldState) override |
void | compute_diffusion_term (const FieldState fstate) override |
void | compute_advection_term (const FieldState fstate) override |
void | pre_advection_actions (const FieldState fstate) override |
void | compute_predictor_rhs (const DiffusionType difftype) override |
void | compute_corrector_rhs (const DiffusionType difftype) override |
void | solve (const amrex::Real dt) override |
void | post_solve_actions () override |
Static Public Member Functions | |
static std::string | identifier () |
Protected Attributes | |
CFDSim & | m_sim |
CFD simulation controller instance. | |
const SimTime & | m_time |
Time controls instance. | |
FieldRepo & | m_repo |
Field repository. | |
PDEFields | m_fields |
SrcTermOp< PDE > | m_src_op |
Source term computation operator. | |
std::unique_ptr< AdvectionOp< PDE, Scheme > > | m_adv_op |
Advection term computation operator. | |
ComputeRHSOp< PDE, Scheme > | m_rhs_op |
RHS computation operator. | |
std::unique_ptr< DiffusionOp< PDE, Scheme > > | m_diff_op |
Diffusion term computation operator. | |
std::unique_ptr< TurbulenceOp< PDE > > | m_turb_op |
Turbulence operator. | |
BCOp< PDE > | m_bc_op |
PostSolveOp< PDE > | m_post_solve_op |
Detailed Description
class amr_wind::pde::PDESystem< PDE, Scheme >
Implementation of the PDE interface for transport equations
This class takes two traits, one describing the PDE type and the other describing the numerical scheme (e.g., Godunov, MOL) to generate a family of PDE systems and its solution process. Each operation is performed by a separate operator object that can be customized based on the different traits as necessary.
- Template Parameters
-
PDE The PDE trait (e.g., ICNS, Temperature, etc.) Scheme Numerical scheme trait (e.g., Godunov, MOL)
Member Typedef Documentation
◆ PDEType
using amr_wind::pde::PDESystem< PDE, Scheme >::PDEType = PDE |
◆ SchemeType
using amr_wind::pde::PDESystem< PDE, Scheme >::SchemeType = Scheme |
Constructor & Destructor Documentation
◆ PDESystem()
|
inlineexplicit |
- Parameters
-
sim A CFDSim instance
Member Function Documentation
◆ compute_advection_term()
|
inlineoverride |
◆ compute_corrector_rhs()
|
inlineoverride |
◆ compute_diffusion_term()
|
inlineoverride |
◆ compute_mueff()
|
inlineoverride |
◆ compute_predictor_rhs()
|
inlineoverride |
◆ compute_source_term()
|
inlineoverride |
◆ fields() [1/2]
|
inlineoverride |
◆ fields() [2/2]
|
inlineoverride |
Return the object holding the fields necessary for solving this PDE.
◆ identifier()
|
inlinestatic |
Unique identifier used to register and create this instance on-demand through the factor interface
◆ initialize()
|
inlineoverride |
Perform initialization actions after the mesh is created.
◆ post_regrid_actions()
|
inlineoverride |
Perform update actions after a regrid is performed.
◆ post_solve_actions()
|
inlineoverride |
◆ pre_advection_actions()
|
inlineoverride |
◆ solve()
|
inlineoverride |
Member Data Documentation
◆ m_adv_op
|
protected |
Advection term computation operator.
◆ m_bc_op
|
protected |
◆ m_diff_op
|
protected |
Diffusion term computation operator.
◆ m_fields
|
protected |
◆ m_post_solve_op
|
protected |
◆ m_repo
|
protected |
Field repository.
◆ m_rhs_op
|
protected |
RHS computation operator.
◆ m_sim
|
protected |
CFD simulation controller instance.
◆ m_src_op
|
protected |
Source term computation operator.
◆ m_time
|
protected |
Time controls instance.
◆ m_turb_op
|
protected |
Turbulence operator.
The documentation for this class was generated from the following file:
- /home/runner/work/amr-wind/amr-wind/amr-wind/equation_systems/PDE.H
Generated by 1.12.0