v0.15.0
Loading...
Searching...
No Matches
MixTransport::MixTransportElement::OpSkeleton::OpVolSide Struct Reference

calculate values on adjacent tetrahedra to face More...

#include "tutorials/cor-0to1/src/MixTransportElement.hpp"

Inheritance diagram for MixTransport::MixTransportElement::OpSkeleton::OpVolSide:
[legend]
Collaboration diagram for MixTransport::MixTransportElement::OpSkeleton::OpVolSide:
[legend]

Public Member Functions

 OpVolSide (map< int, VectorDouble > &val_map)
 
MoFEMErrorCode doWork (int side, EntityType type, EntitiesFieldData::EntData &data)
 

Public Attributes

map< int, VectorDouble > & valMap
 

Detailed Description

calculate values on adjacent tetrahedra to face

Definition at line 1488 of file MixTransportElement.hpp.

Constructor & Destructor Documentation

◆ OpVolSide()

MixTransport::MixTransportElement::OpSkeleton::OpVolSide::OpVolSide ( map< int, VectorDouble > & val_map)
inline

Definition at line 1491 of file MixTransportElement.hpp.

1492 : VolumeElementForcesAndSourcesCoreOnSide::UserDataOperator(
1493 "VALUES", UserDataOperator::OPROW),
1494 valMap(val_map) {}

Member Function Documentation

◆ doWork()

MoFEMErrorCode MixTransport::MixTransportElement::OpSkeleton::OpVolSide::doWork ( int side,
EntityType type,
EntitiesFieldData::EntData & data )
inline

Definition at line 1495 of file MixTransportElement.hpp.

1496 {
1498 if (data.getFieldData().size() == 0)
1500 const auto nb_gauss_pts = data.getN().size1();
1501 valMap[getSkeletonSense()].resize(nb_gauss_pts);
1502 for (auto gg = 0; gg != nb_gauss_pts; gg++) {
1503 valMap[getSkeletonSense()][gg] =
1504 inner_prod(trans(data.getN(gg)), data.getFieldData());
1505 }
1507 }
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
MatrixDouble & getN(const FieldApproximationBase base)
get base functions this return matrix (nb. of rows is equal to nb. of Gauss pts, nb....
const VectorDouble & getFieldData() const
get dofs values

Member Data Documentation

◆ valMap

map<int, VectorDouble>& MixTransport::MixTransportElement::OpSkeleton::OpVolSide::valMap

Definition at line 1490 of file MixTransportElement.hpp.


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