tutorials: Replaced semiImplicitSource with more specific fvModels
This commit is contained in:
@ -29,21 +29,10 @@ fixedTemperature
|
|||||||
/*
|
/*
|
||||||
fixedPower
|
fixedPower
|
||||||
{
|
{
|
||||||
type semiImplicitSource;
|
type heatSource;
|
||||||
selectionMode all;
|
selectionMode all;
|
||||||
|
|
||||||
volumeMode absolute;
|
Q 100; // Set power (W)
|
||||||
|
|
||||||
power 100; // Set power (W)
|
|
||||||
|
|
||||||
sources
|
|
||||||
{
|
|
||||||
e
|
|
||||||
{
|
|
||||||
explicit $power;
|
|
||||||
implicit 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@ -15,27 +15,67 @@ FoamFile
|
|||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
massSource
|
airSource
|
||||||
{
|
{
|
||||||
type semiImplicitSource;
|
type massSource;
|
||||||
|
|
||||||
selectionMode all;
|
selectionMode all;
|
||||||
volumeMode specific;
|
|
||||||
|
|
||||||
sources
|
massFlowRate 24.535;
|
||||||
|
|
||||||
|
phase air;
|
||||||
|
rho thermo:rho.air;
|
||||||
|
|
||||||
|
fieldValues
|
||||||
{
|
{
|
||||||
thermo:rho.air
|
f0.air 0;
|
||||||
{
|
f1.air 0;
|
||||||
explicit 0.024535; // kg/s/m^3
|
f2.air 0;
|
||||||
implicit 0;
|
f3.air 0;
|
||||||
}
|
f4.air 0;
|
||||||
thermo:rho.water
|
f5.air 0;
|
||||||
{
|
f6.air 0;
|
||||||
explicit -24.535; // kg/s/m^3
|
f7.air 0;
|
||||||
implicit 0;
|
f8.air 0;
|
||||||
}
|
f9.air 0;
|
||||||
|
f10.air 0;
|
||||||
|
f11.air 0;
|
||||||
|
f12.air 0;
|
||||||
|
f13.air 0;
|
||||||
|
f14.air 0;
|
||||||
|
f15.air 0;
|
||||||
|
f16.air 0;
|
||||||
|
f17.air 0;
|
||||||
|
f18.air 0;
|
||||||
|
f19.air 0;
|
||||||
|
f20.air 0;
|
||||||
|
f21.air 0;
|
||||||
|
f22.air 0;
|
||||||
|
f23.air 0;
|
||||||
|
f24.air 0;
|
||||||
|
f25.air 0;
|
||||||
|
f26.air 0;
|
||||||
|
f27.air 0;
|
||||||
|
f28.air 0;
|
||||||
|
f29.air 0;
|
||||||
|
f30.air 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
waterSink
|
||||||
|
{
|
||||||
|
type massSource;
|
||||||
|
|
||||||
|
selectionMode all;
|
||||||
|
|
||||||
|
massFlowRate -24535;
|
||||||
|
|
||||||
|
phase water;
|
||||||
|
rho thermo:rho.water;
|
||||||
|
|
||||||
|
fieldValues
|
||||||
|
{}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -15,27 +15,61 @@ FoamFile
|
|||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
massSource
|
airSource
|
||||||
{
|
{
|
||||||
type semiImplicitSource;
|
type massSource;
|
||||||
|
|
||||||
selectionMode all;
|
selectionMode all;
|
||||||
volumeMode specific;
|
|
||||||
|
|
||||||
sources
|
massFlowRate -25.8575;
|
||||||
|
|
||||||
|
phase air;
|
||||||
|
rho thermo:rho.air;
|
||||||
|
|
||||||
|
fieldValues
|
||||||
{
|
{
|
||||||
thermo:rho.air
|
f0.air 0;
|
||||||
{
|
f1.air 0;
|
||||||
explicit -0.0258575; // kg/s/m^3
|
f2.air 0;
|
||||||
implicit 0;
|
f3.air 0;
|
||||||
}
|
f4.air 0;
|
||||||
thermo:rho.water
|
f5.air 0;
|
||||||
{
|
f6.air 0;
|
||||||
explicit 25.8575; // kg/s/m^3
|
f7.air 0;
|
||||||
implicit 0;
|
f8.air 0;
|
||||||
}
|
f9.air 0;
|
||||||
|
f10.air 0;
|
||||||
|
f11.air 0;
|
||||||
|
f12.air 0;
|
||||||
|
f13.air 0;
|
||||||
|
f14.air 0;
|
||||||
|
f15.air 0;
|
||||||
|
f16.air 0;
|
||||||
|
f17.air 0;
|
||||||
|
f18.air 0;
|
||||||
|
f19.air 0;
|
||||||
|
f20.air 0;
|
||||||
|
f21.air 0;
|
||||||
|
f22.air 0;
|
||||||
|
f23.air 0;
|
||||||
|
f24.air 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
waterSink
|
||||||
|
{
|
||||||
|
type massSource;
|
||||||
|
|
||||||
|
selectionMode all;
|
||||||
|
|
||||||
|
massFlowRate 25857.5;
|
||||||
|
|
||||||
|
phase water;
|
||||||
|
rho thermo:rho.water;
|
||||||
|
|
||||||
|
fieldValues
|
||||||
|
{}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -16,19 +16,11 @@ FoamFile
|
|||||||
|
|
||||||
cylinderHeat
|
cylinderHeat
|
||||||
{
|
{
|
||||||
type semiImplicitSource;
|
type heatSource;
|
||||||
selectionMode all;
|
|
||||||
volumeMode specific;
|
|
||||||
power 5e7;
|
|
||||||
|
|
||||||
sources
|
selectionMode all;
|
||||||
{
|
|
||||||
e
|
q 5e7;
|
||||||
{
|
|
||||||
explicit $power;
|
|
||||||
implicit 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//************************************************************************** //
|
//************************************************************************** //
|
||||||
|
|||||||
@ -14,23 +14,27 @@ FoamFile
|
|||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
// fixedPower
|
/*
|
||||||
// {
|
fixedTemperature
|
||||||
// type semiImplicitSource;
|
{
|
||||||
// selectionMode all;
|
type fixedTemperatureConstraint;
|
||||||
|
selectionMode all;
|
||||||
|
|
||||||
// volumeMode absolute;
|
mode uniform;
|
||||||
|
|
||||||
// power 100; // Set power (W)
|
temperature constant 300; // Set temperature (K)
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
fixedPower
|
||||||
|
{
|
||||||
|
type heatSource;
|
||||||
|
selectionMode all;
|
||||||
|
|
||||||
|
Q 100; // Set power (W)
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
// sources
|
|
||||||
// {
|
|
||||||
// e
|
|
||||||
// {
|
|
||||||
// explicit $power;
|
|
||||||
// implicit 0;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
//************************************************************************** //
|
//************************************************************************** //
|
||||||
|
|||||||
@ -17,27 +17,18 @@ FoamFile
|
|||||||
|
|
||||||
ignition
|
ignition
|
||||||
{
|
{
|
||||||
type semiImplicitSource;
|
type heatSource;
|
||||||
|
|
||||||
selectionMode cellSet;
|
selectionMode cellSet;
|
||||||
cellSet ignition;
|
cellSet ignition;
|
||||||
|
|
||||||
volumeMode specific;
|
q
|
||||||
|
|
||||||
sources
|
|
||||||
{
|
|
||||||
h
|
|
||||||
{
|
|
||||||
explicit
|
|
||||||
{
|
{
|
||||||
type scale;
|
type scale;
|
||||||
scale squarePulse;
|
scale squarePulse;
|
||||||
start 0;
|
start 0;
|
||||||
duration 1;
|
duration 1;
|
||||||
value 5e7; // kg/m/s^3
|
value 5e7;
|
||||||
}
|
|
||||||
implicit 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,15 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
cd ${0%/*} || exit 1 # Run from this directory
|
|
||||||
|
|
||||||
# Source tutorial clean functions
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
|
||||||
|
|
||||||
cleanCase
|
|
||||||
|
|
||||||
# remove 0 directory
|
|
||||||
rm -rf 0
|
|
||||||
|
|
||||||
# remove post-processing directory
|
|
||||||
rm -rf postProcessing
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
@ -6,9 +6,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
|||||||
|
|
||||||
application=$(getApplication)
|
application=$(getApplication)
|
||||||
|
|
||||||
# copy 0.orig to 0
|
|
||||||
cp -r 0.orig 0
|
|
||||||
|
|
||||||
# create mesh
|
# create mesh
|
||||||
runApplication blockMesh
|
runApplication blockMesh
|
||||||
|
|
||||||
|
|||||||
@ -46,7 +46,7 @@ filter1
|
|||||||
|
|
||||||
massSource
|
massSource
|
||||||
{
|
{
|
||||||
type semiImplicitSource;
|
type massSource;
|
||||||
|
|
||||||
selectionMode points;
|
selectionMode points;
|
||||||
points
|
points
|
||||||
@ -54,57 +54,23 @@ massSource
|
|||||||
(2.75 0.5 0)
|
(2.75 0.5 0)
|
||||||
);
|
);
|
||||||
|
|
||||||
volumeMode absolute;
|
massFlowRate
|
||||||
|
|
||||||
squarePulse
|
|
||||||
{
|
{
|
||||||
type scale;
|
type scale;
|
||||||
scale squarePulse;
|
scale squarePulse;
|
||||||
start 0.2;
|
start 0.2;
|
||||||
duration 2;
|
duration 2;
|
||||||
|
value 1e-4;
|
||||||
}
|
}
|
||||||
|
|
||||||
sources
|
fieldValues
|
||||||
{
|
{
|
||||||
rho
|
U (0 50 0);
|
||||||
{
|
h 100000;
|
||||||
explicit
|
O2 0;
|
||||||
{
|
H2O 1;
|
||||||
$squarePulse;
|
k 0.0938;
|
||||||
value 1e-4; // kg/s
|
epsilon 0.0449;
|
||||||
}
|
|
||||||
implicit 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
U
|
|
||||||
{
|
|
||||||
explicit
|
|
||||||
{
|
|
||||||
$squarePulse;
|
|
||||||
value (0 0.005 0);
|
|
||||||
}
|
|
||||||
implicit 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
h
|
|
||||||
{
|
|
||||||
explicit
|
|
||||||
{
|
|
||||||
$squarePulse;
|
|
||||||
value 10;
|
|
||||||
}
|
|
||||||
implicit 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
H2O
|
|
||||||
{
|
|
||||||
explicit
|
|
||||||
{
|
|
||||||
$squarePulse;
|
|
||||||
value 1e-4; // kg/s
|
|
||||||
}
|
|
||||||
implicit 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -22,8 +22,6 @@ massSource
|
|||||||
selectionMode points;
|
selectionMode points;
|
||||||
points ((0.075 0.925 0.05));
|
points ((0.075 0.925 0.05));
|
||||||
|
|
||||||
volumeMode absolute;
|
|
||||||
|
|
||||||
massFlowRate 1;
|
massFlowRate 1;
|
||||||
|
|
||||||
phase water;
|
phase water;
|
||||||
|
|||||||
@ -25,8 +25,6 @@ massSource
|
|||||||
(0.075 0.2 0.05)
|
(0.075 0.2 0.05)
|
||||||
);
|
);
|
||||||
|
|
||||||
volumeMode absolute;
|
|
||||||
|
|
||||||
phase air;
|
phase air;
|
||||||
rho thermo:rho.air;
|
rho thermo:rho.air;
|
||||||
|
|
||||||
|
|||||||
@ -25,8 +25,6 @@ massSource
|
|||||||
(0.075 0.2 0.05)
|
(0.075 0.2 0.05)
|
||||||
);
|
);
|
||||||
|
|
||||||
volumeMode absolute;
|
|
||||||
|
|
||||||
phase steam;
|
phase steam;
|
||||||
rho thermo:rho.steam;
|
rho thermo:rho.steam;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user