v0.13.1
Public Member Functions | Public Attributes | List of all members
FractureMechanics::AnalyticalOptions Struct Reference

#include <users_modules/fracture_mechanics/AnalyticalFun.hpp>

Inheritance diagram for FractureMechanics::AnalyticalOptions:
[legend]
Collaboration diagram for FractureMechanics::AnalyticalOptions:
[legend]

Public Member Functions

PetscErrorCode getOptions ()
 
 AnalyticalOptions ()
 

Public Attributes

double aLpha
 
bool optionsInitialised
 

Detailed Description

Definition at line 17 of file AnalyticalFun.hpp.

Constructor & Destructor Documentation

◆ AnalyticalOptions()

FractureMechanics::AnalyticalOptions::AnalyticalOptions ( )

Member Function Documentation

◆ getOptions()

PetscErrorCode FractureMechanics::AnalyticalOptions::getOptions ( )

Definition at line 20 of file AnalyticalFun.hpp.

20 {
21
23 ierr =
24 PetscOptionsBegin(PETSC_COMM_WORLD, "",
25 "Get analytical boundary conditions options", "none");
26 CHKERRQ(ierr);
27 ierr = PetscOptionsScalar("-analytical_alpha", "crack angle", "", aLpha,
28 &aLpha, PETSC_NULL);
29 CHKERRQ(ierr);
30 PetscBool flg;
31 double fraction = 1;
32 ierr = PetscOptionsScalar(
33 "-analytical_alpha_fraction_pi",
34 "crack angle given as fraction of Pi aLpha = M_PI/fraction", "",
35 fraction, &fraction, &flg);
36 CHKERRQ(ierr);
37 if (flg == PETSC_TRUE) {
38 aLpha = M_PI / fraction;
39 }
40 ierr = PetscOptionsEnd();
41 CHKERRQ(ierr);
42 optionsInitialised = true;
44 }
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:447
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:440
static MoFEMErrorCodeGeneric< PetscErrorCode > ierr
Definition: Exceptions.hpp:76

Member Data Documentation

◆ aLpha

double FractureMechanics::AnalyticalOptions::aLpha

Definition at line 18 of file AnalyticalFun.hpp.

◆ optionsInitialised

bool FractureMechanics::AnalyticalOptions::optionsInitialised

Definition at line 19 of file AnalyticalFun.hpp.


The documentation for this struct was generated from the following file: