v0.9.1
Public Member Functions | Public Attributes | List of all members
MixTransport::UnsaturatedFlowElement::postProcessVol Struct Reference

Post proces method for volume element Assemble vectors and matrices and apply essential boundary conditions. More...

#include <users_modules/basic_finite_elements/mix_transport/src/UnsaturatedFlow.hpp>

Collaboration diagram for MixTransport::UnsaturatedFlowElement::postProcessVol:
[legend]

Public Member Functions

 postProcessVol (UnsaturatedFlowElement &ctx, boost::shared_ptr< ForcesAndSourcesCore > &fe_ptr)
 
MoFEMErrorCode operator() ()
 

Public Attributes

UnsaturatedFlowElementcTx
 
boost::shared_ptr< ForcesAndSourcesCore > fePtr
 

Detailed Description

Post proces method for volume element Assemble vectors and matrices and apply essential boundary conditions.

Definition at line 1382 of file UnsaturatedFlow.hpp.

Constructor & Destructor Documentation

◆ postProcessVol()

MixTransport::UnsaturatedFlowElement::postProcessVol::postProcessVol ( UnsaturatedFlowElement ctx,
boost::shared_ptr< ForcesAndSourcesCore > &  fe_ptr 
)
Examples
UnsaturatedFlow.hpp.

Definition at line 1386 of file UnsaturatedFlow.hpp.

1390  : cTx(ctx), fePtr(fe_ptr) /*,mArk(mark)*/ {}
boost::shared_ptr< ForcesAndSourcesCore > fePtr

Member Function Documentation

◆ operator()()

MoFEMErrorCode MixTransport::UnsaturatedFlowElement::postProcessVol::operator() ( )
Examples
UnsaturatedFlow.hpp.

Definition at line 1391 of file UnsaturatedFlow.hpp.

1391  {
1393  switch (fePtr->ts_ctx) {
1394  case TSMethod::CTX_TSSETIJACOBIAN: {
1395  CHKERR MatAssemblyBegin(fePtr->ts_B, MAT_FINAL_ASSEMBLY);
1396  CHKERR MatAssemblyEnd(fePtr->ts_B, MAT_FINAL_ASSEMBLY);
1397  // MatView(fePtr->ts_B,PETSC_VIEWER_DRAW_WORLD);
1398  // std::string wait;
1399  // std::cin >> wait;
1400  CHKERR MatZeroRowsColumns(fePtr->ts_B, cTx.bcVecIds.size(),
1401  &*cTx.bcVecIds.begin(), 1, PETSC_NULL,
1402  PETSC_NULL);
1403  CHKERR MatAssemblyBegin(fePtr->ts_B, MAT_FINAL_ASSEMBLY);
1404  CHKERR MatAssemblyEnd(fePtr->ts_B, MAT_FINAL_ASSEMBLY);
1405  // MatView(fePtr->ts_B,PETSC_VIEWER_DRAW_WORLD);
1406  // std::string wait;
1407  // std::cin >> wait;
1408  } break;
1409  case TSMethod::CTX_TSSETIFUNCTION: {
1410  CHKERR VecAssemblyBegin(fePtr->ts_F);
1411  CHKERR VecAssemblyEnd(fePtr->ts_F);
1412  if (!cTx.bcVecIds.empty()) {
1414  CHKERR VecSetValues(fePtr->ts_F, cTx.bcVecIds.size(),
1415  &*cTx.bcVecIds.begin(), &*cTx.vecValsOnBc.begin(),
1416  INSERT_VALUES);
1417  }
1418  CHKERR VecAssemblyBegin(fePtr->ts_F);
1419  CHKERR VecAssemblyEnd(fePtr->ts_F);
1420  } break;
1421  default:
1422  // don nothing
1423  break;
1424  }
1426  }
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:483
MoFEMErrorCode VecSetValues(Vec V, const DataForcesAndSourcesCore::EntData &data, const double *ptr, InsertMode iora)
Assemble PETSc vector.
#define CHKERR
Inline error check.
Definition: definitions.h:602
boost::shared_ptr< ForcesAndSourcesCore > fePtr
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:413

Member Data Documentation

◆ cTx

UnsaturatedFlowElement& MixTransport::UnsaturatedFlowElement::postProcessVol::cTx
Examples
UnsaturatedFlow.hpp.

Definition at line 1383 of file UnsaturatedFlow.hpp.

◆ fePtr

boost::shared_ptr<ForcesAndSourcesCore> MixTransport::UnsaturatedFlowElement::postProcessVol::fePtr
Examples
UnsaturatedFlow.hpp.

Definition at line 1384 of file UnsaturatedFlow.hpp.


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