Elmer FEM solver
Elmer is an open source finite element software for multiphysical problems
 All Classes Files Functions Variables Typedefs Macros Groups Pages
materialmodels Module Reference

Public Member Functions

real(kind=dp) function secondinvariant (Velo, dVelodx, CtrMetric, Symb)
 
subroutine frictionheat (Heat, Viscosity, Ux, Uy, Uz, Element, Nodes)
 
real(kind=dp) function effectiveviscosity (Viscosity, Density, Ux, Uy, Uz, Element, Nodes, n, nd, u, v, w, muder)
 
real(kind=dp) function effectiveconductivity (Conductivity, Density, Element, Temperature, Ux, Uy, Uz, Nodes, n, nd, u, v, w)
 
subroutine elementdensity (Density, n)
 

Public Attributes

integer, parameter incompressible = 0
 
integer, parameter userdefined1 = 1
 
integer, parameter userdefined2 = 2
 
integer, parameter perfectgas1 = 3
 
integer, parameter perfectgas2 = 4
 
integer, parameter perfectgas3 = 5
 
integer, parameter thermal = 6
 

Member Function/Subroutine Documentation

real(kind=dp) function materialmodels::effectiveconductivity ( real(kind=dp)  Conductivity,
real(kind=dp)  Density,
type(element_t), pointer  Element,
real(kind=dp), dimension(:)  Temperature,
real(kind=dp), dimension(:)  Ux,
real(kind=dp), dimension(:)  Uy,
real(kind=dp), dimension(:)  Uz,
type(nodes_t)  Nodes,
integer  n,
integer  nd,
real(kind=dp)  u,
real(kind=dp)  v,
real(kind=dp)  w 
)

Returns effective heat conductivity mainly related to turbulence models.

References effectiveviscosity(), elementdescription::elementinfo(), defutils::getmaterial(), modeldescription::getprocaddr(), defutils::getreal(), defutils::getstring(), lists::listgetstring(), and messages::warn().

Referenced by diffuseconvective::diffuseconvectivecompose(), and diffuseconvectivegeneral::diffuseconvectivegencompose().

Here is the call graph for this function:

Here is the caller graph for this function:

real(kind=dp) function materialmodels::effectiveviscosity ( real(kind=dp)  Viscosity,
real(kind=dp)  Density,
real(kind=dp), dimension(:)  Ux,
real(kind=dp), dimension(:)  Uy,
real(kind=dp), dimension(:)  Uz,
type(element_t), pointer  Element,
type(nodes_t)  Nodes,
integer  n,
integer  nd,
real(kind=dp)  u,
real(kind=dp)  v,
real(kind=dp)  w,
real(kind=dp), optional  muder 
)

Returns effective viscosity for Navier-Stokes equation. The viscosity model may be either some nonnewtonian material law, or from turbulence models, but not from both at the same time.

References coordinatesystems::coordinatesysteminfo(), elementdescription::elementdiameter(), elementdescription::elementinfo(), messages::fatal(), defutils::getconstreal(), defutils::getlogical(), modeldescription::getprocaddr(), defutils::getstring(), messages::info(), lists::listgetconstreal(), lists::listgetinteger(), lists::listgetreal(), lists::listgetstring(), secondinvariant(), lists::variableget(), and messages::warn().

Referenced by bulkassembly(), diffuseconvective::diffuseconvectivecompose(), diffuseconvectivegeneral::diffuseconvectivegencompose(), effectiveconductivity(), localboundarymatrix(), localmatrix(), navierstokes::navierstokescompose(), navierstokescylindrical::navierstokescylindricalcompose(), navierstokesgeneral::navierstokesgeneralcompose(), and stressgeneralboundary().

Here is the call graph for this function:

Here is the caller graph for this function:

subroutine materialmodels::elementdensity ( real(kind=dp), dimension(:)  Density,
integer  n 
)

Returns density stemming from various equations of state.

References defutils::getcreal(), defutils::getmaterial(), defutils::getreal(), defutils::getlocalsolution::getscalarlocalsolution(), defutils::getstring(), and lists::listgetconstreal().

Referenced by localmatrix().

Here is the call graph for this function:

Here is the caller graph for this function:

subroutine materialmodels::frictionheat ( real(kind=dp), dimension(:)  Heat,
real(kind=dp), dimension(:)  Viscosity,
real(kind=dp), dimension(:)  Ux,
real(kind=dp), dimension(:)  Uy,
real(kind=dp), dimension(:)  Uz,
type(element_t)  Element,
type(nodes_t)  Nodes 
)

References coordinatesystems::coordinatesysteminfo(), elementdescription::elementinfo(), and secondinvariant().

Referenced by diffuseconvective::diffuseconvectivecompose(), and diffuseconvectivegeneral::diffuseconvectivegencompose().

Here is the call graph for this function:

Here is the caller graph for this function:

real(kind=dp) function materialmodels::secondinvariant ( real(kind=dp), dimension(3)  Velo,
real(kind=dp), dimension(3,3)  dVelodx,
real(kind=dp), dimension(3,3), optional  CtrMetric,
real(kind=dp), dimension(3,3,3), optional  Symb 
)

Return second invariant. Note: Actually SQUARE of the second invariant of velocity is returned.

References coordinatesystems::currentcoordinatesystem(), and linearalgebra::invertmatrix().

Referenced by bulkassembly(), diffuseconvective::diffuseconvectivecompose(), diffuseconvectivegeneral::diffuseconvectivegencompose(), effectiveviscosity(), frictionheat(), localmatrix(), and v2f().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

integer, parameter materialmodels::incompressible = 0
integer, parameter materialmodels::perfectgas1 = 3
integer, parameter materialmodels::perfectgas2 = 4
integer, parameter materialmodels::perfectgas3 = 5
integer, parameter materialmodels::thermal = 6
integer, parameter materialmodels::userdefined1 = 1
integer, parameter materialmodels::userdefined2 = 2

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