v0.14.0
Classes | Typedefs | Functions | Variables
phase.cpp File Reference
#include <MoFEM.hpp>

Go to the source code of this file.

Classes

struct  Example
 [Example] More...
 
struct  Example::BoundaryOp
 

Typedefs

using DomainEle = FaceElementForcesAndSourcesCore
 
using DomainEleOp = DomainEle::UserDataOperator
 
using EdgeEle = EdgeElementForcesAndSourcesCore
 
using EdgeEleOp = EdgeEle::UserDataOperator
 
using EntData = EntitiesFieldData::EntData
 
using AssemblyBoundaryEleOp = FormsIntegrators< EdgeEleOp >::Assembly< PETSC >::OpBase
 
using OpHdivHdiv = FormsIntegrators< DomainEleOp >::Assembly< PETSC >::BiLinearForm< GAUSS >::OpMass< 3, 3 >
 
using OpHdivU = FormsIntegrators< DomainEleOp >::Assembly< PETSC >::BiLinearForm< GAUSS >::OpMixDivTimesScalar< 2 >
 
using OpDomainSource = FormsIntegrators< DomainEleOp >::Assembly< PETSC >::LinearForm< GAUSS >::OpSource< 1, 1 >
 

Functions

int main (int argc, char *argv[])
 [Postprocess results] More...
 

Variables

static char help [] = "...\n\n"
 
constexpr std::array< int, 3 > d1_savitzky_golay_w3_p2 = {-1, 0, 1}
 
constexpr std::array< int, 5 > d1_savitzky_golay_w5_p2 = {-2, -1, 0, 1, 2}
 
constexpr std::array< int, 7 > d1_savitzky_golay_w7_p2 = {-3, -2, -1, 0, 1, 2, 3}
 
constexpr std::array< int, 9 > d1_savitzky_golay_w9_p2
 
constexpr std::array< int, 5 > d1_savitzky_golay_w5_p4 = {1, -8, 0, 8, -1}
 
constexpr std::array< int, 7 > d1_savitzky_golay_w7_p4
 
constexpr std::array< int, 9 > d1_savitzky_golay_w9_p4
 
constexpr std::array< int, 10 > d1_normalisation_p2
 
constexpr std::array< int, 10 > d1_normalisation_p4
 
const int * d1_savitzky_golay_p2 []
 
const int * d1_savitzky_golay_p4 []
 
const int ** d1_savitzky_golay []
 
const int * d1_normalisation []
 
static double k = 1
 
static int order_savitzky_golay = 2
 
static int window_savitzky_golay = 3
 

Typedef Documentation

◆ AssemblyBoundaryEleOp

Definition at line 67 of file phase.cpp.

◆ DomainEle

Definition at line 21 of file phase.cpp.

◆ DomainEleOp

Definition at line 22 of file phase.cpp.

◆ EdgeEle

Definition at line 23 of file phase.cpp.

◆ EdgeEleOp

Definition at line 24 of file phase.cpp.

◆ EntData

Examples
phase.cpp.

Definition at line 65 of file phase.cpp.

◆ OpDomainSource

using OpDomainSource = FormsIntegrators<DomainEleOp>::Assembly< PETSC>::LinearForm<GAUSS>::OpSource<1, 1>
Examples
phase.cpp.

Definition at line 73 of file phase.cpp.

◆ OpHdivHdiv

using OpHdivHdiv = FormsIntegrators<DomainEleOp>::Assembly<PETSC>::BiLinearForm< GAUSS>::OpMass<3, 3>
Examples
phase.cpp.

Definition at line 69 of file phase.cpp.

◆ OpHdivU

using OpHdivU = FormsIntegrators<DomainEleOp>::Assembly<PETSC>::BiLinearForm< GAUSS>::OpMixDivTimesScalar<2>
Examples
phase.cpp.

Definition at line 71 of file phase.cpp.

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

[Postprocess results]

[Register MoFEM discrete manager in PETSc]

[Register MoFEM discrete manager in PETSc

[Create MoAB]

< mesh database

< mesh database interface

[Create MoAB]

[Create MoFEM]

< finite element database

< finite element database insterface

[Create MoFEM]

[Example]

[Example]

Examples
phase.cpp.

Definition at line 559 of file phase.cpp.

559  {
560 
561  // Initialisation of MoFEM/PETSc and MOAB data structures
562  const char param_file[] = "param_file.petsc";
563  MoFEM::Core::Initialize(&argc, &argv, param_file, help);
564 
565  try {
566 
567  //! [Register MoFEM discrete manager in PETSc]
568  DMType dm_name = "DMMOFEM";
569  CHKERR DMRegister_MoFEM(dm_name);
570  //! [Register MoFEM discrete manager in PETSc
571 
572  //! [Create MoAB]
573  moab::Core mb_instance; ///< mesh database
574  moab::Interface &moab = mb_instance; ///< mesh database interface
575  //! [Create MoAB]
576 
577  //! [Create MoFEM]
578  MoFEM::Core core(moab); ///< finite element database
579  MoFEM::Interface &m_field = core; ///< finite element database insterface
580  //! [Create MoFEM]
581 
582  //! [Example]
583  Example ex(m_field);
584  CHKERR ex.runProblem();
585  //! [Example]
586  }
587  CATCH_ERRORS;
588 
590 }

Variable Documentation

◆ d1_normalisation

const int* d1_normalisation[]
Initial value:
= {nullptr, nullptr, d1_normalisation_p2.data(),
nullptr, d1_normalisation_p4.data()}
Examples
phase.cpp.

Definition at line 62 of file phase.cpp.

◆ d1_normalisation_p2

constexpr std::array<int, 10> d1_normalisation_p2
constexpr
Initial value:
= {0, 0, 0, 2, 0,
10, 0, 28, 0, 60}
Examples
phase.cpp.

Definition at line 38 of file phase.cpp.

◆ d1_normalisation_p4

constexpr std::array<int, 10> d1_normalisation_p4
constexpr
Initial value:
= {0, 0, 0, 0, 0,
12, 0, 252, 0, 1188}
Examples
phase.cpp.

Definition at line 40 of file phase.cpp.

◆ d1_savitzky_golay

const int** d1_savitzky_golay[]
Initial value:
= {nullptr, nullptr, d1_savitzky_golay_p2,
Examples
phase.cpp.

Definition at line 60 of file phase.cpp.

◆ d1_savitzky_golay_p2

const int* d1_savitzky_golay_p2[]
Initial value:
= {nullptr, nullptr,
nullptr, d1_savitzky_golay_w3_p2.data(),
nullptr, d1_savitzky_golay_w5_p2.data(),
nullptr, d1_savitzky_golay_w7_p2.data(),
nullptr, d1_savitzky_golay_w9_p2.data()}
Examples
phase.cpp.

Definition at line 43 of file phase.cpp.

◆ d1_savitzky_golay_p4

const int* d1_savitzky_golay_p4[]
Initial value:
= {nullptr,
nullptr,
nullptr,
nullptr,
nullptr,
nullptr,
nullptr,
Examples
phase.cpp.

Definition at line 49 of file phase.cpp.

◆ d1_savitzky_golay_w3_p2

constexpr std::array<int, 3> d1_savitzky_golay_w3_p2 = {-1, 0, 1}
constexpr
Examples
phase.cpp.

Definition at line 26 of file phase.cpp.

◆ d1_savitzky_golay_w5_p2

constexpr std::array<int, 5> d1_savitzky_golay_w5_p2 = {-2, -1, 0, 1, 2}
constexpr
Examples
phase.cpp.

Definition at line 27 of file phase.cpp.

◆ d1_savitzky_golay_w5_p4

constexpr std::array<int, 5> d1_savitzky_golay_w5_p4 = {1, -8, 0, 8, -1}
constexpr
Examples
phase.cpp.

Definition at line 32 of file phase.cpp.

◆ d1_savitzky_golay_w7_p2

constexpr std::array<int, 7> d1_savitzky_golay_w7_p2 = {-3, -2, -1, 0, 1, 2, 3}
constexpr
Examples
phase.cpp.

Definition at line 28 of file phase.cpp.

◆ d1_savitzky_golay_w7_p4

constexpr std::array<int, 7> d1_savitzky_golay_w7_p4
constexpr
Initial value:
= {22, -67, -58, 0,
58, 67, -22}
Examples
phase.cpp.

Definition at line 33 of file phase.cpp.

◆ d1_savitzky_golay_w9_p2

constexpr std::array<int, 9> d1_savitzky_golay_w9_p2
constexpr
Initial value:
= {-4, -3, -2, -1, 0,
1, 2, 3, 4}
Examples
phase.cpp.

Definition at line 29 of file phase.cpp.

◆ d1_savitzky_golay_w9_p4

constexpr std::array<int, 9> d1_savitzky_golay_w9_p4
constexpr
Initial value:
= {
86, -142, -193, -126, 0, 126, 193, 142, -86}
Examples
phase.cpp.

Definition at line 35 of file phase.cpp.

◆ help

char help[] = "...\n\n"
static
Examples
phase.cpp.

Definition at line 17 of file phase.cpp.

◆ k

double k = 1
static
Examples
phase.cpp.

Definition at line 75 of file phase.cpp.

◆ order_savitzky_golay

int order_savitzky_golay = 2
static
Examples
phase.cpp.

Definition at line 76 of file phase.cpp.

◆ window_savitzky_golay

int window_savitzky_golay = 3
static
Examples
phase.cpp.

Definition at line 77 of file phase.cpp.

help
static char help[]
Definition: phase.cpp:17
d1_savitzky_golay_w7_p2
constexpr std::array< int, 7 > d1_savitzky_golay_w7_p2
Definition: phase.cpp:28
MoFEM::CoreTmp< 0 >
Core (interface) class.
Definition: Core.hpp:82
d1_savitzky_golay_w7_p4
constexpr std::array< int, 7 > d1_savitzky_golay_w7_p4
Definition: phase.cpp:33
d1_savitzky_golay_p4
const int * d1_savitzky_golay_p4[]
Definition: phase.cpp:49
d1_savitzky_golay_w9_p2
constexpr std::array< int, 9 > d1_savitzky_golay_w9_p2
Definition: phase.cpp:29
MoFEM::CoreTmp< 0 >::Finalize
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.
Definition: Core.cpp:112
MoFEM::DeprecatedCoreInterface
Deprecated interface functions.
Definition: DeprecatedCoreInterface.hpp:16
MoFEM::Interface
DeprecatedCoreInterface Interface
Definition: Interface.hpp:2010
d1_normalisation_p2
constexpr std::array< int, 10 > d1_normalisation_p2
Definition: phase.cpp:38
CHKERR
#define CHKERR
Inline error check.
Definition: definitions.h:548
d1_savitzky_golay_w5_p4
constexpr std::array< int, 5 > d1_savitzky_golay_w5_p4
Definition: phase.cpp:32
Example
[Example]
Definition: plastic.cpp:177
MoFEM::DMRegister_MoFEM
PetscErrorCode DMRegister_MoFEM(const char sname[])
Register MoFEM problem.
Definition: DMMoFEM.cpp:43
d1_normalisation_p4
constexpr std::array< int, 10 > d1_normalisation_p4
Definition: phase.cpp:40
d1_savitzky_golay_p2
const int * d1_savitzky_golay_p2[]
Definition: phase.cpp:43
MoFEM::CoreTmp< 0 >::Initialize
static MoFEMErrorCode Initialize(int *argc, char ***args, const char file[], const char help[])
Initializes the MoFEM database PETSc, MOAB and MPI.
Definition: Core.cpp:72
CATCH_ERRORS
#define CATCH_ERRORS
Catch errors.
Definition: definitions.h:385
MoFEM::Core
CoreTmp< 0 > Core
Definition: Core.hpp:1148
d1_savitzky_golay_w5_p2
constexpr std::array< int, 5 > d1_savitzky_golay_w5_p2
Definition: phase.cpp:27
d1_savitzky_golay_w9_p4
constexpr std::array< int, 9 > d1_savitzky_golay_w9_p4
Definition: phase.cpp:35
d1_savitzky_golay_w3_p2
constexpr std::array< int, 3 > d1_savitzky_golay_w3_p2
Definition: phase.cpp:26