74 libmesh_example_requires(2 <= LIBMESH_DIM,
"2D support");
78 "--enable-petsc, --enable-trilinos, or --enable-eigen");
83 for (
int i=1; i<argc; i++)
109 equation_systems.parameters.set<
bool> (
"test") =
true;
113 equation_systems.parameters.set<
Real> (
"dummy") = 42.;
116 equation_systems.parameters.set<
Real> (
"nobody") = 0.;
126 equation_systems.get_system(
"Simple System").add_variable(
"u",
FIRST);
138 equation_systems.get_system(
"Complex System").add_variable(
"T",
FIRST);
139 equation_systems.get_system(
"Complex System").add_variable(
"dv",
SECOND,
MONOMIAL);
142 equation_systems.init();
147 equation_systems.print_info();
161 if (argv[1][0] !=
'-')
163 libMesh::out <<
"<<< Writing system to file " << argv[1]
167 equation_systems.write (argv[1],
WRITE);
170 equation_systems.clear ();
172 libMesh::out <<
">>> Reading system from file " << argv[1]
173 << std::endl << std::endl;
177 equation_systems.read (argv[1],
READ);
180 equation_systems.print_info();
This is the EquationSystems class.
Manages storage and variables for transient systems.
The LibMeshInit class, when constructed, initializes the dependent libraries (e.g.
SolverPackage default_solver_package()
void print_info(std::ostream &os=libMesh::out, const unsigned int verbosity=0, const bool global=true) const
Prints relevant information about the mesh.
void init(triangulateio &t)
Initializes the fields of t to nullptr/0 as necessary.
unsigned int add_variable(std::string_view var, const FEType &type, const std::set< subdomain_id_type > *const active_subdomains=nullptr)
Adds the variable var to the list of variables for this system.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
The Mesh class is a thin wrapper, around the ReplicatedMesh class by default.
Manages consistently variables, degrees of freedom, and coefficient vectors for explicit systems...