libMesh
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
5 using namespace libMesh;
6 
8  GetPot &,
9  FEMParameters & /* param */)
10 {
11  CoupledSystem & system = es.add_system<CoupledSystem> ("CoupledSystem");
12  return system;
13 }
14 
15 Number 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 
25 Gradient 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.
This class provides the ability to map between arbitrary, user-defined strings and several data types...
Definition: parameters.h:63
The libMesh namespace provides an interface to certain functionality in the library.
Number exact_value(const Point &, const Parameters &, const std::string &, const std::string &)
Definition: mysystems.h:15
This class provides a specific system class.
Definition: fem_system.h:53
Gradient exact_grad(const Point &, const Parameters &, const std::string &, const std::string &)
Definition: mysystems.h:25
NumberVectorValue Gradient
virtual System & add_system(const std::string &system_type, const std::string &name)
Add the system of type system_type named name to the systems array.
FEMSystem & build_system(EquationSystems &es, GetPot &, FEMParameters &)
Definition: mysystems.h:7
OStreamProxy out
A Point defines a location in LIBMESH_DIM dimensional Real space.
Definition: point.h:38