ENh: Adding access to diffusion model and make constructor from mesh and dictionary

make to read solver type from the dictionary instead of typeName
This commit is contained in:
sergio
2014-03-20 11:26:39 +00:00
committed by Andrew Heather
parent 25d874034b
commit 920946e594
2 changed files with 9 additions and 3 deletions

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -57,7 +57,7 @@ Foam::displacementSBRStressFvMotionSolver::displacementSBRStressFvMotionSolver
const IOdictionary& dict const IOdictionary& dict
) )
: :
displacementMotionSolver(mesh, dict, typeName), displacementMotionSolver(mesh, dict, dict.lookup("solver")),
fvMotionSolverCore(mesh), fvMotionSolverCore(mesh),
cellDisplacement_ cellDisplacement_
( (

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -111,6 +111,12 @@ public:
return cellDisplacement_; return cellDisplacement_;
} }
//- Return diffusivity
motionDiffusivity& diffusivity()
{
return diffusivityPtr_();
}
//- Return point location obtained from the current motion field //- Return point location obtained from the current motion field
virtual tmp<pointField> curPoints() const; virtual tmp<pointField> curPoints() const;