Skip to content
Snippets Groups Projects
Commit 474785b8 authored by mattijs's avatar mattijs
Browse files

Revert "BUG: displacementLaplacianMotionSolver: startup evaluation of point...

Revert "BUG: displacementLaplacianMotionSolver: startup evaluation of point bcs (since not solved for)"

This reverts commit 5dea5057.
parent 5dea5057
No related merge requests found
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -88,24 +88,6 @@ Foam::displacementLaplacianFvMotionSolver::displacementLaplacianFvMotionSolver
: -1
)
{
if (debug)
{
Info<< "displacementLaplacianFvMotionSolver:" << nl
<< " diffusivity : " << diffusivityPtr_().type() << nl
<< " frozenPoints zone : " << frozenPointsZone_ << endl;
}
// Weird one: if using bc on pointDisplacement that updateCoeffs()
// at construction time:
// - read pointDisplacement, some bcs do updateCoeffs
// - time gets incremented
// - laplacianMotionSolver::solve() : now uses (old!) bc values
// - laplacianMotionSolver::curPoints() : finally does
// pointDisplacement::correctBoundaryConditions
// So first iteration uses old values (but future ones are ok)
// So:
pointDisplacement_.correctBoundaryConditions();
IOobject io
(
"pointLocation",
......@@ -115,6 +97,13 @@ Foam::displacementLaplacianFvMotionSolver::displacementLaplacianFvMotionSolver
IOobject::AUTO_WRITE
);
if (debug)
{
Info<< "displacementLaplacianFvMotionSolver:" << nl
<< " diffusivity : " << diffusivityPtr_().type() << nl
<< " frozenPoints zone : " << frozenPointsZone_ << endl;
}
if (io.headerOk())
{
......
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