Skip to content

Commit

Permalink
Merge branch 'fix.wallTempGradient' into 'master.dev'
Browse files Browse the repository at this point in the history
Changed the wall temperature outside of the bounding box to the second temperature

See merge request piclas/piclas!822
  • Loading branch information
pnizenkov committed Jun 21, 2023
2 parents 433cc92 + 6716b22 commit 319feea
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ as well as an optional direction to which the gradient shall be limited (default

In the default case of the `TempGradDir = 0`, the temperature will be interpolated between the start and end vector, where the
start vector corresponds to the first wall temperature `WallTemp`, and the end vector to the second wall temperature `WallTemp2`.
Position values (which are projected onto the temperature gradient vector) beyond the gradient vector utilize the first (Start) and second temperature (End) as the constant wall temperature, respectively. In the special case of `TempGradDir = 1/2/3`, the temperature gradient will
only be applied along the chosen the direction. As oppposed to the default case, the positions of the surfaces are not projected
onto the gradient vector before checking wether they are inside the box spanned by `TempGradStart` and `TempGradEnd`. Outside of
the defined box, the temperature corresponds to `WallTemp`. The applied surface temperature is output in the `DSMCSurfState` as
`Wall_Temperature` for verification.
Position values (which are projected onto the temperature gradient vector) beyond the gradient vector utilize the first (Start)
and second temperature (End) as the constant wall temperature, respectively. In the special case of `TempGradDir = 1/2/3`, the
temperature gradient will only be applied along the chosen the direction. As oppposed to the default case, the positions of the
surfaces are not projected onto the gradient vector before checking wether they are inside the box spanned by `TempGradStart` and
`TempGradEnd`. The applied surface temperature is output in the `DSMCSurfState` as `Wall_Temperature` for verification.

### Radiative equilibrium

Expand Down
Binary file not shown.
4 changes: 2 additions & 2 deletions src/particles/surfacemodel/surfacemodel_tools.f90
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,8 @@ PPURE REAL FUNCTION CalcWallTempGradient(PointVec,locBCID)
CASE(1,2,3)
! Simply using the actual position as bounds
Bounds(1:3) = PointVec(1:3)
! Wall temperature is set to the start value as the gradient can be oriented perpendicular
WallTemp2 = PB%WallTemp(locBCID)
! Wall temperature is set to the end value
WallTemp2 = PB%WallTemp2(locBCID)
END SELECT

IF(MINVAL(Bounds(1:3)-PB%TempGradStart(1:3,locBCID)).LT.-EpsMach) THEN
Expand Down

0 comments on commit 319feea

Please sign in to comment.