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"
43 #include "libmesh/fe_base.h"
46 #ifdef GRINS_HAVE_GRVY
54 template <
typename Scalar>
55 class CompositeFunction;
60 template <
typename Scalar>
61 class ParameterMultiAccessor;
72 class AssemblyContext;
73 class MultiphysicsSystem;
75 template <
typename Scalar>
76 class PostProcessedQuantities;
210 void init_ics( libMesh::FEMSystem* system,
242 const libMesh::Point& point,
243 libMesh::Real& value );
247 #ifdef GRINS_USE_GRVY_TIMERS
248 void attach_grvy_timer( GRVY::GRVY_Timer_Class* grvy_timer );
254 libMesh::UniquePtr<libMesh::FEGenericBase<libMesh::Real> >
build_new_fe(
const libMesh::Elem* elem,
255 const libMesh::FEGenericBase<libMesh::Real>* fe,
256 const libMesh::Point p );
259 const std::string& physics_name );
282 #ifdef GRINS_USE_GRVY_TIMERS
283 GRVY::GRVY_Timer_Class* _timer;
300 #endif //GRINS_PHYSICS_H
static bool is_axisymmetric()
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.
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.
libMesh::UniquePtr< libMesh::FEGenericBase< libMesh::Real > > build_new_fe(const libMesh::Elem *elem, const libMesh::FEGenericBase< libMesh::Real > *fe, const libMesh::Point p)
virtual void damping_residual(bool compute_jacobian, AssemblyContext &context, CachedValues &cache)
Damping matrix part(s) for element interiors. All boundary terms lie within the time_derivative part...
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)
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)
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 void set_is_axisymmetric(bool is_axisymmetric)
Set whether we should treat the problem as axisymmetric.
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 compute_damping_residual_cache(const AssemblyContext &context, CachedValues &cache)
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.
void parse_enabled_subdomains(const GetPot &input, const std::string &physics_name)
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)
virtual void compute_nonlocal_time_derivative_cache(const AssemblyContext &context, CachedValues &cache)
virtual void compute_nonlocal_constraint_cache(const AssemblyContext &context, CachedValues &cache)
static bool _is_axisymmetric
Caches whether we are solving an axisymmetric problem or not.
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...