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.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(mesh_t), | intent(in) | :: | mesh |
The computational mesh. |
||
| type(flow_fields_t), | intent(inout) | :: | fields |
The fields container to initialize. |
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