libMesh
Loading...
Searching...
No Matches
mysystems.h
Go to the documentation of this file.
1#include "coupled_system.h"
2#include "femparameters.h"
3
4// Bring in everything from the libMesh namespace
5using namespace libMesh;
6
8 GetPot &,
9 FEMParameters & /* param */)
10{
11 CoupledSystem & system = es.add_system<CoupledSystem> ("CoupledSystem");
12 return system;
13}
14
15Number exact_value(const Point & /* p */, // xyz location
16 const Parameters & /* param */, // EquationSystem parameters
17 const std::string &, // sys_name
18 const std::string &) // unknown_name
19{
20 libMesh::out << "Warning! No exact value function specified! Returning 0." << std::endl;
21
22 return Number(0.);
23}
24
25Gradient exact_grad(const Point & /* p */, // xyz location
26 const Parameters & /* param */, // EquationSystems parameters
27 const std::string &, // sys_name
28 const std::string &) // unknown_name
29{
30 libMesh::out << "Warning! No exact value function specified! Returning 0." << std::endl;
31
32 return Gradient(0.);
33}
This is the EquationSystems class.
virtual System & add_system(std::string_view system_type, std::string_view name)
Add the system of type system_type named name to the systems array.
This class provides a specific system class.
Definition fem_system.h:55
This class provides the ability to map between arbitrary, user-defined strings and several data types...
Definition parameters.h:75
A Point defines a location in LIBMESH_DIM dimensional Real space.
Definition point.h:40
This class defines a vector in LIBMESH_DIM dimensional Real or Complex space.
FEMSystem & build_system(EquationSystems &es, GetPot &, FEMParameters &)
Definition mysystems.h:7
Gradient exact_grad(const Point &, const Parameters &, const std::string &, const std::string &)
Definition mysystems.h:25
Number exact_value(const Point &, const Parameters &, const std::string &, const std::string &)
Definition mysystems.h:15
The libMesh namespace provides an interface to certain functionality in the library.
NumberVectorValue Gradient
OStreamProxy out