proteus  1.8.1
C/C++/Fortran libraries
Public Member Functions | Public Attributes | List of all members
proteus::SW2D< 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/SW2D.h>

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

Public Member Functions

 SW2D ()
 
void evaluateCoefficients (const double nu, const double g, const double grad_b[nSpace], const double &h, const double &u, const double &v, double &mass_acc, double &dmass_acc_h, double &mom_u_acc, double &dmom_u_acc_h, double &dmom_u_acc_u, double &mom_v_acc, double &dmom_v_acc_h, double &dmom_v_acc_v, double mass_adv[nSpace], double dmass_adv_h[nSpace], double dmass_adv_u[nSpace], double dmass_adv_v[nSpace], double mom_u_adv[nSpace], double dmom_u_adv_h[nSpace], double dmom_u_adv_u[nSpace], double dmom_u_adv_v[nSpace], double mom_v_adv[nSpace], double dmom_v_adv_h[nSpace], double dmom_v_adv_u[nSpace], double dmom_v_adv_v[nSpace], double mom_u_diff_ten[nSpace], double mom_v_diff_ten[nSpace], double mom_uv_diff_ten[1], double mom_vu_diff_ten[1], double &mom_u_source, double &dmom_u_source_h, double &mom_v_source, double &dmom_v_source_h)
 
void calculateSubgridError_tau (const double &elementDiameter, const double &nu, const double &g, const double &h, const double &u, const double &v, double tau[9], double &cfl)
 
void calculateSubgridError_tau_supg (const double &elementDiameter, const double &nu, const double &g, const double &h, const double &u, const double &v, const double &alpha, const double &area, double tau_x[9], double tau_y[9], double &cfl)
 
void exteriorNumericalAdvectiveFlux (const int &isDOFBoundary_h, const int &isDOFBoundary_u, const int &isDOFBoundary_v, const int &isFluxBoundary_h, const int &isFluxBoundary_u, const int &isFluxBoundary_v, const double n[nSpace], const double &bc_h, const double bc_f_mass[nSpace], const double bc_f_umom[nSpace], const double bc_f_vmom[nSpace], const double &bc_flux_mass, const double &bc_flux_umom, const double &bc_flux_vmom, const double &h, const double f_mass[nSpace], const double f_umom[nSpace], const double f_vmom[nSpace], const double df_mass_dh[nSpace], const double df_mass_du[nSpace], const double df_mass_dv[nSpace], const double df_umom_dh[nSpace], const double df_umom_du[nSpace], const double df_umom_dv[nSpace], const double df_vmom_dh[nSpace], const double df_vmom_du[nSpace], const double df_vmom_dv[nSpace], double &flux_mass, double &flux_umom, double &flux_vmom, double *velocity)
 
void exteriorNumericalAdvectiveFluxDerivatives (const int &isDOFBoundary_h, const int &isDOFBoundary_u, const int &isDOFBoundary_v, const int &isFluxBoundary_h, const int &isFluxBoundary_u, const int &isFluxBoundary_v, const double n[nSpace], const double &bc_h, const double bc_f_mass[nSpace], const double bc_f_umom[nSpace], const double bc_f_vmom[nSpace], const double &bc_flux_mass, const double &bc_flux_umom, const double &bc_flux_vmom, const double &h, const double f_mass[nSpace], const double f_umom[nSpace], const double f_vmom[nSpace], const double df_mass_du[nSpace], const double df_mass_dv[nSpace], const double df_umom_dh[nSpace], const double df_umom_du[nSpace], const double df_umom_dv[nSpace], const double df_vmom_dh[nSpace], const double df_vmom_du[nSpace], const double df_vmom_dv[nSpace], double &dflux_mass_dh, double &dflux_mass_du, double &dflux_mass_dv, double &dflux_umom_dh, double &dflux_umom_du, double &dflux_umom_dv, double &dflux_vmom_dh, double &dflux_vmom_du, double &dflux_vmom_dv)
 
void calculateResidual (arguments_dict &args)
 
void calculateResidual_supg (arguments_dict &args)
 
void calculateJacobian (arguments_dict &args)
 
void calculateJacobian_supg (arguments_dict &args)
 
- Public Member Functions inherited from proteus::SW2D_base
virtual ~SW2D_base ()
 

Public Attributes

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::SW2D< CompKernelType, nSpace, nQuadraturePoints_element, nDOF_mesh_trial_element, nDOF_trial_element, nDOF_test_element, nQuadraturePoints_elementBoundary >

Definition at line 36 of file SW2D.h.

Constructor & Destructor Documentation

◆ SW2D()

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::SW2D< CompKernelType, nSpace, nQuadraturePoints_element, nDOF_mesh_trial_element, nDOF_trial_element, nDOF_test_element, nQuadraturePoints_elementBoundary >::SW2D ( )
inline

Definition at line 41 of file SW2D.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::SW2D< CompKernelType, nSpace, nQuadraturePoints_element, nDOF_mesh_trial_element, nDOF_trial_element, nDOF_test_element, nQuadraturePoints_elementBoundary >::calculateJacobian ( arguments_dict args)
inlinevirtual

Implements proteus::SW2D_base.

Definition at line 2160 of file SW2D.h.

◆ calculateJacobian_supg()

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::SW2D< CompKernelType, nSpace, nQuadraturePoints_element, nDOF_mesh_trial_element, nDOF_trial_element, nDOF_test_element, nQuadraturePoints_elementBoundary >::calculateJacobian_supg ( arguments_dict args)
inlinevirtual

Implements proteus::SW2D_base.

Definition at line 3274 of file SW2D.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::SW2D< CompKernelType, nSpace, nQuadraturePoints_element, nDOF_mesh_trial_element, nDOF_trial_element, nDOF_test_element, nQuadraturePoints_elementBoundary >::calculateResidual ( arguments_dict args)
inlinevirtual

Implements proteus::SW2D_base.

Definition at line 731 of file SW2D.h.

◆ calculateResidual_supg()

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::SW2D< CompKernelType, nSpace, nQuadraturePoints_element, nDOF_mesh_trial_element, nDOF_trial_element, nDOF_test_element, nQuadraturePoints_elementBoundary >::calculateResidual_supg ( arguments_dict args)
inlinevirtual

Implements proteus::SW2D_base.

Definition at line 1668 of file SW2D.h.

◆ calculateSubgridError_tau()

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::SW2D< CompKernelType, nSpace, nQuadraturePoints_element, nDOF_mesh_trial_element, nDOF_trial_element, nDOF_test_element, nQuadraturePoints_elementBoundary >::calculateSubgridError_tau ( const double &  elementDiameter,
const double &  nu,
const double &  g,
const double &  h,
const double &  u,
const double &  v,
double  tau[9],
double &  cfl 
)
inline

Definition at line 165 of file SW2D.h.

◆ calculateSubgridError_tau_supg()

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::SW2D< CompKernelType, nSpace, nQuadraturePoints_element, nDOF_mesh_trial_element, nDOF_trial_element, nDOF_test_element, nQuadraturePoints_elementBoundary >::calculateSubgridError_tau_supg ( const double &  elementDiameter,
const double &  nu,
const double &  g,
const double &  h,
const double &  u,
const double &  v,
const double &  alpha,
const double &  area,
double  tau_x[9],
double  tau_y[9],
double &  cfl 
)
inline

Definition at line 333 of file SW2D.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::SW2D< CompKernelType, nSpace, nQuadraturePoints_element, nDOF_mesh_trial_element, nDOF_trial_element, nDOF_test_element, nQuadraturePoints_elementBoundary >::evaluateCoefficients ( const double  nu,
const double  g,
const double  grad_b[nSpace],
const double &  h,
const double &  u,
const double &  v,
double &  mass_acc,
double &  dmass_acc_h,
double &  mom_u_acc,
double &  dmom_u_acc_h,
double &  dmom_u_acc_u,
double &  mom_v_acc,
double &  dmom_v_acc_h,
double &  dmom_v_acc_v,
double  mass_adv[nSpace],
double  dmass_adv_h[nSpace],
double  dmass_adv_u[nSpace],
double  dmass_adv_v[nSpace],
double  mom_u_adv[nSpace],
double  dmom_u_adv_h[nSpace],
double  dmom_u_adv_u[nSpace],
double  dmom_u_adv_v[nSpace],
double  mom_v_adv[nSpace],
double  dmom_v_adv_h[nSpace],
double  dmom_v_adv_u[nSpace],
double  dmom_v_adv_v[nSpace],
double  mom_u_diff_ten[nSpace],
double  mom_v_diff_ten[nSpace],
double  mom_uv_diff_ten[1],
double  mom_vu_diff_ten[1],
double &  mom_u_source,
double &  dmom_u_source_h,
double &  mom_v_source,
double &  dmom_v_source_h 
)
inline

Definition at line 56 of file SW2D.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::SW2D< CompKernelType, nSpace, nQuadraturePoints_element, nDOF_mesh_trial_element, nDOF_trial_element, nDOF_test_element, nQuadraturePoints_elementBoundary >::exteriorNumericalAdvectiveFlux ( const int &  isDOFBoundary_h,
const int &  isDOFBoundary_u,
const int &  isDOFBoundary_v,
const int &  isFluxBoundary_h,
const int &  isFluxBoundary_u,
const int &  isFluxBoundary_v,
const double  n[nSpace],
const double &  bc_h,
const double  bc_f_mass[nSpace],
const double  bc_f_umom[nSpace],
const double  bc_f_vmom[nSpace],
const double &  bc_flux_mass,
const double &  bc_flux_umom,
const double &  bc_flux_vmom,
const double &  h,
const double  f_mass[nSpace],
const double  f_umom[nSpace],
const double  f_vmom[nSpace],
const double  df_mass_dh[nSpace],
const double  df_mass_du[nSpace],
const double  df_mass_dv[nSpace],
const double  df_umom_dh[nSpace],
const double  df_umom_du[nSpace],
const double  df_umom_dv[nSpace],
const double  df_vmom_dh[nSpace],
const double  df_vmom_du[nSpace],
const double  df_vmom_dv[nSpace],
double &  flux_mass,
double &  flux_umom,
double &  flux_vmom,
double *  velocity 
)
inline

Definition at line 385 of file SW2D.h.

◆ exteriorNumericalAdvectiveFluxDerivatives()

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::SW2D< CompKernelType, nSpace, nQuadraturePoints_element, nDOF_mesh_trial_element, nDOF_trial_element, nDOF_test_element, nQuadraturePoints_elementBoundary >::exteriorNumericalAdvectiveFluxDerivatives ( const int &  isDOFBoundary_h,
const int &  isDOFBoundary_u,
const int &  isDOFBoundary_v,
const int &  isFluxBoundary_h,
const int &  isFluxBoundary_u,
const int &  isFluxBoundary_v,
const double  n[nSpace],
const double &  bc_h,
const double  bc_f_mass[nSpace],
const double  bc_f_umom[nSpace],
const double  bc_f_vmom[nSpace],
const double &  bc_flux_mass,
const double &  bc_flux_umom,
const double &  bc_flux_vmom,
const double &  h,
const double  f_mass[nSpace],
const double  f_umom[nSpace],
const double  f_vmom[nSpace],
const double  df_mass_du[nSpace],
const double  df_mass_dv[nSpace],
const double  df_umom_dh[nSpace],
const double  df_umom_du[nSpace],
const double  df_umom_dv[nSpace],
const double  df_vmom_dh[nSpace],
const double  df_vmom_du[nSpace],
const double  df_vmom_dv[nSpace],
double &  dflux_mass_dh,
double &  dflux_mass_du,
double &  dflux_mass_dv,
double &  dflux_umom_dh,
double &  dflux_umom_du,
double &  dflux_umom_dv,
double &  dflux_vmom_dh,
double &  dflux_vmom_du,
double &  dflux_vmom_dv 
)
inline

Definition at line 515 of file SW2D.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::SW2D< CompKernelType, nSpace, nQuadraturePoints_element, nDOF_mesh_trial_element, nDOF_trial_element, nDOF_test_element, nQuadraturePoints_elementBoundary >::ck

Definition at line 40 of file SW2D.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::SW2D< CompKernelType, nSpace, nQuadraturePoints_element, nDOF_mesh_trial_element, nDOF_trial_element, nDOF_test_element, nQuadraturePoints_elementBoundary >::nDOF_test_X_trial_element

Definition at line 39 of file SW2D.h.


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