diff options
| author | stainer_t <thomas.stainer@oecd-nea.org> | 2025-09-08 13:48:49 +0200 |
|---|---|---|
| committer | stainer_t <thomas.stainer@oecd-nea.org> | 2025-09-08 13:48:49 +0200 |
| commit | 7dfcc480ba1e19bd3232349fc733caef94034292 (patch) | |
| tree | 03ee104eb8846d5cc1a981d267687a729185d3f3 /Donjon/src/CREITP.f | |
Initial commit from Polytechnique Montreal
Diffstat (limited to 'Donjon/src/CREITP.f')
| -rw-r--r-- | Donjon/src/CREITP.f | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/Donjon/src/CREITP.f b/Donjon/src/CREITP.f new file mode 100644 index 0000000..95200e4 --- /dev/null +++ b/Donjon/src/CREITP.f @@ -0,0 +1,94 @@ +*DECK CREITP
+ SUBROUTINE CREITP(NGRP,NL,NBURN,TERP,TOTAL,ZNUG,SNUGF,CHI,
+ 1 OVERV,DIFFX,DIFFY,DIFFZ,H,SCAT,FLUX,ZTOTAL,ZZNUG,ZNUGF,
+ 2 ZCHI,ZOVERV,ZDIFFX,ZDIFFY,ZDIFFZ,ZH,ZSCAT,ZFLUX)
+*
+*-----------------------------------------------------------------------
+*
+*Purpose:
+* Interpolate burnup dependent table for a given burnup value or
+* time-average or derivatives.
+*
+*Copyright:
+* Copyright (C) 2007 Ecole Polytechnique de Montreal.
+*
+*Author(s):
+* A. Hebert
+*
+*Parameters: input
+* NGRP number of energy groups.
+* NL number of legendre orders (=1 for isotropic scattering).
+* NBURN number of tabulated burnup steps.
+* TERP interpolation factors.
+* ZTOTAL burnup dependent total macroscopic x-sections
+* ZZNUG burnup dependent nu*fission macroscopic x-sections.
+* ZNUGF burnup dependent fission macroscopic x-sections.
+* ZCHI burnup dependent fission spectrum.
+* ZOVERV burnup dependent reciprocal neutron velocities.
+* ZDIFFX burnup dependent x-directed diffusion coefficients.
+* ZDIFFY burnup dependent y-directed diffusion coefficients.
+* ZDIFFZ burnup dependent z-directed diffusion coefficients.
+* ZH burnup dependent h-factors.
+* ZSCAT burnup dependent scattering macroscopic x-sections.
+* ZFLUX burnup dependent integrated flux.
+*
+*Parameters: output
+* TOTAL total macroscopic x-sections.
+* ZNUG nu*fission macroscopic x-sections.
+* SNUGF fission macroscopic x-sections.
+* CHI fission spectrum.
+* OVERV reciprocal neutron velocities.
+* DIFFX x-directed diffusion coefficients.
+* DIFFY y-directed diffusion coefficients.
+* DIFFZ z-directed diffusion coefficients.
+* H h-factors (kappa*fission macroscopic x-sections).
+* SCAT scattering macroscopic x-sections.
+* FLUX integrated flux.
+*
+*-----------------------------------------------------------------------
+*
+*----
+* SUBROUTINE ARGUMENTS
+*----
+ INTEGER NGRP,NL,NBURN
+ REAL TERP(NBURN),TOTAL(NGRP),ZNUG(NGRP),CHI(NGRP),OVERV(NGRP),
+ 1 DIFFX(NGRP),DIFFY(NGRP),DIFFZ(NGRP),H(NGRP),SCAT(NL,NGRP,NGRP),
+ 2 SNUGF(NGRP),FLUX(NGRP),ZTOTAL(NBURN,NGRP),ZZNUG(NBURN,NGRP),
+ 3 ZCHI(NBURN,NGRP),ZOVERV(NBURN,NGRP),ZDIFFX(NBURN,NGRP),
+ 4 ZDIFFY(NBURN,NGRP),ZDIFFZ(NBURN,NGRP),ZH(NBURN,NGRP),
+ 5 ZSCAT(NBURN,NL,NGRP,NGRP),ZFLUX(NBURN,NGRP),ZNUGF(NBURN,NGRP)
+*----
+* PERFORM INTERPOLATION OR TIME AVERAGING
+*----
+ TOTAL(:NGRP)=0.0
+ ZNUG(:NGRP)=0.0
+ CHI(:NGRP)=0.0
+ OVERV(:NGRP)=0.0
+ DIFFX(:NGRP)=0.0
+ DIFFY(:NGRP)=0.0
+ DIFFZ(:NGRP)=0.0
+ H(:NGRP)=0.0
+ SCAT(:NL,:NGRP,:NGRP)=0.0
+ DO 100 IBURN=1,NBURN
+ WEIGHT=TERP(IBURN)
+ IF(WEIGHT.EQ.0.0) GO TO 100
+ DO 92 JGR=1,NGRP
+ TOTAL(JGR)=TOTAL(JGR)+WEIGHT*Z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