18 #ifndef ADVECTION_SYSTEM_H 19 #define ADVECTION_SYSTEM_H 43 const std::string&
name,
44 const unsigned int number);
108 std::vector<std::unique_ptr<NumericVector<Number>>>
_Fh;
This is the EquationSystems class.
Order
defines an enum for polynomial orders.
This class encapsulates functionality that allows us to solve conservation laws.
virtual void init_data() override
Initialize the system (e.g.
virtual void print_info() override
Print out some info about the system's configuration.
The libMesh namespace provides an interface to certain functionality in the library.
ClawSystem Parent
The type of the parent.
virtual void process_parameters_file(const std::string ¶meters_filename) override
Read in data from input file.
unsigned int _q1_var
Variable number for q1.
unsigned int number() const
AdvectionSystem sys_type
The type of system.
AdvectionSystem(EquationSystems &es, const std::string &name, const unsigned int number)
Constructor.
Order _fe_order
Store the FE Order and family specified by the input file.
This class extends ClawSystem to implement pure advection in 2D.
std::vector< std::unique_ptr< NumericVector< Number > > > _Fh
The advective flux vectors.
const std::string & name() const
FEFamily
defines an enum for finite element families.
Point _u
The (assumed constant) advection velocity.
virtual void assemble_claw_rhs(NumericVector< Number > &q) override
Right-hand side assembly.
A Point defines a location in LIBMESH_DIM dimensional Real space.
void update_Fh(NumericVector< Number > &q)
Computes the vectors "uq" and "vq" where (u,v) are the (given, constant) advective velocity coefficie...
virtual ~AdvectionSystem()
Destructor.