CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Need some help understanding updateCoeffs() for dynamic Meshes.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 15, 2016, 03:11
Default Need some help understanding updateCoeffs() for dynamic Meshes.
  #1
New Member
 
Stephen Waite
Join Date: May 2013
Location: Auckland, New Zealand
Posts: 29
Rep Power: 13
Stephen Waite is on a distinguished road
Hello,

I'm currently working on some modifications to the interDyMFoam solver. I am trying to understand how the displacementLaplacian motion solver works, and I'm hitting a few walls.

I'm using OF 2.4.0 (no reason why I'm using this over 4, It was just the version I had when I came back to openFOAM and started reading into this solver). I'm also new to object orientated programing so a lot of my confusion could be coming from that.

I'm trying to understand how the function
pointDisplacement_.boundary().updateCoeffs(); works. To do this, I'm stepping through the code using gdb as well as navigating with the doxygen source code guide.

so the function is defined in GeometricBoundaryField.C, in the code snippet below.

Code:
template<class Type, template<class> class PatchField, class GeoMesh>
void Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricBoundaryField::
updateCoeffs()
{
    if (debug)
    {
        Info<< "GeometricField<Type, PatchField, GeoMesh>::"
               "GeometricBoundaryField::"
               "updateCoeffs()" << endl;
    }

    forAll(*this, patchi)
    {
        this->operator[](patchi).updateCoeffs();
    }
}
The problem I'm facing is I cant get to the definition for updateCoeffs(). GDB takes me through I think operator[](patchi) when i use step (s) on this line of code.

So if anyone could point me to the declaration for updateCoeffs() or maybe knows how to choose which function you step into with gdb, that would be fantastic

Cheers
Stephen
Stephen Waite is offline   Reply With Quote

Reply

Tags
interdymfoam, updatecoeffs()


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
TimeVaryingMappedFixedValue irishdave OpenFOAM Running, Solving & CFD 32 June 16, 2021 07:55
How can I put the data of adpated meshes on the original unadapted meshes? xh110120 FLUENT 2 March 11, 2016 03:00
Coupling of OpenFOAM solvers Annier OpenFOAM Running, Solving & CFD 1 January 5, 2015 11:50
Understanding about updateCoeffs() in solidDisplacementFoam Annier OpenFOAM Programming & Development 4 January 1, 2015 07:23
Hex and Tet meshes - simplefoam comparison danvica OpenFOAM Running, Solving & CFD 10 January 4, 2013 02:18


All times are GMT -4. The time now is 06:32.