m_case_generic Module

An example case set up to run and sustain a freestream flow. This is a good place to start for adding a new flow case.



Interfaces

public interface case_generic_t

  • public function case_generic_init(backend, mesh, host_allocator) result(flow_case)

    Arguments

    Type IntentOptional Attributes Name
    class(base_backend_t), intent(inout), target :: backend
    type(mesh_t), intent(inout), target :: mesh
    type(allocator_t), intent(inout), target :: host_allocator

    Return Value type(case_generic_t)


Derived Types

type, public, extends(base_case_t) ::  case_generic_t

Components

Type Visibility Attributes Name Initial
class(solver_t), public, allocatable :: solver

Constructor

public function case_generic_init (backend, mesh, host_allocator)

Type-Bound Procedures

procedure, public :: case_init
procedure, public :: set_init
procedure, public :: run
procedure, public :: print_enstrophy
procedure, public :: print_div_max_mean
procedure, public :: boundary_conditions => boundary_conditions_generic
procedure, public :: initial_conditions => initial_conditions_generic
procedure, public :: forcings => forcings_generic
procedure, public :: postprocess => postprocess_generic

Functions

public function case_generic_init(backend, mesh, host_allocator) result(flow_case)

Arguments

Type IntentOptional Attributes Name
class(base_backend_t), intent(inout), target :: backend
type(mesh_t), intent(inout), target :: mesh
type(allocator_t), intent(inout), target :: host_allocator

Return Value type(case_generic_t)


Subroutines

public subroutine boundary_conditions_generic(self)

Arguments

Type IntentOptional Attributes Name
class(case_generic_t) :: self

public subroutine initial_conditions_generic(self)

Arguments

Type IntentOptional Attributes Name
class(case_generic_t) :: self

public subroutine postprocess_generic(self, i, t)

Arguments

Type IntentOptional Attributes Name
class(case_generic_t) :: self
integer, intent(in) :: i
real(kind=dp), intent(in) :: t

public subroutine forcings_generic(self, du, dv, dw)

Arguments

Type IntentOptional Attributes Name
class(case_generic_t) :: self
class(field_t), intent(inout) :: du
class(field_t), intent(inout) :: dv
class(field_t), intent(inout) :: dw