Neko 0.9.99
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
derivative::derivative_t Type Referenceabstract

A simulation component that computes a derivative of a field. Wraps the duxyz operator. More...

Inheritance diagram for derivative::derivative_t:
Collaboration diagram for derivative::derivative_t:

Public Member Functions

procedure, pass(thisinit (this, json, case)
 Constructor from json, wrapping the actual constructor.
 
procedure, pass(thisinit_from_attributes (this, fieldname, direction)
 Actual constructor.
 
procedure, pass(thisfree (this)
 Destructor.
 
procedure, pass(thiscompute_ (this, t, tstep)
 Compute the derivative field.
 
procedure, pass(thisinit_base (this, json, case)
 Constructor for the simulation_component_t (base) class.
 
procedure, pass(thisfree_base (this)
 Destructor for the simulation_component_t (base) class.
 
procedure, pass(thisrestart (this, t)
 Wrapper for calling set_counter for the time based controllers. Serves as the public interface.
 
procedure, pass(thispreprocess (this, t, tstep)
 Wrapper for calling preprocess_ based on the preprocess_controller. Serves as the public interface.
 
procedure, pass(thiscompute (this, t, tstep)
 Wrapper for calling compute_ based on the compute_controller. Serves as the public interface.
 
procedure(simulation_component_init), deferred, pass init (this, json, case)
 The common constructor using a JSON dictionary.
 
procedure(simulation_component_free), deferred, pass free (this)
 Destructor.
 
procedure, pass(thispreprocess_ (this, t, tstep)
 The preprocessing function to be executed during the run.
 
procedure, pass(thiscompute_ (this, t, tstep)
 The main function to be executed during the run.
 
procedure, pass(thisrestart_ (this, t)
 The restart function to be called upon restarting simulation.
 

Public Attributes

type(field_t), pointer u
 The scalar field to compute the weak gradient of.
 
type(field_t), pointer du
 The derivative field.
 
real(kind=rp), dimension(:,:,:,:), pointer dr
 Derivatives of r with respect to the direction of derivation.
 
real(kind=rp), dimension(:,:,:,:), pointer ds
 Derivatives of s with respect to the direction of derivation.
 
real(kind=rp), dimension(:,:,:,:), pointer dt
 Derivatives of t with respect to the direction of derivation.
 
type(field_writer_twriter
 Output writer.
 
type(case_t), pointer case
 Pointer to the simulation case.
 
type(time_based_controller_t) preprocess_controller
 Controller for when to run preprocess.
 
type(time_based_controller_t) compute_controller
 Controller for when to run compute.
 
type(time_based_controller_t) output_controller
 Controller for when to do output.
 
integer order
 The execution order, lowest excutes first.
 

Detailed Description

Definition at line 53 of file derivative.f90.

Member Function/Subroutine Documentation

◆ compute()

procedure, pass(this) simulation_component::simulation_component_t::compute ( class(simulation_component_t), intent(inout this,
real(kind=rp), intent(in t,
integer, intent(in tstep 
)
inherited
Parameters
tThe time value.
tstepThe current time-step

Definition at line 73 of file simulation_component.f90.

◆ compute_() [1/2]

procedure, pass(this) derivative::derivative_t::compute_ ( class(derivative_t), intent(inout this,
real(kind=rp), intent(in t,
integer, intent(in tstep 
)
Parameters
tThe time value.
tstepThe current time-step

Definition at line 76 of file derivative.f90.

◆ compute_() [2/2]

procedure, pass(this) simulation_component::simulation_component_t::compute_ ( class(simulation_component_t), intent(inout this,
real(kind=rp), intent(in t,
integer, intent(in tstep 
)
inherited
Parameters
tThe time value.
tstepThe current time-step

Definition at line 81 of file simulation_component.f90.

◆ free() [1/2]

procedure, pass(this) derivative::derivative_t::free ( class(derivative_t), intent(inout this)

Definition at line 74 of file derivative.f90.

◆ free() [2/2]

procedure(simulation_component_free), deferred, pass simulation_component::simulation_component_t::free ( class(simulation_component_t), intent(inout this)
pure virtualinherited

Definition at line 77 of file simulation_component.f90.

◆ free_base()

procedure, pass(this) simulation_component::simulation_component_t::free_base ( class(simulation_component_t), intent(inout this)
inherited

Definition at line 63 of file simulation_component.f90.

◆ init() [1/2]

procedure, pass(this) derivative::derivative_t::init ( class(derivative_t), intent(inout this,
type(json_file), intent(inout json,
class(case_t), intent(inout), target  case 
)

Definition at line 69 of file derivative.f90.

◆ init() [2/2]

procedure(simulation_component_init), deferred, pass simulation_component::simulation_component_t::init ( class(simulation_component_t), intent(inout this,
type(json_file), intent(inout json,
class(case_t), intent(inout), target  case 
)
pure virtualinherited

Definition at line 75 of file simulation_component.f90.

◆ init_base()

procedure, pass(this) simulation_component::simulation_component_t::init_base ( class(simulation_component_t), intent(inout this,
type(json_file), intent(inout json,
class(case_t), intent(inout), target  case 
)
inherited
Parameters
objectThe object to be created and initialized.
jsonJSON object initializing the simulation component.
caseThe simulation case. Constructor for the simulation_component_t (base) class.

Definition at line 61 of file simulation_component.f90.

◆ init_from_attributes()

procedure, pass(this) derivative::derivative_t::init_from_attributes ( class(derivative_t), intent(inout this,
character(len=*)  fieldname,
character(len=*)  direction 
)

Definition at line 71 of file derivative.f90.

◆ preprocess()

procedure, pass(this) simulation_component::simulation_component_t::preprocess ( class(simulation_component_t), intent(inout this,
real(kind=rp), intent(in t,
integer, intent(in tstep 
)
inherited
Parameters
tThe time value.
tstepThe current time-step

Definition at line 69 of file simulation_component.f90.

◆ preprocess_()

procedure, pass(this) simulation_component::simulation_component_t::preprocess_ ( class(simulation_component_t), intent(inout this,
real(kind=rp), intent(in t,
integer, intent(in tstep 
)
inherited
Parameters
tThe time value.
tstepThe current time-step

Definition at line 79 of file simulation_component.f90.

◆ restart()

procedure, pass(this) simulation_component::simulation_component_t::restart ( class(simulation_component_t), intent(inout this,
real(kind=rp), intent(in t 
)
inherited
Parameters
tThe time value.

Definition at line 66 of file simulation_component.f90.

◆ restart_()

procedure, pass(this) simulation_component::simulation_component_t::restart_ ( class(simulation_component_t), intent(inout this,
real(kind=rp), intent(in t 
)
inherited
Parameters
tThe time value.

Definition at line 83 of file simulation_component.f90.

Member Data Documentation

◆ case

type(case_t), pointer simulation_component::simulation_component_t::case
inherited

Definition at line 50 of file simulation_component.f90.

◆ compute_controller

type(time_based_controller_t) simulation_component::simulation_component_t::compute_controller
inherited

Definition at line 54 of file simulation_component.f90.

◆ dr

real(kind=rp), dimension(:,:,:,:), pointer derivative::derivative_t::dr

Definition at line 59 of file derivative.f90.

◆ ds

real(kind=rp), dimension(:,:,:,:), pointer derivative::derivative_t::ds

Definition at line 61 of file derivative.f90.

◆ dt

real(kind=rp), dimension(:,:,:,:), pointer derivative::derivative_t::dt

Definition at line 63 of file derivative.f90.

◆ du

type(field_t), pointer derivative::derivative_t::du

Definition at line 57 of file derivative.f90.

◆ order

integer simulation_component::simulation_component_t::order
inherited

Definition at line 58 of file simulation_component.f90.

◆ output_controller

type(time_based_controller_t) simulation_component::simulation_component_t::output_controller
inherited

Definition at line 56 of file simulation_component.f90.

◆ preprocess_controller

type(time_based_controller_t) simulation_component::simulation_component_t::preprocess_controller
inherited

Definition at line 52 of file simulation_component.f90.

◆ u

type(field_t), pointer derivative::derivative_t::u

Definition at line 55 of file derivative.f90.

◆ writer

type(field_writer_t) derivative::derivative_t::writer

Definition at line 65 of file derivative.f90.


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