tutorials: Replaced semiImplicitSource with more specific fvModels

This commit is contained in:
Will Bainbridge
2021-03-18 12:28:44 +00:00
parent 8d707b48c6
commit da288597e2
23 changed files with 144 additions and 152 deletions

View File

@ -29,21 +29,10 @@ fixedTemperature
/*
fixedPower
{
type semiImplicitSource;
type heatSource;
selectionMode all;
volumeMode absolute;
power 100; // Set power (W)
sources
{
e
{
explicit $power;
implicit 0;
}
}
Q 100; // Set power (W)
}
*/

View File

@ -15,27 +15,67 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
massSource
airSource
{
type semiImplicitSource;
type massSource;
selectionMode all;
volumeMode specific;
sources
massFlowRate 24.535;
phase air;
rho thermo:rho.air;
fieldValues
{
thermo:rho.air
{
explicit 0.024535; // kg/s/m^3
implicit 0;
}
thermo:rho.water
{
explicit -24.535; // kg/s/m^3
implicit 0;
}
f0.air 0;
f1.air 0;
f2.air 0;
f3.air 0;
f4.air 0;
f5.air 0;
f6.air 0;
f7.air 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
{}
}
// ************************************************************************* //

View File

@ -15,27 +15,61 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
massSource
airSource
{
type semiImplicitSource;
type massSource;
selectionMode all;
volumeMode specific;
sources
massFlowRate -25.8575;
phase air;
rho thermo:rho.air;
fieldValues
{
thermo:rho.air
{
explicit -0.0258575; // kg/s/m^3
implicit 0;
}
thermo:rho.water
{
explicit 25.8575; // kg/s/m^3
implicit 0;
}
f0.air 0;
f1.air 0;
f2.air 0;
f3.air 0;
f4.air 0;
f5.air 0;
f6.air 0;
f7.air 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
{}
}
// ************************************************************************* //

View File

@ -16,19 +16,11 @@ FoamFile
cylinderHeat
{
type semiImplicitSource;
selectionMode all;
volumeMode specific;
power 5e7;
type heatSource;
sources
{
e
{
explicit $power;
implicit 0;
}
}
selectionMode all;
q 5e7;
}
//************************************************************************** //

View File

@ -14,23 +14,27 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// fixedPower
// {
// type semiImplicitSource;
// selectionMode all;
/*
fixedTemperature
{
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;
// }
// }
// }
//************************************************************************** //

View File

@ -17,27 +17,18 @@ FoamFile
ignition
{
type semiImplicitSource;
type heatSource;
selectionMode cellSet;
cellSet ignition;
volumeMode specific;
sources
q
{
h
{
explicit
{
type scale;
scale squarePulse;
start 0;
duration 1;
value 5e7; // kg/m/s^3
}
implicit 0;
}
type scale;
scale squarePulse;
start 0;
duration 1;
value 5e7;
}
}

View File

@ -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
#------------------------------------------------------------------------------

View File

@ -6,9 +6,6 @@ cd ${0%/*} || exit 1 # Run from this directory
application=$(getApplication)
# copy 0.orig to 0
cp -r 0.orig 0
# create mesh
runApplication blockMesh

View File

@ -46,7 +46,7 @@ filter1
massSource
{
type semiImplicitSource;
type massSource;
selectionMode points;
points
@ -54,57 +54,23 @@ massSource
(2.75 0.5 0)
);
volumeMode absolute;
squarePulse
massFlowRate
{
type scale;
scale squarePulse;
start 0.2;
duration 2;
value 1e-4;
}
sources
fieldValues
{
rho
{
explicit
{
$squarePulse;
value 1e-4; // kg/s
}
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;
}
U (0 50 0);
h 100000;
O2 0;
H2O 1;
k 0.0938;
epsilon 0.0449;
}
}

View File

@ -22,8 +22,6 @@ massSource
selectionMode points;
points ((0.075 0.925 0.05));
volumeMode absolute;
massFlowRate 1;
phase water;

View File

@ -25,8 +25,6 @@ massSource
(0.075 0.2 0.05)
);
volumeMode absolute;
phase air;
rho thermo:rho.air;

View File

@ -25,8 +25,6 @@ massSource
(0.075 0.2 0.05)
);
volumeMode absolute;
phase steam;
rho thermo:rho.steam;