Neko  0.8.1
A portable framework for high-order spectral element flow simulations
boussinesq_source_term Module Reference

Implements the boussinesq_source_term_t type. More...

Data Types

type  boussinesq_source_term_t
 Bouyancy source term accroding to the Boussinesq approximation. More...
 

Functions/Subroutines

subroutine boussinesq_source_term_init_from_json (this, json, fields, coef)
 The common constructor using a JSON object. More...
 
subroutine boussinesq_source_term_init_from_components (this, fields, scalar_name, ref_value, g, beta, coef, start_time, end_time)
 The constructor from type components. More...
 
subroutine boussinesq_source_term_free (this)
 Destructor. More...
 
subroutine boussinesq_source_term_compute (this, t, tstep)
 Computes the source term and adds the result to fields. More...
 

Detailed Description

Implements the boussinesq_source_term_t type.

Function/Subroutine Documentation

◆ boussinesq_source_term_compute()

subroutine boussinesq_source_term::boussinesq_source_term_compute ( class(boussinesq_source_term_t), intent(inout)  this,
real(kind=rp), intent(in)  t,
integer, intent(in)  tstep 
)
private

Computes the source term and adds the result to fields.

Parameters
tThe time value.
tstepThe current time-step.

Definition at line 162 of file boussinesq_source_term.f90.

Here is the call graph for this function:

◆ boussinesq_source_term_free()

subroutine boussinesq_source_term::boussinesq_source_term_free ( class(boussinesq_source_term_t), intent(inout)  this)
private

Destructor.

Definition at line 152 of file boussinesq_source_term.f90.

◆ boussinesq_source_term_init_from_components()

subroutine boussinesq_source_term::boussinesq_source_term_init_from_components ( class(boussinesq_source_term_t), intent(inout)  this,
class(field_list_t), intent(inout), target  fields,
character(len=*), intent(in)  scalar_name,
real(kind=rp), intent(in)  ref_value,
real(kind=rp), dimension(3), intent(in)  g,
real(kind=rp), intent(in)  beta,
type(coef_t coef,
real(kind=rp), intent(in)  start_time,
real(kind=rp), intent(in)  end_time 
)
private

The constructor from type components.

Parameters
fieldsA list of fields for adding the source values.
scalar_nameThe name of the scalar field driving the source.
ref_valueThe reference value of the scalar field.
gThe gravity vector.
betaThe thermal expansion coefficient.
coefThe SEM coeffs.
start_timeWhen to start adding the source term.
end_timeWhen to stop adding the source term.

Definition at line 126 of file boussinesq_source_term.f90.

Here is the caller graph for this function:

◆ boussinesq_source_term_init_from_json()

subroutine boussinesq_source_term::boussinesq_source_term_init_from_json ( class(boussinesq_source_term_t), intent(inout)  this,
type(json_file), intent(inout)  json,
type(field_list_t), intent(inout), target  fields,
type(coef_t), intent(inout)  coef 
)

The common constructor using a JSON object.

Parameters
jsonThe JSON object for the source.
fieldsA list of fields for adding the source values.
coefThe SEM coeffs.

Definition at line 84 of file boussinesq_source_term.f90.

Here is the call graph for this function: