proteus  1.8.1
C/C++/Fortran libraries
Public Member Functions | Public Attributes | List of all members
proteus::Dissipation2D< CompKernelType, nSpace, nQuadraturePoints_element, nDOF_mesh_trial_element, nDOF_trial_element, nDOF_test_element, nQuadraturePoints_elementBoundary > Class Template Reference

#include </Users/cekees/proteus/proteus/mprans/Dissipation2D.h>

Inheritance diagram for proteus::Dissipation2D< CompKernelType, nSpace, nQuadraturePoints_element, nDOF_mesh_trial_element, nDOF_trial_element, nDOF_test_element, nQuadraturePoints_elementBoundary >:
[legend]
Collaboration diagram for proteus::Dissipation2D< CompKernelType, nSpace, nQuadraturePoints_element, nDOF_mesh_trial_element, nDOF_trial_element, nDOF_test_element, nQuadraturePoints_elementBoundary >:
[legend]

Public Member Functions

 Dissipation2D ()
 
void setSedClosure (double aDarcy, double betaForch, double grain, double packFraction, double packMargin, double maxFraction, double frFraction, double sigmaC, double C3e, double C4e, double eR, double fContact, double mContact, double nContact, double angFriction, double vos_limiter, double mu_fr_limiter)
 
void computeK_OmegaCoefficients (const double &div_eps, const double &k, const double &omega, const double grad_k[nSpace], const double grad_omega[nSpace], const double grad_vx[nSpace], const double grad_vy[nSpace], double &inverse_sigma_k, double &inverse_sigma_omega, double &beta_star, double &beta, double &gamma)
 
void evaluateCoefficients (double v[nSpace], const double eps_mu, const double phi, const double nu_0, const double nu_1, const double sigma_e, const double c_mu, const double c_1, const double c_2, const double c_e, const double grad_vx[nSpace], const double grad_vy[nSpace], const double &dissipation, const double &dissipation_old, const double &k, const double &porosity, int sedFlag, double q_vos, double q_vos_gradc[nSpace], double rho_f, double rho_s, double vs[nSpace], double g[nSpace], int dissipation_model_flag, const double grad_k[nSpace], const double grad_dissipation_old[nSpace], double &m, double &dm, double f[nSpace], double df[nSpace], double &a, double &da_de, double &r, double &dr_de)
 
void calculateSubgridError_tau (const double &elementDiameter, const double &dmt, const double dH[nSpace], double &cfl, double &tau)
 
void calculateSubgridError_tau (const double &Ct_sge, const double G[nSpace *nSpace], const double &A0, const double Ai[nSpace], double &tau_v, double &cfl)
 
void calculateNumericalDiffusion (const double &shockCapturingDiffusion, const double &elementDiameter, const double &strong_residual, const double grad_u[nSpace], double &numDiff)
 
void exteriorNumericalAdvectiveFlux (const int &isDOFBoundary_u, const int &isAdvectiveFluxBoundary_u, const double n[nSpace], const double &bc_u, const double &bc_flux_u, const double &u, const double velocity[nSpace], double &flux)
 
double smoothedHeaviside (double eps, double phi)
 
void exteriorNumericalAdvectiveFluxDerivative (const int &isDOFBoundary_u, const int &isAdvectiveFluxBoundary, const double n[nSpace], const double velocity[nSpace], double &dflux)
 
void exteriorNumericalDiffusiveFlux (const double &bc_flux, const int &isDOFBoundary, const int &isDiffusiveFluxBoundary, double n[nSpace], double bc_u, double a, double grad_psi[nSpace], double u, double penalty, double &flux)
 
void exteriorNumericalDiffusiveFluxDerivative (const int &isDOFBoundary, const int &isDiffusiveFluxBoundary, double n[nSpace], double a, double da, double grad_psi[nSpace], const double grad_v[nSpace], double v, double penalty, double &fluxJacobian)
 
void calculateResidual (arguments_dict &args)
 
void calculateJacobian (arguments_dict &args)
 
- Public Member Functions inherited from proteus::Dissipation2D_base
virtual ~Dissipation2D_base ()
 

Public Attributes

cppHsuSedStress< 2 > closure
 
const int nDOF_test_X_trial_element
 
CompKernelType ck
 

Detailed Description

template<class CompKernelType, int nSpace, int nQuadraturePoints_element, int nDOF_mesh_trial_element, int nDOF_trial_element, int nDOF_test_element, int nQuadraturePoints_elementBoundary>
class proteus::Dissipation2D< CompKernelType, nSpace, nQuadraturePoints_element, nDOF_mesh_trial_element, nDOF_trial_element, nDOF_test_element, nQuadraturePoints_elementBoundary >

Definition at line 48 of file Dissipation2D.h.

Constructor & Destructor Documentation

◆ Dissipation2D()

template<class CompKernelType , int nSpace, int nQuadraturePoints_element, int nDOF_mesh_trial_element, int nDOF_trial_element, int nDOF_test_element, int nQuadraturePoints_elementBoundary>
proteus::Dissipation2D< CompKernelType, nSpace, nQuadraturePoints_element, nDOF_mesh_trial_element, nDOF_trial_element, nDOF_test_element, nQuadraturePoints_elementBoundary >::Dissipation2D ( )
inline

Definition at line 54 of file Dissipation2D.h.

Member Function Documentation

◆ calculateJacobian()

template<class CompKernelType , int nSpace, int nQuadraturePoints_element, int nDOF_mesh_trial_element, int nDOF_trial_element, int nDOF_test_element, int nQuadraturePoints_elementBoundary>
void proteus::Dissipation2D< CompKernelType, nSpace, nQuadraturePoints_element, nDOF_mesh_trial_element, nDOF_trial_element, nDOF_test_element, nQuadraturePoints_elementBoundary >::calculateJacobian ( arguments_dict args)
inlinevirtual

Implements proteus::Dissipation2D_base.

Definition at line 1165 of file Dissipation2D.h.

◆ calculateNumericalDiffusion()

template<class CompKernelType , int nSpace, int nQuadraturePoints_element, int nDOF_mesh_trial_element, int nDOF_trial_element, int nDOF_test_element, int nQuadraturePoints_elementBoundary>
void proteus::Dissipation2D< CompKernelType, nSpace, nQuadraturePoints_element, nDOF_mesh_trial_element, nDOF_trial_element, nDOF_test_element, nQuadraturePoints_elementBoundary >::calculateNumericalDiffusion ( const double &  shockCapturingDiffusion,
const double &  elementDiameter,
const double &  strong_residual,
const double  grad_u[nSpace],
double &  numDiff 
)
inline

Definition at line 394 of file Dissipation2D.h.

◆ calculateResidual()

template<class CompKernelType , int nSpace, int nQuadraturePoints_element, int nDOF_mesh_trial_element, int nDOF_trial_element, int nDOF_test_element, int nQuadraturePoints_elementBoundary>
void proteus::Dissipation2D< CompKernelType, nSpace, nQuadraturePoints_element, nDOF_mesh_trial_element, nDOF_trial_element, nDOF_test_element, nQuadraturePoints_elementBoundary >::calculateResidual ( arguments_dict args)
inlinevirtual

Implements proteus::Dissipation2D_base.

Definition at line 573 of file Dissipation2D.h.

◆ calculateSubgridError_tau() [1/2]

template<class CompKernelType , int nSpace, int nQuadraturePoints_element, int nDOF_mesh_trial_element, int nDOF_trial_element, int nDOF_test_element, int nQuadraturePoints_elementBoundary>
void proteus::Dissipation2D< CompKernelType, nSpace, nQuadraturePoints_element, nDOF_mesh_trial_element, nDOF_trial_element, nDOF_test_element, nQuadraturePoints_elementBoundary >::calculateSubgridError_tau ( const double &  Ct_sge,
const double  G[nSpace *nSpace],
const double &  A0,
const double  Ai[nSpace],
double &  tau_v,
double &  cfl 
)
inline

Definition at line 376 of file Dissipation2D.h.

◆ calculateSubgridError_tau() [2/2]

template<class CompKernelType , int nSpace, int nQuadraturePoints_element, int nDOF_mesh_trial_element, int nDOF_trial_element, int nDOF_test_element, int nQuadraturePoints_elementBoundary>
void proteus::Dissipation2D< CompKernelType, nSpace, nQuadraturePoints_element, nDOF_mesh_trial_element, nDOF_trial_element, nDOF_test_element, nQuadraturePoints_elementBoundary >::calculateSubgridError_tau ( const double &  elementDiameter,
const double &  dmt,
const double  dH[nSpace],
double &  cfl,
double &  tau 
)
inline

Definition at line 357 of file Dissipation2D.h.

◆ computeK_OmegaCoefficients()

template<class CompKernelType , int nSpace, int nQuadraturePoints_element, int nDOF_mesh_trial_element, int nDOF_trial_element, int nDOF_test_element, int nQuadraturePoints_elementBoundary>
void proteus::Dissipation2D< CompKernelType, nSpace, nQuadraturePoints_element, nDOF_mesh_trial_element, nDOF_trial_element, nDOF_test_element, nQuadraturePoints_elementBoundary >::computeK_OmegaCoefficients ( const double &  div_eps,
const double &  k,
const double &  omega,
const double  grad_k[nSpace],
const double  grad_omega[nSpace],
const double  grad_vx[nSpace],
const double  grad_vy[nSpace],
double &  inverse_sigma_k,
double &  inverse_sigma_omega,
double &  beta_star,
double &  beta,
double &  gamma 
)
inline

Definition at line 115 of file Dissipation2D.h.

◆ evaluateCoefficients()

template<class CompKernelType , int nSpace, int nQuadraturePoints_element, int nDOF_mesh_trial_element, int nDOF_trial_element, int nDOF_test_element, int nQuadraturePoints_elementBoundary>
void proteus::Dissipation2D< CompKernelType, nSpace, nQuadraturePoints_element, nDOF_mesh_trial_element, nDOF_trial_element, nDOF_test_element, nQuadraturePoints_elementBoundary >::evaluateCoefficients ( double  v[nSpace],
const double  eps_mu,
const double  phi,
const double  nu_0,
const double  nu_1,
const double  sigma_e,
const double  c_mu,
const double  c_1,
const double  c_2,
const double  c_e,
const double  grad_vx[nSpace],
const double  grad_vy[nSpace],
const double &  dissipation,
const double &  dissipation_old,
const double &  k,
const double &  porosity,
int  sedFlag,
double  q_vos,
double  q_vos_gradc[nSpace],
double  rho_f,
double  rho_s,
double  vs[nSpace],
double  g[nSpace],
int  dissipation_model_flag,
const double  grad_k[nSpace],
const double  grad_dissipation_old[nSpace],
double &  m,
double &  dm,
double  f[nSpace],
double  df[nSpace],
double &  a,
double &  da_de,
double &  r,
double &  dr_de 
)
inline

Definition at line 193 of file Dissipation2D.h.

◆ exteriorNumericalAdvectiveFlux()

template<class CompKernelType , int nSpace, int nQuadraturePoints_element, int nDOF_mesh_trial_element, int nDOF_trial_element, int nDOF_test_element, int nQuadraturePoints_elementBoundary>
void proteus::Dissipation2D< CompKernelType, nSpace, nQuadraturePoints_element, nDOF_mesh_trial_element, nDOF_trial_element, nDOF_test_element, nQuadraturePoints_elementBoundary >::exteriorNumericalAdvectiveFlux ( const int &  isDOFBoundary_u,
const int &  isAdvectiveFluxBoundary_u,
const double  n[nSpace],
const double &  bc_u,
const double &  bc_flux_u,
const double &  u,
const double  velocity[nSpace],
double &  flux 
)
inline

std::cout<<"warning: Dissipation open boundary with no external trace, setting to zero for inflow flow = "<<flow <<" n= ["<<n[0]<<","<<n[1]<<","<<n[2]<<"]"<<std::endl;

Definition at line 414 of file Dissipation2D.h.

◆ exteriorNumericalAdvectiveFluxDerivative()

template<class CompKernelType , int nSpace, int nQuadraturePoints_element, int nDOF_mesh_trial_element, int nDOF_trial_element, int nDOF_test_element, int nQuadraturePoints_elementBoundary>
void proteus::Dissipation2D< CompKernelType, nSpace, nQuadraturePoints_element, nDOF_mesh_trial_element, nDOF_trial_element, nDOF_test_element, nQuadraturePoints_elementBoundary >::exteriorNumericalAdvectiveFluxDerivative ( const int &  isDOFBoundary_u,
const int &  isAdvectiveFluxBoundary,
const double  n[nSpace],
const double  velocity[nSpace],
double &  dflux 
)
inline

Definition at line 480 of file Dissipation2D.h.

◆ exteriorNumericalDiffusiveFlux()

template<class CompKernelType , int nSpace, int nQuadraturePoints_element, int nDOF_mesh_trial_element, int nDOF_trial_element, int nDOF_test_element, int nQuadraturePoints_elementBoundary>
void proteus::Dissipation2D< CompKernelType, nSpace, nQuadraturePoints_element, nDOF_mesh_trial_element, nDOF_trial_element, nDOF_test_element, nQuadraturePoints_elementBoundary >::exteriorNumericalDiffusiveFlux ( const double &  bc_flux,
const int &  isDOFBoundary,
const int &  isDiffusiveFluxBoundary,
double  n[nSpace],
double  bc_u,
double  a,
double  grad_psi[nSpace],
double  u,
double  penalty,
double &  flux 
)
inline

Definition at line 515 of file Dissipation2D.h.

◆ exteriorNumericalDiffusiveFluxDerivative()

template<class CompKernelType , int nSpace, int nQuadraturePoints_element, int nDOF_mesh_trial_element, int nDOF_trial_element, int nDOF_test_element, int nQuadraturePoints_elementBoundary>
void proteus::Dissipation2D< CompKernelType, nSpace, nQuadraturePoints_element, nDOF_mesh_trial_element, nDOF_trial_element, nDOF_test_element, nQuadraturePoints_elementBoundary >::exteriorNumericalDiffusiveFluxDerivative ( const int &  isDOFBoundary,
const int &  isDiffusiveFluxBoundary,
double  n[nSpace],
double  a,
double  da,
double  grad_psi[nSpace],
const double  grad_v[nSpace],
double  v,
double  penalty,
double &  fluxJacobian 
)
inline

Definition at line 549 of file Dissipation2D.h.

◆ setSedClosure()

template<class CompKernelType , int nSpace, int nQuadraturePoints_element, int nDOF_mesh_trial_element, int nDOF_trial_element, int nDOF_test_element, int nQuadraturePoints_elementBoundary>
void proteus::Dissipation2D< CompKernelType, nSpace, nQuadraturePoints_element, nDOF_mesh_trial_element, nDOF_trial_element, nDOF_test_element, nQuadraturePoints_elementBoundary >::setSedClosure ( double  aDarcy,
double  betaForch,
double  grain,
double  packFraction,
double  packMargin,
double  maxFraction,
double  frFraction,
double  sigmaC,
double  C3e,
double  C4e,
double  eR,
double  fContact,
double  mContact,
double  nContact,
double  angFriction,
double  vos_limiter,
double  mu_fr_limiter 
)
inlinevirtual

Reimplemented from proteus::Dissipation2D_base.

Definition at line 77 of file Dissipation2D.h.

◆ smoothedHeaviside()

template<class CompKernelType , int nSpace, int nQuadraturePoints_element, int nDOF_mesh_trial_element, int nDOF_trial_element, int nDOF_test_element, int nQuadraturePoints_elementBoundary>
double proteus::Dissipation2D< CompKernelType, nSpace, nQuadraturePoints_element, nDOF_mesh_trial_element, nDOF_trial_element, nDOF_test_element, nQuadraturePoints_elementBoundary >::smoothedHeaviside ( double  eps,
double  phi 
)
inline

Definition at line 465 of file Dissipation2D.h.

Member Data Documentation

◆ ck

template<class CompKernelType , int nSpace, int nQuadraturePoints_element, int nDOF_mesh_trial_element, int nDOF_trial_element, int nDOF_test_element, int nQuadraturePoints_elementBoundary>
CompKernelType proteus::Dissipation2D< CompKernelType, nSpace, nQuadraturePoints_element, nDOF_mesh_trial_element, nDOF_trial_element, nDOF_test_element, nQuadraturePoints_elementBoundary >::ck

Definition at line 53 of file Dissipation2D.h.

◆ closure

template<class CompKernelType , int nSpace, int nQuadraturePoints_element, int nDOF_mesh_trial_element, int nDOF_trial_element, int nDOF_test_element, int nQuadraturePoints_elementBoundary>
cppHsuSedStress<2> proteus::Dissipation2D< CompKernelType, nSpace, nQuadraturePoints_element, nDOF_mesh_trial_element, nDOF_trial_element, nDOF_test_element, nQuadraturePoints_elementBoundary >::closure

Definition at line 51 of file Dissipation2D.h.

◆ nDOF_test_X_trial_element

template<class CompKernelType , int nSpace, int nQuadraturePoints_element, int nDOF_mesh_trial_element, int nDOF_trial_element, int nDOF_test_element, int nQuadraturePoints_elementBoundary>
const int proteus::Dissipation2D< CompKernelType, nSpace, nQuadraturePoints_element, nDOF_mesh_trial_element, nDOF_trial_element, nDOF_test_element, nQuadraturePoints_elementBoundary >::nDOF_test_X_trial_element

Definition at line 52 of file Dissipation2D.h.


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