PDRsetFields.H File Reference

Preparation of fields for PDRFoam. More...

Include dependency graph for PDRsetFields.H:

Go to the source code of this file.

Macros

#define floatSMALL   1.e-10
 
#define DEFAULT_K   0.00015
 
#define DEFAULT_EPS   1e-5
 
#define DEFAULT_T   300
 
#define DEFAULT_P   100000
 
#define DEFAULT_SU   0.5
 
#define DEFAULT_LOBS   0.1
 
#define DEFAULT_EP   0.01
 
#define K_WALL_FN   "kqRWallFunction"
 
#define EPS_WALL_FN   "epsilonWallFunction"
 
#define ALPHAT_WALL   "nutkWallFunction"
 
#define MUT_WALL_FN   "mutkWallFunction"
 
#define NUT_WALL_FN   "nutkWallFunction"
 
#define K_WALL_FN_LEGACY   "compressible::kqRWallFunction"
 
#define EPS_WALL_FN_LEGACY   "compressible::epsilonWallFunction"
 
#define ALPHAT_WALL_FN_LEGACY   "alphatWallFunction;\n\t\tPrt\t0.85"
 
#define MIN_AB_FOR_SIZE   0.002
 
#define MAX_VB_FOR_SIZE   0.9
 
#define COUNT_FOR_SIZE   0.1
 
#define MIN_COUNT_FOR_SIZE   0.05
 

Functions

scalar block_overlap (DynamicList< PDRobstacle > &blocks, const labelRange &range, const scalar multiplier=1.0)
 Calculate block/block overlaps. More...
 
scalar block_cylinder_overlap (DynamicList< PDRobstacle > &blocks, const labelRange &range, const UList< PDRobstacle > &cylinders)
 Calculate block/cylinder overlaps. More...
 

Detailed Description

Preparation of fields for PDRFoam.

Original source file PDRsetFields.H

Definition in file PDRsetFields.H.

Macro Definition Documentation

◆ floatSMALL

#define floatSMALL   1.e-10

Definition at line 54 of file PDRsetFields.H.

◆ DEFAULT_K

#define DEFAULT_K   0.00015

Definition at line 59 of file PDRsetFields.H.

◆ DEFAULT_EPS

#define DEFAULT_EPS   1e-5

Definition at line 60 of file PDRsetFields.H.

◆ DEFAULT_T

#define DEFAULT_T   300

Definition at line 61 of file PDRsetFields.H.

◆ DEFAULT_P

#define DEFAULT_P   100000

Definition at line 62 of file PDRsetFields.H.

◆ DEFAULT_SU

#define DEFAULT_SU   0.5

Definition at line 63 of file PDRsetFields.H.

◆ DEFAULT_LOBS

#define DEFAULT_LOBS   0.1

Definition at line 64 of file PDRsetFields.H.

◆ DEFAULT_EP

#define DEFAULT_EP   0.01

Definition at line 66 of file PDRsetFields.H.

◆ K_WALL_FN

#define K_WALL_FN   "kqRWallFunction"

Definition at line 69 of file PDRsetFields.H.

◆ EPS_WALL_FN

#define EPS_WALL_FN   "epsilonWallFunction"

Definition at line 70 of file PDRsetFields.H.

◆ ALPHAT_WALL

#define ALPHAT_WALL   "nutkWallFunction"

Definition at line 71 of file PDRsetFields.H.

◆ MUT_WALL_FN

#define MUT_WALL_FN   "mutkWallFunction"

Definition at line 72 of file PDRsetFields.H.

◆ NUT_WALL_FN

#define NUT_WALL_FN   "nutkWallFunction"

Definition at line 73 of file PDRsetFields.H.

◆ K_WALL_FN_LEGACY

#define K_WALL_FN_LEGACY   "compressible::kqRWallFunction"

Definition at line 75 of file PDRsetFields.H.

◆ EPS_WALL_FN_LEGACY

#define EPS_WALL_FN_LEGACY   "compressible::epsilonWallFunction"

Definition at line 76 of file PDRsetFields.H.

◆ ALPHAT_WALL_FN_LEGACY

#define ALPHAT_WALL_FN_LEGACY   "alphatWallFunction;\n\t\tPrt\t0.85"

Definition at line 77 of file PDRsetFields.H.

◆ MIN_AB_FOR_SIZE

#define MIN_AB_FOR_SIZE   0.002

Definition at line 82 of file PDRsetFields.H.

◆ MAX_VB_FOR_SIZE

#define MAX_VB_FOR_SIZE   0.9

Definition at line 83 of file PDRsetFields.H.

◆ COUNT_FOR_SIZE

#define COUNT_FOR_SIZE   0.1

Definition at line 84 of file PDRsetFields.H.

◆ MIN_COUNT_FOR_SIZE

#define MIN_COUNT_FOR_SIZE   0.05

Definition at line 85 of file PDRsetFields.H.

Function Documentation

◆ block_overlap()

scalar block_overlap ( DynamicList< PDRobstacle > &  blocks,
const labelRange range,
const scalar  multiplier = 1.0 
)

Calculate block/block overlaps.

Binary self-intersections are to be checked for blocks. Resulting negative blocks are appended to blocks. These new blocks have the opposite sign from input blocks, and blockage multiplied by multiplier.

If the number of newly generated blocks is required, check the size of blocks on output vs input to see how many have been added.

Parameters
[in,out]blocks
[in]range- the range within blocks to be examined
Returns
overlap volume

◆ block_cylinder_overlap()

scalar block_cylinder_overlap ( DynamicList< PDRobstacle > &  blocks,
const labelRange range,
const UList< PDRobstacle > &  cylinders 
)

Calculate block/cylinder overlaps.

Binary intersections are to be checked for blocks and cylinders. Resulting negative blocks are appended to blocks. These new blocks have the opposite sign from input blocks, and blockage multiplied by multiplier.

If the number of newly generated blocks is required, check the size of blocks on output vs input to see how many have been added.

Parameters
[in,out]arrp
[in,out]blocks
[in]range- the range within blocks to be examined
[in]cylinders- the cylinders to be examined
Returns
overlap volume