v0.13.1
Classes | Typedefs | Functions | Variables
phase.cpp File Reference
#include <MoFEM.hpp>
#include <BasicFiniteElements.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 66 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 72 of file phase.cpp.

◆ OpHdivHdiv

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

Definition at line 68 of file phase.cpp.

◆ OpHdivU

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

Definition at line 70 of file phase.cpp.

Function Documentation

◆ main()

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

[Postprocess results]

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";
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 }
588
590}
std::string param_file
#define CATCH_ERRORS
Catch errors.
Definition: definitions.h:372
#define CHKERR
Inline error check.
Definition: definitions.h:535
PetscErrorCode DMRegister_MoFEM(const char sname[])
Register MoFEM problem.
Definition: DMMMoFEM.cpp:47
CoreTmp< 0 > Core
Definition: Core.hpp:1086
DeprecatedCoreInterface Interface
Definition: Interface.hpp:1955
static char help[]
Definition: phase.cpp:17
[Example]
Definition: plastic.cpp:111
Core (interface) class.
Definition: Core.hpp:82
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
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.
Definition: Core.cpp:112
Deprecated interface functions.

Variable Documentation

◆ d1_normalisation

const int* d1_normalisation[]
Initial value:
= {nullptr, nullptr, d1_normalisation_p2.data(),
nullptr, d1_normalisation_p4.data()}
constexpr std::array< int, 10 > d1_normalisation_p2
Definition: phase.cpp:38
constexpr std::array< int, 10 > d1_normalisation_p4
Definition: phase.cpp:40
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,
const int * d1_savitzky_golay_p2[]
Definition: phase.cpp:43
const int * d1_savitzky_golay_p4[]
Definition: phase.cpp:49
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()}
constexpr std::array< int, 3 > d1_savitzky_golay_w3_p2
Definition: phase.cpp:26
constexpr std::array< int, 5 > d1_savitzky_golay_w5_p2
Definition: phase.cpp:27
constexpr std::array< int, 7 > d1_savitzky_golay_w7_p2
Definition: phase.cpp:28
constexpr std::array< int, 9 > d1_savitzky_golay_w9_p2
Definition: phase.cpp:29
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,
constexpr std::array< int, 9 > d1_savitzky_golay_w9_p4
Definition: phase.cpp:35
constexpr std::array< int, 7 > d1_savitzky_golay_w7_p4
Definition: phase.cpp:33
constexpr std::array< int, 5 > d1_savitzky_golay_w5_p4
Definition: phase.cpp:32
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.