|
|
发表于 2003-11-22 15:03:25
|
显示全部楼层
kiva的入口条件设定
Applies to:
KIVA3-V (032497)
Description:
Enables multiple inlet conditions through the use of regions.
Each region has the same inlet condition. So in order to get
multiple inlets it is necessary to define new regions.
There are six variables that has to be modified. They are:
rgamin, spdin0, velin, roin0, pcc and pcceff.
The routines involved are: setup, bcpexd, bcresp, bcpgrad, bcccfl, ccflux, setupbc, piston
and, of course, comkiva.i.
The patch_comkiva_1.1-1.2 applies on comkiva.i patched by
patch_comkiva-1.1 obtained from Detailed Chemistry
HOWTO:
Download the gzipped tarfile: patches_1.0-1.2.tar.gz with all the necessary patches and files.
COMPOSITION
apply_all_1.0-1.2
apply_all_1.1.1.2
chem.dat
iprep.mult
itape5.mult_1.1-1.2
patch_bcccfl_1.0-1.2
patch_bcpexd_1.0-1.2
patch_bcpgrad_1.0-1.2
patch_bcresp_1.0-1.2
patch_ccflux_1.0-1.2
patch_piston_1.0-1.2
patch_setup_1.0-1.2
patch_setupbc_1.0-1.2
patch_comkiva_1.0-1.2
patch_comkiva_1.1-1.2
Remember to create a backup-copy before you start.
unzip and untar the 'tar.gz'-file in the source directory.
Apply the patches...
make kiva3v and keep your fingers crossed. Run kiva3v...
Comments:
The supplied itape5 file has three major differences compared to the original itape5.
They are related with the velin, nregin0 and pcc identifiers.
velin 0.00000e+0 0.0000e+0 0.0000e+0 0.0000e+0
nregin0 1 2 3 4
numpcc 1
0.0 1.00e+6 1.00e+6 1.00e+6 1.00e+6
As you probably have guessed the velocities for the different inlets are set
by velin and the inflow/initial conditions for the different regions
are set by the nregin0 identifier.
Since the inlet temperature is implicitly set by the pressure at the inlet,
which is the first value of the pcc-array. This had to be modified too.
Therefore the statement in subroutine setup
if(bndpres.eq.1.0) then
read ( 5,9340) id(1),numpcc
write(12,9340) ' numpcc ',numpcc
was changed to
if(openbnd.eq.1.0) then
read ( 5,9340) id(1),numpcc
write(12,9340) ' numpcc ',numpcc
So the pcc arrays are read even if there are no 'pure' pressure boundaries.
Also... The supplied itape5 file has no chemistry in it.
|
|