Treatment of surface markers for direct-forcing immersed boundary methods
An extended Lagrangian object that represents a marker placed at the centroid of a triangular element on the surface of an immersed body
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
real(kind=WP), | public | :: | SA |
Sufrace area |
|||
integer, | public | :: | c(3) |
nearest cell |
|||
real(kind=WP), | public | :: | f(3) |
marker forcing |
|||
integer(kind=leapI8), | public | :: | id |
Identifying number (inactive if <0) |
|||
real(kind=WP), | public | :: | n(3) |
normal at the marker |
|||
real(kind=WP), | public | :: | p(3) |
position |
|||
real(kind=WP), | public | :: | pold(3) |
Old position |
|||
integer, | public | :: | s |
A tag |
|||
integer, | public | :: | t |
Another tag |
|||
real(kind=WP), | public | :: | v(3) |
marker velocity |
|||
real(kind=WP), | public | :: | vold(3) |
Old velocity |
procedure, public :: Extrapolate => lagrangian_obj_Extrapolate | |
procedure, public :: Info => marker_obj_Info | |
procedure, public :: Interpolate => lagrangian_obj_Interpolate | |
procedure, public :: Locate => lagrangian_obj_Locate | |
procedure, public :: assign => marker_obj_assign | |
generic, public :: assignment(=) => assign |
A collection of IB markers
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public | :: | MPI_SIZE | = | 44 |
MPI size |
|
type(MPI_Datatype), | public | :: | MPI_TYPE |
MPI variable type |
|||
type(block_obj), | public, | pointer | :: | block | => | null() |
Associated block structure |
type(block_obj), | public | :: | cblock |
Collision block |
|||
integer, | public | :: | count | = | 0 |
Total count across all MPI ranks |
|
integer, | public | :: | count_ | = | 0 |
Local count for this rank |
|
integer, | public, | allocatable | :: | count_proc(:) |
|
||
procedure(kernel_1D), | public, | nopass, pointer | :: | g1ex | => | int_g1_triangle |
1D kernel used in extrapolations |
procedure(kernel_1D), | public, | nopass, pointer | :: | g1in | => | g1_triangle |
1D kernel used in interpolations |
real(kind=wp), | public | :: | l_filter |
Half filter width |
|||
type(monitor_set), | public, | pointer | :: | monitors | => | null() |
Monitors to print to stdout and files |
character(len=:), | public, | allocatable | :: | name |
Name of the Lagrangian set |
||
type(sllist_obj), | public, | allocatable | :: | neighbors(:,:,:) |
Singly linked list of neighbors |
||
integer, | public, | allocatable | :: | objincell(:,:,:) |
Number of objects in this list |
||
type(op_obj), | public, | pointer | :: | op | => | null() |
operators object |
logical, | public | :: | overwrite | = | .true. |
Switch to overwrite IO files |
|
class(lagrangian_obj), | public, | allocatable | :: | p(:) |
Array of Lagrangian_obj or any extended type |
||
type(parallel_obj), | public, | pointer | :: | parallel | => | null() |
Associated parallel structure |
type(parser_obj), | public, | pointer | :: | parser | => | null() |
Parser for input file |
character(len=str64), | public | :: | read_file |
file to read |
|||
class(lagrangian_obj), | public, | allocatable | :: | sample |
Sample used in allocation of polymorphic data |
||
integer, | public | :: | stib | = | 3 |
Stencil size for filtering |
|
type(timer_obj), | public, | pointer | :: | timer | => | null() |
Timer utility |
character(len=str64), | public | :: | write_file |
file to write |
Find the center of mass
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(marker_set), | intent(inout) | :: | this |
Set of ib markers |
Position of center of mass
Print information about this marker
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(marker_obj), | intent(inout) | :: | this |
A marker_obj object |
Assignment
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(marker_obj), | intent(inout) | :: | this |
A marker_obj object |
||
class(lagrangian_obj), | intent(in) | :: | val |
A marker_obj object |
Compute the solid volume fraction on the mesh
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(marker_set), | intent(inout) | :: | this |
Set of ib markers |
||
type(eulerian_obj_r), | intent(inout) | :: | VF |
Volume fraction |
||
character(len=*), | intent(in) | :: | solver |
Name of solver to be used |
||
real(kind=wp), | intent(in) | :: | MaxTol |
Maximum relative tolerance |
||
integer, | intent(in) | :: | MaxIt |
Maximum number of subiterations |
||
integer, | intent(in), | optional | :: | RelaxType |
Relaxation type |
|
real(kind=wp), | intent(out), | optional | :: | Rel |
Relative error at end of solve |
|
integer, | intent(out), | optional | :: | It |
Number of iterations performed |
|
real(kind=wp), | intent(out), | optional | :: | intRHS |
Magnitude of RHS |
Compute a filtered quantity on the eulerian grid
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(marker_set), | intent(inout) | :: | this |
Set of ib markers |
||
character(len=*), | intent(in) | :: | var |
Variable to compute |
||
type(eulerian_obj_r), | intent(inout) | :: | field |
Filtered quantity |
Compute the IB forcing
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(marker_set), | intent(inout) | :: | this |
Collection of Resolved Particles |
||
type(eulerian_obj_r), | intent(in) | :: | Um |
Velocity in 1-dir |
||
type(eulerian_obj_r), | intent(in) | :: | Vm |
Velocity in 2-dir |
||
type(eulerian_obj_r), | intent(in) | :: | Wm |
Velocity in 3-dir |
||
real(kind=wp), | intent(in) | :: | rhof |
Fluid density |
||
type(eulerian_obj_r), | intent(in) | :: | SA |
Surface area |
||
type(eulerian_obj_r), | intent(inout) | :: | ibF(3) |
IB forcing |
||
real(kind=wp), | intent(in) | :: | dt |
Timestep |
Load markers from a binary STL. This is a serial routine.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(marker_set), | intent(inout) | :: | this |
Set of ib markers |
||
character(len=*), | intent(in) | :: | STL_file |
Variable to compute |
Prepare marker_set for use with solvers
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(marker_set), | intent(inout) | :: | this |
Immersed boundary |
||
type(timer_obj), | intent(in), | target | :: | timer |
Timer utility |
|
type(parser_obj), | intent(in), | target | :: | parser |
Parser for input file |
|
type(op_obj), | intent(in), | target | :: | operators |
Operators object |
|
type(monitor_set), | intent(in), | target | :: | monitors |
Monitors to print to stdout and files |
Read marker data from file in parallel
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(marker_set), | intent(inout) | :: | this |
Set of ib markers |
||
integer, | intent(out) | :: | iter |
Iteration at write |
||
real(kind=wp), | intent(out) | :: | time |
Time at write |
Set up parameters used when creating the MPI derived type Create the MPI structure
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(marker_set), | intent(inout) | :: | this |
Set of ib markers |
||
type(MPI_Datatype), | intent(out), | allocatable | :: | types(:) |
Array of types |
|
integer, | intent(out), | allocatable | :: | lengths(:) |
Array of lengths |
|
integer(kind=MPI_ADDRESS_KIND), | intent(out), | allocatable | :: | displacement(:) |
Array of displacements |
Set the sample type used in allocation of polymorphic variables
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(marker_set), | intent(inout) | :: | this |
Set of ib markers |
Updates the Normals field
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(marker_set), | intent(inout) | :: | this |
Immersed boundary |
||
type(eulerian_obj_r), | intent(inout) | :: | ibN(3) |
Updates the Surface Density Function
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(marker_set), | intent(inout) | :: | this |
Immersed boundary |
||
type(eulerian_obj_r), | intent(inout) | :: | SA |
Write marker data to file in parallel
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(marker_set), | intent(inout) | :: | this |
Set of ib markers |
||
integer, | intent(in) | :: | iter |
Iteration at write |
||
real(kind=wp), | intent(in) | :: | time |
Time at write |