Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
ad1e7982
Commit
ad1e7982
authored
Sep 26, 2016
by
Andrew Heather
Browse files
ENH: Initial testing updates
parent
1fbcb686
Changes
17
Hide whitespace changes
Inline
Side-by-side
src/finiteVolume/fields/fvPatchFields/derived/timeVaryingMappedFixedValue/timeVaryingMappedFixedValueFvPatchField.C
View file @
ad1e7982
...
...
@@ -96,10 +96,8 @@ timeVaryingMappedFixedValueFvPatchField
&&
mapMethod_
!=
"nearest"
)
{
FatalIOErrorInFunction
(
dict
)
<<
"mapMethod should be one of 'planarInterpolation'"
FatalIOErrorInFunction
(
dict
)
<<
"mapMethod should be one of 'planarInterpolation'"
<<
", 'nearest'"
<<
exit
(
FatalIOError
);
}
...
...
@@ -248,7 +246,8 @@ void Foam::timeVaryingMappedFixedValueFvPatchField<Type>::checkTable()
// Reread values and interpolate
fileName
samplePointsFile
(
this
->
db
().
time
().
caseConstant
()
this
->
db
().
time
().
path
()
/
this
->
db
().
time
().
caseConstant
()
/
"boundaryData"
/
this
->
patch
().
name
()
/
"points"
...
...
@@ -356,7 +355,8 @@ void Foam::timeVaryingMappedFixedValueFvPatchField<Type>::checkTable()
// Reread values and interpolate
fileName
valsFile
(
this
->
db
().
time
().
caseConstant
()
this
->
db
().
time
().
path
()
/
this
->
db
().
time
().
caseConstant
()
/
"boundaryData"
/
this
->
patch
().
name
()
/
sampleTimes_
[
startSampleTime_
].
name
()
...
...
src/finiteVolume/fields/fvPatchFields/derived/turbulentDFSEMInlet/turbulentDFSEMInletFvPatchVectorFieldTemplates.C
View file @
ad1e7982
...
...
@@ -72,7 +72,8 @@ Foam::turbulentDFSEMInletFvPatchVectorField::interpolateBoundaryData
fileName
valsFile
(
this
->
db
().
time
().
caseConstant
()
this
->
db
().
time
().
path
()
/
this
->
db
().
time
().
caseConstant
()
/
"boundaryData"
/
patchName
/
"0"
...
...
src/functionObjects/field/yPlus/yPlus.C
View file @
ad1e7982
...
...
@@ -137,12 +137,10 @@ bool Foam::functionObjects::yPlus::execute()
const
volScalarField
::
Boundary
&
d
=
nwd
.
y
();
// nut needed for wall function patches
const
volScalarField
::
Boundary
&
nutBf
=
model
.
nut
()().
boundaryField
();
tmp
<
volScalarField
>
tnut
=
model
.
nut
();
const
volScalarField
::
Boundary
&
nutBf
=
tnut
().
boundaryField
();
// nuEff nu and U needed for plain wall patches
const
volScalarField
::
Boundary
&
nuEffBf
=
model
.
nuEff
()().
boundaryField
();
const
volScalarField
::
Boundary
&
nuBf
=
model
.
nu
()().
boundaryField
();
// U needed for plain wall patches
const
volVectorField
::
Boundary
&
UBf
=
model
.
U
().
boundaryField
();
const
fvPatchList
&
patches
=
mesh_
.
boundary
();
...
...
@@ -167,9 +165,9 @@ bool Foam::functionObjects::yPlus::execute()
d
[
patchi
]
*
sqrt
(
nuEff
Bf
[
patchi
]
model
.
nuEff
(
patchi
)
*
mag
(
UBf
[
patchi
].
snGrad
())
)
/
nuBf
[
patchi
]
;
)
/
model
.
nu
(
patchi
)
;
}
}
}
...
...
src/functionObjects/utilities/runTimeControl/runTimeControl.H
View file @
ad1e7982
...
...
@@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2015-2016 OpenFOAM Foundation
\\/ M anipulation |
\\/ M anipulation |
Copyright (C) 2016 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
...
...
@@ -25,7 +25,7 @@ Class
Foam::functionObjects::runTimeControl
Group
grp
JobControl
FunctionObjects
grp
Utilities
FunctionObjects
Description
Controls when the calculation is terminated based on satisfying
...
...
@@ -120,9 +120,6 @@ public:
//- Execute, currently does nothing
virtual
bool
execute
();
//- Called when time was set at the end of the Time::operator++
virtual
void
timeSet
();
//- Calculate the runTimeControl and write
virtual
bool
write
();
};
...
...
tutorials/combustion/chemFoam/gri/system/controlDict
View file @
ad1e7982
...
...
@@ -56,10 +56,11 @@ functions
{
sensitivityAnalysis
{
functionObjectLibs (
"lib
utility
FunctionObjects.so"
);
functionObjectLibs ("lib
field
FunctionObjects.so");
type psiReactionsSensitivityAnalysis;
outputControl outputTime;
enabled true;
writeControl writeTime;
}
}
// ************************************************************************* //
tutorials/combustion/engineFoam/kivaTest/system/controlDict
View file @
ad1e7982
...
...
@@ -55,9 +55,9 @@ functions
{
timeStep
{
type coded;
type
coded;
libs ("libutilityFunctionObjects.so");
name setDeltaT;
name
setDeltaT;
code
#{
...
...
tutorials/compressible/rhoPimpleFoam/laminar/sineWaveDamping/system/controlDict
View file @
ad1e7982
...
...
@@ -57,8 +57,8 @@ functions
fieldAverage
{
type fieldAverage;
functionObjectLibs
("libfieldFunctionObjects.so");
output
Control
output
Time;
libs
("libfieldFunctionObjects.so");
write
Control
write
Time;
fields
(
U
...
...
tutorials/heatTransfer/chtMultiRegionFoam/externalCoupledMultiRegionHeater/system/controlDict
View file @
ad1e7982
...
...
@@ -59,7 +59,7 @@ functions
externalCoupled
{
// Where to load it from (if not already in solver)
functionObjectLibs ("libjob
Control.so");
libs ("libfield
Control.so");
type externalCoupled;
...
...
tutorials/heatTransfer/chtMultiRegionFoam/windshieldCondensation/system/controlDict
View file @
ad1e7982
...
...
@@ -56,19 +56,10 @@ functions
H2O
{
type scalarTransport;
functionObjectLibs ("libutilityFunctionObjects.so");
libs ("libsolverFunctionObjects.so");
resetOnStartUp no;
region cabin;
// employ schemes used by U to the scalar transport equation
// note: field name is given by the name of the function, in this case
// 'scalar1'
autoSchemes no;
fvOptions
{
}
...
...
@@ -77,9 +68,9 @@ functions
fileUpdate
{
type timeActivatedFileUpdate;
functionObjectLibs
("libutilityFunctionObjects.so");
output
Control timeStep;
output
Interval 1;
libs
("libutilityFunctionObjects.so");
write
Control
timeStep;
write
Interval
1;
region cabin;
fileToUpdate "$FOAM_CASE/system/solverControls";
...
...
tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/controlDict
View file @
ad1e7982
...
...
@@ -56,10 +56,10 @@ functions
massFlux
{
type faceSource;
functionObjectLibs
("libfieldFunctionObjects.so");
libs
("libfieldFunctionObjects.so");
enabled yes;
output
Control timeStep; //
output
Time;
output
Interval 1;
write
Control
timeStep; //
write
Time;
write
Interval
1;
log yes;
valueOutput no;
source patch;
...
...
tutorials/incompressible/pimpleFoam/channel395DFSEM/system/controlDict
View file @
ad1e7982
...
...
@@ -50,26 +50,26 @@ functions
Q1
{
type Q;
functionObjectLibs ("lib
utility
FunctionObjects.so");
output
Control
output
Time;
functionObjectLibs ("lib
field
FunctionObjects.so");
write
Control
write
Time;
}
vorticity1
{
type vorticity;
functionObjectLibs ("lib
utility
FunctionObjects.so");
output
Control
output
Time;
functionObjectLibs ("lib
field
FunctionObjects.so");
write
Control
write
Time;
}
yPlus
{
type yPlus;
functionObjectLibs ("lib
utility
FunctionObjects.so");
output
Control
output
Time;
functionObjectLibs ("lib
field
FunctionObjects.so");
write
Control
write
Time;
}
fieldAverage1
{
type fieldAverage;
functionObjectLibs ( "libfieldFunctionObjects.so" );
output
Control
output
Time;
write
Control
write
Time;
timeStart 8.5;
fields
...
...
tutorials/incompressible/pisoFoam/les/motorBike/motorBike/system/runtimePostProcessing
View file @
ad1e7982
postPro1
{
type runTimePostProcessing;
functionObjectLibs
("librunTimePostProcessing.so");
output
Control
output
Time;
libs
("librunTimePostProcessing.so");
write
Control
write
Time;
output
{
name image;
...
...
tutorials/incompressible/simpleFoam/pitzDaily/system/streamlines
View file @
ad1e7982
...
...
@@ -14,6 +14,7 @@ nLines 10;
start (-0.0205 0.001 0.00001);
end (-0.0205 0.0251 0.00001);
fields (p k U);
U U;
// Must be last entry
#includeEtc "caseDicts/postProcessing/visualization/streamlines.cfg"
...
...
tutorials/incompressible/simpleFoam/simpleCar/system/controlDict
View file @
ad1e7982
...
...
@@ -49,32 +49,31 @@ functions
{
forceCoeffs1
{
type forceCoeffs;
functionObjectLibs ( "libforces.so" );
outputControl outputTime;
writeFields true;
patches (body);
pName p;
UName U;
rhoName rhoInf; // Indicates incompressible
log true;
rhoInf 1; // Redundant for incompressible
liftDir (0 1 0);
dragDir (1 0 0);
CofR (3.5 0 0); // Axle midpoint on ground
pitchAxis (0 0 1);
magUInf 10;
lRef 4; // Wheelbase length
Aref 1; // Estimated
porosity on;
type forceCoeffs;
libs ("libforces.so" );
writeControl writeTime;
writeFields true;
patches (body);
p p;
U U;
rho rhoInf; // Indicates incompressible
log true;
rhoInf 1; // Redundant for incompressible
liftDir (0 1 0);
dragDir (1 0 0);
CofR (3.5 0 0); // Axle midpoint on ground
pitchAxis (0 0 1);
magUInf 10;
lRef 4; // Wheelbase length
Aref 1; // Estimated
porosity on;
binData
{
nBin 20; // output data into 20 bins
direction (1 0 0); // bin direction
cumulative yes;
nBin
20; // output data into 20 bins
direction
(1 0 0); // bin direction
cumulative
yes;
}
}
}
...
...
tutorials/incompressible/simpleFoam/simpleCar/system/forceCoeffs
View file @
ad1e7982
...
...
@@ -8,34 +8,31 @@
forceCoeffs1
{
type forceCoeffs;
functionObjectLibs ( "libforces.so" );
outputControl outputTime;
writeFields true;
patches (body);
pName p;
UName U;
rhoName rhoInf; // Indicates incompressible
log true;
rhoInf 1; // Redundant for incompressible
liftDir (0 1 0);
dragDir (1 0 0);
CofR (3.5 0 0); // Axle midpoint on ground
pitchAxis (0 0 1);
magUInf 10;
lRef 4; // Wheelbase length
Aref 1; // Estimated
porosity on;
type forceCoeffs;
libs ("libforces.so");
writeControl writeTime;
writeFields true;
patches (body);
p p;
U U;
rho rhoInf; // Indicates incompressible
log true;
rhoInf 1; // Redundant for incompressible
liftDir (0 1 0);
dragDir (1 0 0);
CofR (3.5 0 0); // Axle midpoint on ground
pitchAxis (0 0 1);
magUInf 10;
lRef 4; // Wheelbase length
Aref 1; // Estimated
porosity on;
binData
{
nBin 20; // output data into 20 bins
direction (1 0 0); // bin direction
cumulative yes;
nBin
20; // output data into 20 bins
direction
(1 0 0); // bin direction
cumulative
yes;
}
}
...
...
tutorials/multiphase/MPPICInterFoam/twoPhasePachuka/system/controlDict
View file @
ad1e7982
...
...
@@ -57,11 +57,12 @@ functions
minMax
{
type fieldMinMax;
functionObjectLibs
("libfieldFunctionObjects.so");
output
Control timeStep; //
output
Time;
fields (U);
type
fieldMinMax;
libs
("libfieldFunctionObjects.so");
write
Control
timeStep; //
write
Time;
fields
(U);
}
}
// ************************************************************************* //
tutorials/multiphase/interDyMFoam/ras/motorBike/system/minMax
View file @
ad1e7982
...
...
@@ -21,7 +21,7 @@ minMax
type fieldMinMax;
// Where to load it from (if not already in solver)
functionObjectLibs
("libfieldFunctionObjects.so");
libs
("libfieldFunctionObjects.so");
// Log to output (default: false)
log true;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment