initialize_fields Subroutine

public subroutine initialize_fields(mesh, fields)

Initializes flow fields and sets simulation initial conditions.

Currently implements a "Start from Rest" condition where all velocities and pressures are zero. IC overrides for restarts or analytical solutions will be implemented here.

Arguments

Type IntentOptional Attributes Name
type(mesh_t), intent(in) :: mesh

The computational mesh.

type(flow_fields_t), intent(inout) :: fields

The fields container to initialize.


Calls

proc~~initialize_fields~~CallsGraph proc~initialize_fields mod_fields::initialize_fields proc~allocate_fields mod_fields::allocate_fields proc~initialize_fields->proc~allocate_fields proc~finalize_fields mod_fields::finalize_fields proc~allocate_fields->proc~finalize_fields

Called by

proc~~initialize_fields~~CalledByGraph proc~initialize_fields mod_fields::initialize_fields program~lowmach_react_hex lowmach_react_hex program~lowmach_react_hex->proc~initialize_fields

Source Code

   subroutine initialize_fields(mesh, fields)
      type(mesh_t), intent(in) :: mesh
      type(flow_fields_t), intent(inout) :: fields

      ! Initial condition: Fluids starts from rest. 
      ! Boundary motion and body forces drive the flow from t=0.
      call allocate_fields(mesh, fields)

   end subroutine initialize_fields