applications/solvers: Added -postProcess option

See also commit 30e2f912e5
This commit is contained in:
Henry Weller
2016-05-09 14:08:15 +01:00
parent a4ac0f06fd
commit 15545786b4
40 changed files with 104 additions and 82 deletions

View File

@ -1,4 +1,5 @@
EXE_INC = \
-I. \
-ItractionDisplacement/lnInclude \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude

View File

@ -1,6 +1,3 @@
const dictionary& stressControl = mesh.solutionDict().subDict("stressAnalysis");
int nCorr = stressControl.lookupOrDefault<int>("nCorrectors", 1);
scalar convergenceTolerance(readScalar(stressControl.lookup("D")));
Switch compactNormalStress(stressControl.lookup("compactNormalStress"));

View File

@ -0,0 +1,5 @@
#include "createControl.H"
int nCorr = stressControl.lookupOrDefault<int>("nCorrectors", 1);
scalar convergenceTolerance(readScalar(stressControl.lookup("D")));

View File

@ -1,3 +1,6 @@
#include "readMechanicalProperties.H"
#include "readThermalProperties.H"
Info<< "Reading field D\n" << endl;
volVectorField D
(

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -42,13 +42,12 @@ Description
int main(int argc, char *argv[])
{
#include "setRootCase.H"
#include "postProcess.H"
#include "setRootCase.H"
#include "createTime.H"
#include "createMesh.H"
#include "readMechanicalProperties.H"
#include "readThermalProperties.H"
#include "createSolidDisplacementFoamControls.H"
#include "createControls.H"
#include "createFields.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -1,4 +1,5 @@
EXE_INC = \
-I. \
-I../solidDisplacementFoam \
-ItractionDisplacementCorrectionStress \
-I$(LIB_SRC)/finiteVolume/lnInclude \

View File

@ -0,0 +1 @@
const dictionary& stressControl = mesh.solutionDict().subDict("stressAnalysis");

View File

@ -1,3 +1,5 @@
#include "readMechanicalProperties.H"
Info<< "Reading displacement field D\n" << endl;
volVectorField D
(

View File

@ -1,3 +1 @@
const dictionary& stressControl = mesh.solutionDict().subDict("stressAnalysis");
scalar accFac(readScalar(stressControl.lookup("accelerationFactor")));

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -42,11 +42,13 @@ Description
int main(int argc, char *argv[])
{
#include "setRootCase.H"
#define NO_CONTROL
#include "postProcess.H"
#include "setRootCase.H"
#include "createTime.H"
#include "createMesh.H"
#include "readMechanicalProperties.H"
#include "createControls.H"
#include "createFields.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //