|
[Sponsors] |
July 4, 2017, 09:19 |
MotionSolver functions openFoam 2.3
|
#1 |
Member
Gareth
Join Date: Jun 2010
Posts: 56
Rep Power: 15 |
Good Day
I am trying to follow the code for a surfaceDiscplament motion. To that end i am following the print out call for a single time step from the solver moveDynamicMesh. I am finally at the point where i tracing the steps of the function call Code:
mesh.update(); Please bear with me... This calls the dynamicMotionSolverFvMesh base class which inherits from the dynamicFvMesh class. The function update in this class actually calls the fvMesh class function movePoints Code:
bool Foam::dynamicMotionSolverFvMesh::update() { fvMesh::movePoints(motionPtr_->newPoints()); if (foundObject<volVectorField>("U")) { volVectorField& U = const_cast<volVectorField&>(lookupObject<volVectorField>("U")); U.correctBoundaryConditions(); } return true; } Code:
Foam::tmp<Foam::pointField> Foam::motionSolver::newPoints() { solve(); return curPoints(); } My question is do i assume the final motion solver (displacementLaplacianFvMotionsolver) is being called to execute solve() in which case the code reads: Code:
void Foam::displacementLaplacianFvMotionSolver::solve() { // The points have moved so before interpolation update // the motionSolver accordingly movePoints(fvMesh_.points()); diffusivity().correct(); pointDisplacement_.boundaryField().updateCoeffs(); Foam::solve ( fvm::laplacian ( diffusivity().operator()(), cellDisplacement_, "laplacian(diffusivity,cellDisplacement)" ) ); } Code:
//- Solve for motion virtual void solve() = 0; Any help is greatly appreciated and thank you for even reading this lengthy post |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
cantera integration with openfoam 2.3 | khalifa | OpenFOAM Running, Solving & CFD | 2 | May 8, 2018 11:21 |
OpenFOAM Training Jan-Jul 2017, Virtual, London, Houston, Berlin | CFDFoundation | OpenFOAM Announcements from Other Sources | 0 | January 4, 2017 06:15 |
[OpenFOAM.org] A Mac OS X of23x Development Environment Using Docker | rt08 | OpenFOAM Installation | 1 | February 28, 2016 19:00 |
OpenFOAM v3.0.1 Training, London, Houston, Berlin, Jan-Mar 2016 | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | January 5, 2016 03:18 |
Working with distribution functions in OpenFOAM | Aleksey_R | OpenFOAM | 0 | November 5, 2013 10:08 |