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:
parent
c51d53a9ea
commit
45caaf4d10
2 changed files with 9 additions and 3 deletions
|
|
@ -2,7 +2,7 @@
|
|||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
|
|
@ -57,7 +57,7 @@ Foam::displacementSBRStressFvMotionSolver::displacementSBRStressFvMotionSolver
|
|||
const IOdictionary& dict
|
||||
)
|
||||
:
|
||||
displacementMotionSolver(mesh, dict, typeName),
|
||||
displacementMotionSolver(mesh, dict, dict.lookup("solver")),
|
||||
fvMotionSolverCore(mesh),
|
||||
cellDisplacement_
|
||||
(
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
|
|
@ -111,6 +111,12 @@ public:
|
|||
return cellDisplacement_;
|
||||
}
|
||||
|
||||
//- Return diffusivity
|
||||
motionDiffusivity& diffusivity()
|
||||
{
|
||||
return diffusivityPtr_();
|
||||
}
|
||||
|
||||
//- Return point location obtained from the current motion field
|
||||
virtual tmp<pointField> curPoints() const;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue