This module gathers the various predefined initial conditions
This type contains datas to define gauss pulse
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=rk), | private | :: | center(3) | Gauss pulse center |
|||
| real(kind=rk), | private | :: | halfwidth | half width of gauss pulse from center |
|||
| real(kind=rk), | private | :: | amplitude | height or magnitude of gauss pulse |
|||
| real(kind=rk), | private | :: | background | reference value. In case of density, it is reference density |
|||
| real(kind=rk), | private | :: | dx | spatial step size |
|||
| real(kind=rk), | private | :: | dt | time step size |
This type contains datas to define 2d co-rotating vortex pair
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=rk), | private | :: | center(3) | spinning center |
|||
| real(kind=rk), | private | :: | radius_rot | distance of vortex centers / 2 |
|||
| real(kind=rk), | private | :: | radius_C | core radius = radius_rot/3 |
|||
| real(kind=rk), | private | :: | circulation | circulation of vortices |
|||
| real(kind=rk), | private | :: | p0 | reference pressure |
|||
| real(kind=rk), | private | :: | rho0 | reference density |
|||
| real(kind=rk), | private | :: | kappa | adiabatic exponent |
|||
| real(kind=rk), | private | :: | cs | speed of sound |
|||
| real(kind=rk), | private | :: | Ma | rotating Mach number |
|||
| real(kind=rk), | private | :: | t | position in time |
|||
| type(cutoff_type), | private | :: | cutoff | ||||
| logical, | private | :: | pressGaussModel | Approximation of the pressure distribution inside the core radius with a gaussian pulse model |
|||
| logical, | private | :: | rankineModel | vortex core velocity model: rankine |
|||
| real(kind=rk), | private | :: | matchFactor | to match the gauss model to the pressure distribution Set to 2.2 |
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=rk), | private | :: | x0(3) | Origin points |
|||
| real(kind=rk), | private | :: | u0(2) | Ref velocity (X and Y) |
|||
| real(kind=rk), | private | :: | p0 | Ref pressure |
|||
| real(kind=rk), | private | :: | tD | Rate of decay coefficient |
|||
| real(kind=rk), | private | :: | Re | Reynolds number |
cutoff radius definition
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| logical, | private | :: | active | cutoff is active? |
|||
| real(kind=rk), | private | :: | length | cutoff values |
|||
| real(kind=rk), | private | :: | r_min | cutoff start |
|||
| real(kind=rk), | private | :: | r_max | cutoff end |
|||
| logical, | private | :: | linear | linear behavior |
|||
| logical, | private | :: | quadratic | quadratic behavior |
This function defines gauss pulse
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(ic_gausspulse_type), | intent(in) | :: | me | global gauss pulse data |
||
| real(kind=rk), | intent(in) | :: | coord(n,3) | coordinate of an element |
||
| integer, | intent(in) | :: | n | number of return values |
return value which is sent to state variable
This function defines the y-velocity component of the
spinning (= co-rotating) vortex pair
Source: complex velocity potential of both vortices
complex coordinates:
z = x+i*y
Gamma ... circulation
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(ic_2dcrvp_type), | intent(in) | :: | me | global gauss pulse data |
||
| real(kind=rk), | intent(in) | :: | coord(n,3) | coordinate of an element |
||
| integer, | intent(in) | :: | n | number of return values |
return value which is sent to state variable
This function defines the y-velocity component of the
spinning (= co-rotating) vortex pair
Source: complex velocity potential of both vortices
complex coordinates:
z = x+i*y
Gamma ... circulation
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(ic_2dcrvp_type), | intent(in) | :: | me | global gauss pulse data |
||
| real(kind=rk), | intent(in) | :: | coord(n,3) | coordinate of an element |
||
| integer, | intent(in) | :: | n | number of return values |
return value which is sent to state variable
This function defines the density of the spinning (= co-rotating) vortex pair See the matlab file where the pressure is plot in the ase-testcases/ repo in musubi/crvp/matlab/crvp_velPress_plot.m
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(ic_2dcrvp_type), | intent(in) | :: | me | global gauss pulse data |
||
| real(kind=rk), | intent(in) | :: | coord(n,3) | coordinate of an element |
||
| integer, | intent(in) | :: | n | number of return values |
return value which is sent to state variable
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(ic_tgv_type), | intent(in) | :: | me | global gauss pulse data |
||
| real(kind=rk), | intent(in) | :: | coord(n,3) | coordinate of an element |
||
| integer, | intent(in) | :: | n | number of return values |
return value which is sent to state variable
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(ic_tgv_type), | intent(in) | :: | me | global gauss pulse data |
||
| real(kind=rk), | intent(in) | :: | coord(n,3) | coordinate of an element |
||
| integer, | intent(in) | :: | n | number of return values |
return value which is sent to state variable
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(ic_tgv_type), | intent(in) | :: | me | global gauss pulse data |
||
| real(kind=rk), | intent(in) | :: | coord(n,3) | coordinate of an element |
||
| integer, | intent(in) | :: | n | number of return values |
return value which is sent to state variable
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(ic_tgv_type), | intent(in) | :: | me | global gauss pulse data |
||
| real(kind=rk), | intent(in) | :: | coord(n,3) | coordinate of an element |
||
| integer, | intent(in) | :: | n | number of return values |
return value which is sent to state variable
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(ic_tgv_type), | intent(in) | :: | me | global gauss pulse data |
||
| real(kind=rk), | intent(in) | :: | coord(n,3) | coordinate of an element |
||
| integer, | intent(in) | :: | n | number of return values |
return value which is sent to state variable
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(ic_tgv_type), | intent(in) | :: | me | global gauss pulse data |
||
| real(kind=rk), | intent(in) | :: | coord(n,3) | coordinate of an element |
||
| integer, | intent(in) | :: | n | number of return values |
return value which is sent to state variable
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(ic_tgv_type), | intent(in) | :: | me | global gauss pulse data |
||
| real(kind=rk), | intent(in) | :: | coord(n,3) | coordinate of an element |
||
| integer, | intent(in) | :: | n | number of return values |
return value which is sent to state variable
return the cutoff multiplication factor This routine returns the cutoff factor for a circle of size r_min. Outside r_min, the quantity is
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(cutoff_type), | intent(in) | :: | me | global gauss pulse data |
||
| real(kind=rk), | intent(in) | :: | radius | coordinate of an element |
return value which is sent to state variable
load gauss pulse variables to set initial condition
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(flu_State) | :: | conf | lua state type |
|||
| integer, | intent(in) | :: | thandle | aotus parent handle |
||
| type(ic_gausspulse_type), | intent(out) | :: | me | Global gauss pulse data type |
load crvp variables to set initial condition
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(flu_State) | :: | conf | lua state type |
|||
| integer, | intent(in) | :: | thandle | aotus parent handle |
||
| type(ic_2dcrvp_type), | intent(out) | :: | me | Global gauss pulse data type |
load gauss pulse variables to set initial condition
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(flu_State) | :: | conf | lua state type |
|||
| integer, | intent(in) | :: | thandle | aotus parent handle |
||
| type(ic_tgv_type), | intent(out) | :: | me | TGV data type |