Skip to content
Snippets Groups Projects
Commit 1e3cd399 authored by Andrew Heather's avatar Andrew Heather Committed by Andrew Heather
Browse files

WIP: dynamicMotionSolverFvMeshAMI - reset Uf

parent c6e18e75
Branches
Tags
1 merge request!367AMI code enhancements
...@@ -34,6 +34,7 @@ License ...@@ -34,6 +34,7 @@ License
#include "polyTopoChange.H" #include "polyTopoChange.H"
#include "MeshObject.H" #include "MeshObject.H"
#include "lduMesh.H" #include "lduMesh.H"
#include "surfaceInterpolate.H"
#include "processorFvPatch.H" #include "processorFvPatch.H"
...@@ -195,6 +196,12 @@ bool Foam::dynamicMotionSolverFvMeshAMI::update() ...@@ -195,6 +196,12 @@ bool Foam::dynamicMotionSolverFvMeshAMI::update()
if (Uptr) if (Uptr)
{ {
Uptr->correctBoundaryConditions(); Uptr->correctBoundaryConditions();
surfaceVectorField* UfPtr = getObjectPtr<surfaceVectorField>("Uf");
if (UfPtr)
{
*UfPtr = fvc::interpolate(*Uptr);
}
} }
if (debug) if (debug)
......
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