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

Defines inflow dirichlet conditions.

Data Types

type  field_dirichlet_vector_t
 Extension of the user defined dirichlet condition field_dirichlet. More...

Functions/Subroutines

subroutine field_dirichlet_vector_init (this, coef, json)
 Constructor.
subroutine field_dirichlet_vector_init_from_components (this, coef)
 Constructor from components.
subroutine field_dirichlet_vector_free (this)
 Destructor. Currently unused as is, all field_dirichlet attributes are freed in fluid_scheme_incompressible::free.
subroutine field_dirichlet_vector_apply_scalar (this, x, n, time, strong)
 No-op apply scalar.
subroutine field_dirichlet_vector_apply_scalar_dev (this, x_d, time, strong, strm)
 No-op apply scalar (device).
subroutine field_dirichlet_vector_apply_vector (this, x, y, z, n, time, strong)
 Apply the boundary condition to a vector field.
subroutine field_dirichlet_vector_apply_vector_dev (this, x_d, y_d, z_d, time, strong, strm)
 Apply the boundary condition to a vector field on the device.
subroutine field_dirichlet_vector_finalize (this)
 Finalize by building the mask arrays and propagating to underlying bcs.

Function/Subroutine Documentation

◆ field_dirichlet_vector_apply_scalar()

subroutine field_dirichlet_vector::field_dirichlet_vector_apply_scalar ( class(field_dirichlet_vector_t), intent(inout) this,
real(kind=rp), dimension(n), intent(inout) x,
integer, intent(in) n,
type(time_state_t), intent(in), optional time,
logical, intent(in), optional strong )
private
Parameters
xField onto which to copy the values (e.g. u,v,w,p or s).
nSize of the array x.
tCurrent time state.

Definition at line 150 of file field_dirichlet_vector.f90.

◆ field_dirichlet_vector_apply_scalar_dev()

subroutine field_dirichlet_vector::field_dirichlet_vector_apply_scalar_dev ( class(field_dirichlet_vector_t), intent(inout), target this,
type(c_ptr), intent(inout) x_d,
type(time_state_t), intent(in), optional time,
logical, intent(in), optional strong,
type(c_ptr), intent(inout) strm )
private
Parameters
x_dDevice pointer to the field onto which to copy the values.
timeThe current time state.

Definition at line 165 of file field_dirichlet_vector.f90.

◆ field_dirichlet_vector_apply_vector()

subroutine field_dirichlet_vector::field_dirichlet_vector_apply_vector ( class(field_dirichlet_vector_t), intent(inout) this,
real(kind=rp), dimension(n), intent(inout) x,
real(kind=rp), dimension(n), intent(inout) y,
real(kind=rp), dimension(n), intent(inout) z,
integer, intent(in) n,
type(time_state_t), intent(in), optional time,
logical, intent(in), optional strong )
private
Parameters
xx-component of the field onto which to apply the values.
yy-component of the field onto which to apply the values.
zz-component of the field onto which to apply the values.
nSize of the x, y and z arrays.
timeThe current time state.

Definition at line 184 of file field_dirichlet_vector.f90.

Here is the call graph for this function:

◆ field_dirichlet_vector_apply_vector_dev()

subroutine field_dirichlet_vector::field_dirichlet_vector_apply_vector_dev ( class(field_dirichlet_vector_t), intent(inout), target this,
type(c_ptr), intent(inout) x_d,
type(c_ptr), intent(inout) y_d,
type(c_ptr), intent(inout) z_d,
type(time_state_t), intent(in), optional time,
logical, intent(in), optional strong,
type(c_ptr), intent(inout) strm )
private
Parameters
xx-component of the field onto which to apply the values.
yy-component of the field onto which to apply the values.
zz-component of the field onto which to apply the values.
timeThe current time state.
strmDevice stream

Definition at line 225 of file field_dirichlet_vector.f90.

Here is the call graph for this function:

◆ field_dirichlet_vector_finalize()

subroutine field_dirichlet_vector::field_dirichlet_vector_finalize ( class(field_dirichlet_vector_t), intent(inout), target this)
private

Definition at line 263 of file field_dirichlet_vector.f90.

◆ field_dirichlet_vector_free()

subroutine field_dirichlet_vector::field_dirichlet_vector_free ( class(field_dirichlet_vector_t), intent(inout), target this)
private

Definition at line 131 of file field_dirichlet_vector.f90.

◆ field_dirichlet_vector_init()

subroutine field_dirichlet_vector::field_dirichlet_vector_init ( class(field_dirichlet_vector_t), intent(inout), target this,
type(coef_t), intent(in), target coef,
type(json_file), intent(inout) json )
Parameters
[in]coefThe SEM coefficients.
[in,out]jsonThe JSON object configuring the boundary condition.

Definition at line 98 of file field_dirichlet_vector.f90.

◆ field_dirichlet_vector_init_from_components()

subroutine field_dirichlet_vector::field_dirichlet_vector_init_from_components ( class(field_dirichlet_vector_t), intent(inout), target this,
type(coef_t), intent(in) coef )
private
Parameters
[in]coefThe SEM coefficients.

Definition at line 109 of file field_dirichlet_vector.f90.