Calculate gradients of any primitive variables and temperature
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
real, | private, | dimension(6) | :: | T | Temperaure array for six neighbours |
||
real, | private | :: | cell_T | Temperature at cell center |
|||
integer, | private | :: | i | integer for DO loop |
|||
integer, | private | :: | j | integer for DO loop |
|||
integer, | private | :: | k | integer for DO loop |
Call to all the required gradients and apply boundary condition for ghost cell gradients
Compute gradient of any input scalar
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(out), | dimension( 0:imx , 0:jmx , 0:kmx ) | :: | grad | Output variable storing the graident of var |
|
real, | intent(in), | dimension(-2:imx+2,-2:jmx+2,-2:kmx+2) | :: | var | Input variable of which graident is required |
|
character(len=*), | intent(in) | :: | dir | Direction with respect to which gradients are calculated |
Calculate gradient of temperature
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(out), | dimension( 0:imx , 0:jmx , 0:kmx ) | :: | grad | Output gradient of termperature |
|
character(len=*), | intent(in) | :: | dir | Direction with respect to which gradients are calculated |