Neko 1.99.9
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
artificial_viscosity_model Module Reference

Implements avm_t.

Data Types

type  allocator_entry
 Called in user modules to add an allocator for custom types. More...
 
interface  avm_allocate
 Artificial viscosity model allocator. More...
 
interface  avm_compute
 Perform artificial viscosity related computations after the time step. More...
 
interface  avm_free
 Destructor. More...
 
interface  avm_init
 Common constructor. More...
 
interface  avm_preprocess
 Perform artificial viscosity related computations before the time step. More...
 
type  avm_t
 Base abstract type for artificial viscosity models. More...
 

Functions/Subroutines

subroutine avm_init_base (this, dof, coef, reg_coeff_name)
 Artificial viscosity model factory. Both allocates and initializes the object.
 
subroutine avm_restart (this, time)
 Restore model state after loading a checkpoint. Models with additional history should override this method.
 
subroutine avm_free_base (this)
 Destructor for the avm_t (base) class.
 

Variables

type(allocator_entry), dimension(:), allocatable avm_registry
 Registry of artificial viscosity model allocators for user-defined types.
 
integer avm_registry_size = 0
 The size of the avm_registry
 

Function/Subroutine Documentation

◆ avm_free_base()

subroutine artificial_viscosity_model::avm_free_base ( class(avm_t), intent(inout)  this)
private
Parameters
thisThe artificial viscosity model.

Definition at line 226 of file avm.f90.

◆ avm_init_base()

subroutine artificial_viscosity_model::avm_init_base ( class(avm_t), intent(inout)  this,
class(dofmap_t), intent(in), target  dof,
class(coef_t), intent(in), target  coef,
character(len=*), intent(in)  reg_coeff_name 
)
private
Parameters
objectThe object to be allocated.
type_nameThe name of the artificial viscosity model.
caseThe case_t object.
jsonA dictionary with parameters. Constructor for the avm_t (base) class.
thisThe artificial viscosity model.
dofMap of degrees of freedom.
coefThe SEM coefficients.
reg_coeff_nameThe name of the artificial viscosity field.

Definition at line 196 of file avm.f90.

◆ avm_restart()

subroutine artificial_viscosity_model::avm_restart ( class(avm_t), intent(inout)  this,
type(time_state_t), intent(in)  time 
)
private
Parameters
thisThe artificial viscosity model.
timeThe restored time state.

Definition at line 216 of file avm.f90.

Variable Documentation

◆ avm_registry

type(allocator_entry), dimension(:), allocatable artificial_viscosity_model::avm_registry

Definition at line 164 of file avm.f90.

◆ avm_registry_size

integer artificial_viscosity_model::avm_registry_size = 0
private

Definition at line 167 of file avm.f90.