proteus  1.8.1
C/C++/Fortran libraries
ErrorResidualMethod.cpp File Reference
#include "MeshAdaptPUMI.h"
#include <PCU.h>
#include <petscksp.h>
#include <apf.h>
#include <apfMesh.h>
#include <apfShape.h>
#include <apfDynamicMatrix.h>
#include <apfNumbering.h>
#include <iostream>
#include <fstream>
Include dependency graph for ErrorResidualMethod.cpp:

Go to the source code of this file.

int approx_order
 
int int_order
 
double nu_0
 
double nu_1
 
double rho_0
 
double rho_1
 
double a_kl = 0.5
 
void getProps (double *rho, double *nu)
 
apf::Vector3 getFaceNormal (apf::Mesh *mesh, apf::MeshEntity *face)
 
double getDotProduct (apf::Vector3 a, apf::Vector3 b)
 
double getDotProduct (apf::Matrix3x3 a, apf::Matrix3x3 b)
 
bool isInTet (apf::Mesh *mesh, apf::MeshEntity *ent, apf::Vector3 pt)
 
bool isInSimplex (apf::Mesh *mesh, apf::MeshEntity *ent, apf::Vector3 pt, int dim)
 
void getLHS (Mat &K, apf::NewArray< apf::DynamicVector > &shdrv, int nsd, double weight, double visc_val, int nshl)
 
void getRHS (Vec &F, apf::NewArray< double > &shpval, apf::NewArray< apf::DynamicVector > &shdrv, apf::Vector3 vel_vect, apf::Matrix3x3 grad_vel, int nsd, double weight, int nshl, double visc_val, double density, apf::Vector3 grad_density, double pressure, double g[3])
 
void setErrorField (apf::Field *estimate, Vec coef, apf::MeshEntity *ent, int nsd, int nshl)
 

Function Documentation

◆ getDotProduct() [1/2]

double getDotProduct ( apf::Matrix3x3  a,
apf::Matrix3x3  b 
)

Definition at line 79 of file ErrorResidualMethod.cpp.

◆ getDotProduct() [2/2]

double getDotProduct ( apf::Vector3  a,
apf::Vector3  b 
)

Definition at line 73 of file ErrorResidualMethod.cpp.

◆ getFaceNormal()

apf::Vector3 getFaceNormal ( apf::Mesh *  mesh,
apf::MeshEntity *  face 
)

Definition at line 50 of file ErrorResidualMethod.cpp.

◆ getLHS()

void getLHS ( Mat &  K,
apf::NewArray< apf::DynamicVector > &  shdrv,
int  nsd,
double  weight,
double  visc_val,
int  nshl 
)

Definition at line 197 of file ErrorResidualMethod.cpp.

◆ getProps()

void getProps ( double *  rho,
double *  nu 
)
inline

Definition at line 25 of file ErrorResidualMethod.cpp.

◆ getRHS()

void getRHS ( Vec &  F,
apf::NewArray< double > &  shpval,
apf::NewArray< apf::DynamicVector > &  shdrv,
apf::Vector3  vel_vect,
apf::Matrix3x3  grad_vel,
int  nsd,
double  weight,
int  nshl,
double  visc_val,
double  density,
apf::Vector3  grad_density,
double  pressure,
double  g[3] 
)

density;

Definition at line 244 of file ErrorResidualMethod.cpp.

◆ isInSimplex()

bool isInSimplex ( apf::Mesh *  mesh,
apf::MeshEntity *  ent,
apf::Vector3  pt,
int  dim 
)

Definition at line 127 of file ErrorResidualMethod.cpp.

◆ isInTet()

bool isInTet ( apf::Mesh *  mesh,
apf::MeshEntity *  ent,
apf::Vector3  pt 
)

Definition at line 92 of file ErrorResidualMethod.cpp.

◆ setErrorField()

void setErrorField ( apf::Field *  estimate,
Vec  coef,
apf::MeshEntity *  ent,
int  nsd,
int  nshl 
)

Definition at line 601 of file ErrorResidualMethod.cpp.

Variable Documentation

◆ a_kl

double a_kl = 0.5

Definition at line 23 of file ErrorResidualMethod.cpp.

◆ approx_order

int approx_order

Definition at line 20 of file ErrorResidualMethod.cpp.

◆ int_order

int int_order

Definition at line 21 of file ErrorResidualMethod.cpp.

◆ nu_0

double nu_0

Definition at line 22 of file ErrorResidualMethod.cpp.

◆ nu_1

double nu_1

Definition at line 22 of file ErrorResidualMethod.cpp.

◆ rho_0

double rho_0

Definition at line 22 of file ErrorResidualMethod.cpp.

◆ rho_1

double rho_1

Definition at line 22 of file ErrorResidualMethod.cpp.