v0.5.86
Classes | Public Member Functions | Public Attributes | List of all members
NeummanForcesSurfaceComplexForLazy Struct Reference

NonLinear surface pressure element (obsolete implementation) More...

#include <users_modules/basic_finite_elements/src/SurfacePressureComplexForLazy.hpp>

Collaboration diagram for NeummanForcesSurfaceComplexForLazy:
[legend]

Classes

struct  AuxMethodMaterial
 
struct  AuxMethodSpatial
 
struct  MyTriangleSpatialFE
 

Public Member Functions

PetscErrorCode setForceScale (double scale)
 
MyTriangleSpatialFEgetLoopSpatialFe ()
 
 NeummanForcesSurfaceComplexForLazy (MoFEM::Interface &m_field, Mat _Aij, Vec _F, double *scale_lhs, double *scale_rhs)
 
 NeummanForcesSurfaceComplexForLazy (MoFEM::Interface &m_field, Mat _Aij, Vec _F)
 

Public Attributes

MoFEM::InterfacemField
 
MyTriangleSpatialFE feSpatial
 
Tag thScale
 
doublesCale
 

Detailed Description

NonLinear surface pressure element (obsolete implementation)

Todo:
This is old implementation, need to be reimplemented, using auto-differentiation. It is well tested and works. well.

Definition at line 27 of file SurfacePressureComplexForLazy.hpp.

Constructor & Destructor Documentation

◆ NeummanForcesSurfaceComplexForLazy() [1/2]

NeummanForcesSurfaceComplexForLazy::NeummanForcesSurfaceComplexForLazy ( MoFEM::Interface m_field,
Mat  _Aij,
Vec  _F,
double scale_lhs,
double scale_rhs 
)

Definition at line 796 of file SurfacePressureComplexForLazy.cpp.

796  :
797  mField(m_field),
798  feSpatial(m_field,_Aij,_F,scale_lhs,scale_rhs) {
799  }
#define _F(n)
Definition: quad.c:25

◆ NeummanForcesSurfaceComplexForLazy() [2/2]

NeummanForcesSurfaceComplexForLazy::NeummanForcesSurfaceComplexForLazy ( MoFEM::Interface m_field,
Mat  _Aij,
Vec  _F 
)

Definition at line 773 of file SurfacePressureComplexForLazy.cpp.

773  :
774  mField(m_field),feSpatial(m_field,_Aij,_F,NULL,NULL) /*,feMaterial(m_field,_Aij,_F,NULL,NULL)*/ {
775 
776 
777 
778  double def_scale = 1.;
779  const EntityHandle root_meshset = mField.get_moab().get_root_set();
780  rval = mField.get_moab().tag_get_handle("_LoadFactor_Scale_",1,MB_TYPE_DOUBLE,thScale,MB_TAG_CREAT|MB_TAG_EXCL|MB_TAG_MESH,&def_scale);
781  if(rval == MB_ALREADY_ALLOCATED) {
782  rval = mField.get_moab().tag_get_by_ptr(thScale,&root_meshset,1,(const void**)&sCale); MOAB_THROW(rval);
783  } else {
784  MOAB_THROW(rval);
785  rval = mField.get_moab().tag_set_data(thScale,&root_meshset,1,&def_scale); MOAB_THROW(rval);
786  rval = mField.get_moab().tag_get_by_ptr(thScale,&root_meshset,1,(const void**)&sCale); MOAB_THROW(rval);
787  }
788 
791  // feMaterial.sCaleLhs = sCale;
792  // feMaterial.sCaleRhs = sCale;
793 
794 }
static MoABErrorCode rval
Definition: Common.hpp:25
virtual moab::Interface & get_moab()=0
#define MOAB_THROW(a)
Definition: definitions.h:376
#define _F(n)
Definition: quad.c:25

Member Function Documentation

◆ getLoopSpatialFe()

MyTriangleSpatialFE& NeummanForcesSurfaceComplexForLazy::getLoopSpatialFe ( )

Definition at line 174 of file SurfacePressureComplexForLazy.hpp.

◆ setForceScale()

PetscErrorCode NeummanForcesSurfaceComplexForLazy::setForceScale ( double  scale)

Definition at line 168 of file SurfacePressureComplexForLazy.hpp.

168  {
169  PetscFunctionBegin;
170  *sCale = scale;
171  PetscFunctionReturn(0);
172  }

Member Data Documentation

◆ feSpatial

MyTriangleSpatialFE NeummanForcesSurfaceComplexForLazy::feSpatial

Definition at line 162 of file SurfacePressureComplexForLazy.hpp.

◆ mField

MoFEM::Interface& NeummanForcesSurfaceComplexForLazy::mField

Definition at line 161 of file SurfacePressureComplexForLazy.hpp.

◆ sCale

double* NeummanForcesSurfaceComplexForLazy::sCale

Definition at line 167 of file SurfacePressureComplexForLazy.hpp.

◆ thScale

Tag NeummanForcesSurfaceComplexForLazy::thScale

Definition at line 165 of file SurfacePressureComplexForLazy.hpp.


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