Updated tutorials.

This commit is contained in:
Thomas Lichtenegger
2016-08-01 15:55:45 +02:00
parent 308cdf27c4
commit cd614bf299
7 changed files with 7 additions and 160 deletions

View File

@ -23,35 +23,11 @@ boundaryField
wall
{
//type fixedValue;
//value uniform (0 0 0);
type slip;
}
inlet
{
/*type flowRateInletVelocity;
flowRate 0.001;
value uniform (0 0 0);*/
/* type fixedValue;
value uniform (0 0 0.1);*/
//type zeroGradient;
/*// superficial velocity BC
type groovyBC;
variables "Usup=vector(0,0,2);alpha=voidfraction;tEnd=0.1;"; // should be used with zeroGradient voidfraction
valueExpression "((time() < tEnd) ? Usup/alpha*(time()/tEnd) : Usup/alpha)";
value uniform (0 0 0);*/
/*// 2.0.x, ext
type timeVaryingUniformFixedValue;
fileName "steps_0p1s";
outOfBounds clamp;
value uniform (0 0 0);*/
// 2.1.x
type uniformFixedValue;
uniformValue table
(
@ -62,9 +38,6 @@ boundaryField
}
outlet
{
/*type fluxCorrectedVelocity; //inletOutlet;
value uniform (0 0 0);
inletValue uniform (0 0 0);*/
type zeroGradient;
}
}

View File

@ -1,25 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object RASProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
RASModel laminar;
turbulence off;
printCoeffs on;
// ************************************************************************* //

View File

@ -70,7 +70,7 @@ momCoupleModels
implicitCouple
);
turbulenceModelType RASProperties;//LESProperties;//
turbulenceModelType "turbulenceProperties";
//===========================================================================//
// sub-model properties

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
simulationType RASModel;
simulationType laminar;
// ************************************************************************* //

View File

@ -52,8 +52,7 @@ maxCo 0.1;
//libs ("libOpenFOAM.so" "libgroovyBC.so");
functions
(
{
probes
{
type probes;
@ -93,25 +92,5 @@ functions
outputControl timeStep;//outputTime;
outputInterval 1;
}
/*pressureDrop
{
type patchAverage;
functionObjectLibs
(
"libsimpleFunctionObjects.so"
);
verbose true;
patches
(
inlet
outlet
);
fields
(
p
);
factor 1;
}*/
);
};
// ************************************************************************* //

View File

@ -62,7 +62,7 @@ momCoupleModels
implicitCouple
);
turbulenceModelType RASProperties;//LESProperties;//
turbulenceModelType "turbulenceProperties";
//===========================================================================//
// sub-model properties

View File

@ -54,8 +54,7 @@ maxDeltaT 1;
//libs ( "libgroovyBC.so" );
functions
(
{
probes
{
type probes;
@ -76,84 +75,5 @@ functions
outputControl timeStep;//outputTime;
outputInterval 1;
}
/*
// simpleFunctionObjects
heatFlux
{
type patchHeatFlux;
functionObjectLibs
(
"libsimpleFunctionObjects.so"
);
verbose true;
patches
(
inlet
outlet
);
fields // name of temp field
(
T
);
cp 1007; // cp in [J/(kg*K)]
factor 1.188; // density for incomp solvers!
}
massFlux
{
type patchMassFlow;
functionObjectLibs
(
"libsimpleFunctionObjects.so"
);
verbose true;
patches
(
inlet
outlet
);
factor 1.188; // density for incomp solvers!
}
pressureDrop
{
type patchAverage;
functionObjectLibs
(
"libsimpleFunctionObjects.so"
);
verbose true;
patches
(
inlet
outlet
);
fields
(
p
);
factor 1;
}
T
{
type patchAverage;
functionObjectLibs
(
"libsimpleFunctionObjects.so"
);
verbose true;
patches
(
inlet
outlet
);
fields // name of temp field
(
T
);
factor 1;
}*/
);
};
// ************************************************************************* //