/home/runner/work/amr-wind/amr-wind/amr-wind/equation_systems/PDEBase.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
|
Loading...
Searching...
No Matches
PDEBase.H
Go to the documentation of this file.
Definition CFDSim.H:47
Definition CollMgr.H:22
amrex::Vector< TypePtr > TypeVector
Definition CollMgr.H:25
Definition PDEBase.H:51
virtual void pre_advection_actions(const FieldState fstate)=0
Perform necessary steps to prepare for advection calculations.
virtual void compute_corrector_rhs(const DiffusionType difftype)=0
virtual void initialize()=0
Perform initialization actions for a PDE after the mesh is generated.
virtual void compute_source_term(const FieldState fstate)=0
Compute the source (forcing) terms for this PDE.
virtual PDEFields & fields()=0
Return the object that holds references to fields for this PDE system.
virtual const PDEFields & fields() const =0
virtual void solve(const amrex::Real dt)=0
Solve the diffusion linear system and update the field.
~PDEBase() override=default
virtual void post_regrid_actions()=0
Perform updates specific to PDE after a regrid is performed.
virtual void compute_predictor_rhs(const DiffusionType difftype)=0
virtual void compute_mueff(const FieldState fstate)=0
Compute the effective dynamic viscosity for this PDE.
virtual void post_solve_actions()=0
Perform post-processing actions after a system solve.
virtual void compute_diffusion_term(const FieldState fstate)=0
Compute the diffusion term used in the RHS of the PDE system.
virtual void compute_advection_term(const FieldState fstate)=0
Compute the time derivative and advective term for the PDE system.
static std::string base_identifier()
Base class identifier used for factory registration interface.
Definition PDEBase.H:104
Definition PDEBase.H:115
void advance_states()
Advance states for all registered PDEs at the beginning of a timestep.
Definition PDEBase.cpp:79
bool m_constant_density
Flag indicating whether density is constant for this simulation.
Definition PDEBase.H:174
std::unique_ptr< PDEBase > m_icns
ICNS instance.
Definition PDEBase.H:165
bool m_use_godunov
Flag indicating whether Godunov scheme is active.
Definition PDEBase.H:171
PDEBase & icns()
Return the incompressible Navier-Stokes instance.
Definition PDEBase.H:122
bool has_pde(const std::string &pde_name) const
Query if a PDE has already been registered.
Definition PDEBase.cpp:68
~PDEMgr()=default
CFDSim & m_sim
Instance of the CFD simulation controller.
Definition PDEBase.H:162
std::string m_scheme
Unique identifier for the numerical scheme.
Definition PDEBase.H:168
void fillpatch_state_fields(const amrex::Real time, const FieldState fstate=FieldState::New)
Call fillpatch operator on state variables for all registered PDEs.
Definition PDEBase.cpp:145
PDEBase & register_transport_pde(const std::string &pde_name)
Register a new PDE instance and return its reference.
Definition PDEBase.cpp:55
Definition BCInterface.cpp:7
Definition Factory.H:65
Definition PDEFields.H:27
Generated by 1.12.0