Skip to content

Commit

Permalink
FDS Source : Remove computation of CP when CONSTANT_SPECIFIC_HEAT_RAT…
Browse files Browse the repository at this point in the history
…IO=T, use CPOPR.
  • Loading branch information
marcosvanella committed Sep 12, 2018
1 parent a912874 commit 8a36f08
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions Source/divg.f90
Original file line number Diff line number Diff line change
Expand Up @@ -427,21 +427,15 @@ SUBROUTINE DIVERGENCE_PART_1(T,DT,NM)
ENDDO
ENDDO
ENDDO
IF (CONSTANT_SPECIFIC_HEAT_RATIO) THEN ! We have to compute CP, not done previously for constant CP ratio.
CP => WORK5
DO K=1,KBAR
DO J=1,JBAR
DO I=1,IBAR
IF (SOLID(CELL_INDEX(I,J,K))) CYCLE
ZZ_GET(1:N_TRACKED_SPECIES) = ZZP(I,J,K,1:N_TRACKED_SPECIES)
CALL GET_SPECIFIC_HEAT(ZZ_GET,CP(I,J,K),TMP(I,J,K))
ENDDO
ENDDO
ENDDO
ENDIF
DEALLOCATE(ZZ_GET)

IF (SIM_MODE==LES_MODE) KP = KP + MAX(0._EB,(MU-MU_DNS))*CP*RPR
IF (SIM_MODE==LES_MODE) THEN
IF(.NOT.CONSTANT_SPECIFIC_HEAT_RATIO) THEN
KP = KP + MAX(0._EB,(MU-MU_DNS))*CP*RPR
ELSE
KP = KP + MAX(0._EB,(MU-MU_DNS))*CPOPR
ENDIF
ENDIF

BOUNDARY_LOOP: DO IW=1,N_EXTERNAL_WALL_CELLS
WC=>WALL(IW)
Expand Down

0 comments on commit 8a36f08

Please sign in to comment.