v0.12.1
Public Member Functions | Public Attributes | List of all members
FePrePostProcess::BcEntMethod Struct Reference

#include <users_modules/multifield_plasticity/src/BasicFeTools.hpp>

Inheritance diagram for FePrePostProcess::BcEntMethod:
[legend]
Collaboration diagram for FePrePostProcess::BcEntMethod:
[legend]

Public Member Functions

 BcEntMethod (DataFromBc &data_from_dirichlet_bc, boost::shared_ptr< DirichletDisplacementBc > dirichlet_bc)
 
MoFEMErrorCode preProcess ()
 
MoFEMErrorCode postProcess ()
 
MoFEMErrorCode operator() ()
 

Public Attributes

DataFromBcdataFromDirichletBc
 
boost::shared_ptr< DirichletDisplacementBcdirichletBcPtr
 

Detailed Description

Definition at line 349 of file BasicFeTools.hpp.

Constructor & Destructor Documentation

◆ BcEntMethod()

FePrePostProcess::BcEntMethod::BcEntMethod ( DataFromBc data_from_dirichlet_bc,
boost::shared_ptr< DirichletDisplacementBc dirichlet_bc 
)

Definition at line 353 of file BasicFeTools.hpp.

355  : dataFromDirichletBc(data_from_dirichlet_bc),
356  dirichletBcPtr(dirichlet_bc) {}
boost::shared_ptr< DirichletDisplacementBc > dirichletBcPtr
DataFromBc & dataFromDirichletBc

Member Function Documentation

◆ operator()()

MoFEMErrorCode FePrePostProcess::BcEntMethod::operator() ( )

Definition at line 359 of file BasicFeTools.hpp.

359  {
361  EntityHandle v = entPtr->getEnt();
362  auto &bc_it = dataFromDirichletBc;
363  for (int i = 0; i != 3; i++) {
364  CHKERR dirichletBcPtr->calculateRotationForDof(v, bc_it);
365  if (bc_it.bc_flags[i]) {
366  if (entPtr->getEntType() == MBVERTEX) {
367  entPtr->getEntFieldData()[i] = bc_it.scaled_values[i];
368  } else {
369  entPtr->getEntFieldData()[i] = 0;
370  }
371  }
372  }
373 
375  }
static Index< 'i', 3 > i
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:359
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:429
#define CHKERR
Inline error check.
Definition: definitions.h:548
double v
phase velocity of light in medium (cm/ns)

◆ postProcess()

MoFEMErrorCode FePrePostProcess::BcEntMethod::postProcess ( )

Definition at line 358 of file BasicFeTools.hpp.

358 { return 0; }

◆ preProcess()

MoFEMErrorCode FePrePostProcess::BcEntMethod::preProcess ( )

Definition at line 357 of file BasicFeTools.hpp.

357 { return 0; }

Member Data Documentation

◆ dataFromDirichletBc

DataFromBc& FePrePostProcess::BcEntMethod::dataFromDirichletBc

Definition at line 351 of file BasicFeTools.hpp.

◆ dirichletBcPtr

boost::shared_ptr<DirichletDisplacementBc> FePrePostProcess::BcEntMethod::dirichletBcPtr

Definition at line 352 of file BasicFeTools.hpp.


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