Skip to content
Snippets Groups Projects
Commit d7880bbe authored by Simone Bnà's avatar Simone Bnà
Browse files

TUT: updated pipeOneD tutorial

parent b1591f01
No related merge requests found
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1806 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object fvOptions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dump
{
type dumpMatrix;
libs ("libexternMatrix.so");
active on;
timeStart 0.1;
duration 10;
selectionMode all;
fields (T);
}
view
{
type petscViewMatrix;
libs ("libpetscFoam.so");
active on;
timeStart 0.1;
duration 10;
selectionMode all;
fields (T);
sleep 3;
}
// ************************************************************************* //
......@@ -15,6 +15,8 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs ("libpetscFoam.so");
application laplacianFoam;
startFrom startTime;
......
......@@ -19,16 +19,46 @@ solvers
{
T
{
solver PCG;
preconditioner DIC;
tolerance 1e-06;
solver petsc;
preconditioner petsc;
petsc
{
solver cg;
preconditioner hypre;
use_petsc_residual_norm false;
caching false;
cgCoeffs
{
single_reduction true;
}
hypreCoeffs
{
type boomeramg;
boomeramg_max_iter "1";
boomeramg_strong_threshold "0.25";
boomeramg_grid_sweeps_up "1";
boomeramg_grid_sweeps_down "1";
boomeramg_agg_nl "1";
boomeramg_agg_num_paths "1";
boomeramg_max_levels "25";
boomeramg_coarsen_type HMIS;
boomeramg_interp_type ext+i;
boomeramg_P_max "1";
boomeramg_truncfactor "0.3";
}
}
tolerance 1e-6;
relTol 0;
}
}
SIMPLE
{
nNonOrthogonalCorrectors 2;
nNonOrthogonalCorrectors 1;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment