Skip to content

Commit

Permalink
Updated FWI case with latest developments--second order spatial schem…
Browse files Browse the repository at this point in the history
…es etc.
  • Loading branch information
jmt19002 committed Sep 24, 2021
1 parent c0cb7d3 commit d3b35b6
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 16 deletions.
14 changes: 7 additions & 7 deletions validationCases/02_flameWallInteraction/ofCaseSetup/Allrun
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,21 @@ done
runApplication setFields -region flame

#-- Run on single processor
runApplication `getApplication`
#runApplication `getApplication`

# Decompose
#runApplication decomposePar -allRegions
runApplication decomposePar -allRegions

# Run
#runParallel `getApplication`

# Reconstruct
runApplication reconstructPar -allRegions
#runApplication reconstructPar -allRegions


echo
echo "creating files for paraview post-processing"
echo
paraFoam -touchAll
#echo
#echo "creating files for paraview post-processing"
#echo
#paraFoam -touchAll

#------------------------------------------------------------------------------
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ vertices
blocks
(
hex (0 1 2 3 4 5 6 7)
(2000 1 1)
(20000 1 1)
simpleGrading
(
1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ startTime 0;

stopAt endTime;

endTime 20;
endTime 1.5;

deltaT 1e-6;
deltaT 1e-7;

writeControl adjustableRunTime;

Expand All @@ -50,23 +50,45 @@ maxCo 0.6;
// Maximum diffusion number
maxDi 10.0;

adjustTimeStep yes;
adjustTimeStep no;

libs
(
"libfieldFunctionObjects.so"
);

functions
{
/*
wallHeatFluxSolid
{
type wallHeatFlux;
libs ("libmyfieldFunctionObjects.so");
region solid;
writeControl writeTime;
patches (solid_to_flame);
}
wallHeatFluxFlame
{
type wallHeatFlux;
libs ("libmyfieldFunctionObjects.so");
region flame;
writeControl writeTime;
patches (flame_to_solid);
}
wallHeatFluxTSolid
{
type wallHeatFluxT;
libs ("libmyfieldFunctionObjects.so");
region solid;
writeControl writeTime;
patches (solid_to_flame);
}
wallHeatFluxTFlame
{
type wallHeatFluxT;
libs ("libmyfieldFunctionObjects.so");
region flame;
writeControl writeTime;
patches (flame_to_solid);
}
solidPatchProbeIntT
Expand All @@ -76,6 +98,7 @@ functions
functionObjectLibs ("libfieldFunctionObjects.so");

region solid;
writeControl writeTime;

patchName solid_to_flame;

Expand All @@ -96,6 +119,7 @@ functions
functionObjectLibs ("libfieldFunctionObjects.so");

region flame;
writeControl writeTime;

patchName flame_to_solid;

Expand All @@ -109,7 +133,6 @@ functions
T
);
}
*/
}

// ************************************************************************* //
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ FoamFile

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

numberOfSubdomains 16;
numberOfSubdomains 8;

method simple;

simpleCoeffs
{
n (16 1 1);
n (8 1 1);
delta 0.001;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ solvers

p
{
solver GAMG;
solver PCG;
preconditioner DIC;
tolerance 1e-9;
relTol 0.01;
smoother GaussSeidel;
Expand Down Expand Up @@ -95,6 +96,12 @@ PIMPLE

relaxationFactors
{
fields
{
p 0.9;
pFinal 1;
}

equations
{
"h.*" 1;
Expand Down

0 comments on commit d3b35b6

Please sign in to comment.