25 #ifndef GRINS_PHYSICS_H
26 #define GRINS_PHYSICS_H
33 #include "grins_config.h"
41 #include "libmesh/libmesh.h"
42 #include "libmesh/point.h"
45 #ifdef GRINS_HAVE_GRVY
53 template <
typename Scalar>
54 class CompositeFunction;
59 template <
typename Scalar>
60 class ParameterMultiPointer;
71 class AssemblyContext;
72 class MultiphysicsSystem;
74 template <
typename Scalar>
75 class PostProcessedQuantities;
200 void init_bcs( libMesh::FEMSystem* system );
202 void init_ics( libMesh::FEMSystem* system,
235 const libMesh::Point& point,
236 libMesh::Real& value );
242 #ifdef GRINS_USE_GRVY_TIMERS
243 void attach_grvy_timer( GRVY::GRVY_Timer_Class* grvy_timer );
270 #ifdef GRINS_USE_GRVY_TIMERS
271 GRVY::GRVY_Timer_Class* _timer;
295 #endif //GRINS_PHYSICS_H
virtual void compute_postprocessed_quantity(unsigned int quantity_index, const AssemblyContext &context, const libMesh::Point &point, libMesh::Real &value)
virtual void init_variables(libMesh::FEMSystem *system)=0
Initialize variables for this physics.
GRINS::ICHandlingBase * _ic_handler
bool is_steady() const
Returns whether or not this physics is being solved with a steady solver.
GRINS::BCHandlingBase * _bc_handler
Simple helper class to setup general Dirichlet boundary conditions.
Physics abstract base class. Defines API for physics to be added to MultiphysicsSystem.
virtual void register_postprocessing_vars(const GetPot &input, PostProcessedQuantities< libMesh::Real > &postprocessing)
Register name of postprocessed quantity with PostProcessedQuantities.
ICHandlingBase * get_ic_handler()
virtual void nonlocal_time_derivative(bool compute_jacobian, AssemblyContext &context, CachedValues &cache)
Time dependent part(s) of physics for scalar variables.
virtual void compute_mass_residual_cache(const AssemblyContext &context, CachedValues &cache)
void attach_dirichlet_bound_func(const GRINS::DBCContainer &dirichlet_bc)
virtual void compute_element_time_derivative_cache(const AssemblyContext &context, CachedValues &cache)
virtual void element_constraint(bool compute_jacobian, AssemblyContext &context, CachedValues &cache)
Constraint part(s) of physics for element interiors.
virtual void compute_side_constraint_cache(const AssemblyContext &context, CachedValues &cache)
void init_bcs(libMesh::FEMSystem *system)
Simple helper class to setup general Neumann boundary conditions.
virtual void read_input_options(const GetPot &input)
Read options from GetPot input file. By default, nothing is read.
virtual void compute_element_constraint_cache(const AssemblyContext &context, CachedValues &cache)
virtual void compute_side_time_derivative_cache(const AssemblyContext &context, CachedValues &cache)
const PhysicsName _physics_name
Name of the physics object. Used for reading physics specific inputs.
ParameterUser base class. Utility methods for subclasses.
virtual bool enabled_on_elem(const libMesh::Elem *elem)
Find if current physics is active on supplied element.
virtual void side_constraint(bool compute_jacobian, AssemblyContext &context, CachedValues &cache)
Constraint part(s) of physics for boundaries of elements on the domain boundary.
virtual void auxiliary_init(MultiphysicsSystem &system)
Any auxillary initialization a Physics class may need.
Base class for reading and handling initial conditions for physics classes.
virtual void nonlocal_mass_residual(bool compute_jacobian, AssemblyContext &context, CachedValues &cache)
Mass matrix part(s) for scalar variables.
static bool _is_steady
Caches whether or not the solver that's being used is steady or not.
virtual void set_time_evolving_vars(libMesh::FEMSystem *system)
Set which variables are time evolving.
Interface with libMesh for solving Multiphysics problems.
virtual void init_context(AssemblyContext &context)
Initialize context for added physics variables.
virtual void element_time_derivative(bool compute_jacobian, AssemblyContext &context, CachedValues &cache)
Time dependent part(s) of physics for element interiors.
virtual void side_time_derivative(bool compute_jacobian, AssemblyContext &context, CachedValues &cache)
Time dependent part(s) of physics for boundaries of elements on the domain boundary.
virtual void compute_nonlocal_mass_residual_cache(const AssemblyContext &context, CachedValues &cache)
void attach_neumann_bound_func(GRINS::NBCContainer &neumann_bcs)
virtual void compute_nonlocal_time_derivative_cache(const AssemblyContext &context, CachedValues &cache)
Base class for reading and handling boundary conditions for physics classes.
BCHandlingBase * get_bc_handler()
virtual void compute_nonlocal_constraint_cache(const AssemblyContext &context, CachedValues &cache)
virtual void nonlocal_constraint(bool compute_jacobian, AssemblyContext &context, CachedValues &cache)
Constraint part(s) of physics for scalar variables.
void init_ics(libMesh::FEMSystem *system, libMesh::CompositeFunction< libMesh::Number > &all_ics)
std::set< libMesh::subdomain_id_type > _enabled_subdomains
Subdomains on which the current Physics class is enabled.
void set_is_steady(bool is_steady)
Sets whether this physics is to be solved with a steady solver or not.
virtual void mass_residual(bool compute_jacobian, AssemblyContext &context, CachedValues &cache)
Mass matrix part(s) for element interiors. All boundary terms lie within the time_derivative part...