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

Where is the source code for mesh.update()?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 12, 2016, 10:17
Default Where is the source code for mesh.update()?
  #1
New Member
 
Dominic
Join Date: May 2016
Posts: 27
Rep Power: 10
Verse is on a distinguished road
I'm currently looking for the source code for a file, but have been having some trouble. The specific line is from fluidStructureInterface.C (from foam-extend 3.x), fluidMesh_.update(). The overarching solver itself uses dynamicFvMesh, but I've still been unable to find the respective source code for the .update() member function.

Thank you in advance for the assistance.
Verse is offline   Reply With Quote

Old   July 14, 2016, 08:25
Default
  #2
Member
 
Ben Jankauskas
Join Date: Jun 2013
Location: Exeter
Posts: 34
Rep Power: 13
rhythm is on a distinguished road
Hi,

I've had a quick look at FSI version 4.0.

You were correct to start looking in dynamicfvMesh for update() function.

If you take a look at *.H file, this member function is set as:
Code:
virtual bool update() = 0;
It is an abstract member function, hence it should be defined in all derived classes. I am not sure which derived class is used in your case, so I would suggest taking a look at $FOAM_SRC/dynamicMesh/dynamicFvMesh/. In this folder you can see all of the available derived classes from dynamicFvMesh. As far as I could see they all have a definition of update() member function.

So if you can figure out which runtime selectable dynamicFvMesh model/library is used, then you can look up the algorithm it uses in update() function.

Hope this helps.
Ben
rhythm is offline   Reply With Quote

Old   July 14, 2016, 09:27
Default
  #3
New Member
 
Dominic
Join Date: May 2016
Posts: 27
Rep Power: 10
Verse is on a distinguished road
Hi rhythm, thanks for your reply. I actually found what I was looking for in dynamicMotionSolverFvMesh (turns out it depends on what solver you are using). I attached a link to the presentation I referenced if anyone in the future is curious as to how to find it for specific cases.

http://www.slideshare.net/fumiyanozaki96/openfoam

Cheers,
- Verse
Verse is offline   Reply With Quote

Reply

Tags
fsifoam, source code, update()


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
wmake compiling new solver mksca OpenFOAM Programming & Development 14 June 22, 2018 07:29
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 Seroga OpenFOAM Community Contributions 9 June 12, 2015 18:18
[swak4Foam] swak4foam building problem GGerber OpenFOAM Community Contributions 54 April 24, 2015 17:02
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 10:17
centOS 5.6 : paraFoam not working yossi OpenFOAM Installation 2 October 9, 2013 02:41


All times are GMT -4. The time now is 15:58.