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

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