#include <MoFEM.hpp>
#include <BasicFiniteElements.hpp>
Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
| [Postprocess results] More...
|
|
◆ AssemblyDomainEleOp
◆ DomainEle
◆ DomainEleOp
◆ EntData
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
[Postprocess results]
- Examples
- approx_sphere.cpp.
Definition at line 469 of file approx_sphere.cpp.
475 auto core_log = logging::core::get();
477 LogManager::createSink(LogManager::getStrmWorld(),
"EXAMPLE"));
478 LogManager::setLog(
"EXAMPLE");
484 DMType dm_name =
"DMMOFEM";
#define CATCH_ERRORS
Catch errors.
#define CHKERR
Inline error check.
PetscErrorCode DMRegister_MoFEM(const char sname[])
Register MoFEM problem.
#define MOFEM_LOG_TAG(channel, tag)
Tag channel.
DeprecatedCoreInterface Interface
static MoFEMErrorCode Initialize(int *argc, char ***args, const char file[], const char help[])
Initializes the MoFEM database PETSc, MOAB and MPI.
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.
Deprecated interface functions.
- Examples
- EshelbianOperators.cpp, HookeElement.cpp, HookeElement.hpp, HookeInternalStressElement.hpp, PoissonOperators.hpp, Remodeling.cpp, UnsaturatedFlow.hpp, analytical_poisson_field_split.cpp, approx_sphere.cpp, heat_method.cpp, matrix_function.cpp, plate.cpp, prism_polynomial_approximation.cpp, quad_polynomial_approximation.cpp, reaction_diffusion.cpp, shallow_wave.cpp, and simple_elasticity.cpp.
Definition at line 46 of file approx_sphere.cpp.
constexpr double A = 6371220 |
|
constexpr |
◆ a2
constexpr double a2 = a * a |
|
constexpr |
◆ a4
constexpr double a4 = a2 * a2 |
|
constexpr |
◆ FM_DIM
◆ help
◆ lhs_J_dx2
Initial value:= [](const double x, const double y, const double z) {
const double res =
res_J(x, y, z);
(res * 2 + (4 * x * x)),
(4 * y * x),
(4 * z * x),
(4 * x * y),
(2 * res + (4 * y * y)),
(4 * z * y),
(4 * x * z),
(4 * y * z),
(2 * res + (4 * z * z))};
}
- Examples
- approx_sphere.cpp.
Definition at line 67 of file approx_sphere.cpp.
◆ res_J
Initial value:= [](const double x, const double y, const double z) {
const double res = (x * x + y * y + z * z -
a2);
return res;
}
- Examples
- approx_sphere.cpp.
Definition at line 56 of file approx_sphere.cpp.
◆ res_J_dx