|
[Sponsors] |
NO Moving Probes for Moving Mesh in Foam Extend 4.0 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 6, 2017, 14:08 |
NO Moving Probes for Moving Mesh in Foam Extend 4.0
|
#1 |
New Member
Ali Aghaei
Join Date: Oct 2014
Posts: 12
Rep Power: 12 |
Dear Foamers,
In OpenFOAM we are able to define probes that are moving with a moving mesh which is very useful for example in pressure probing of moving objects. this capability unfortunately I think is not available in Foam-Extend versions, which is a very big flaw especially for FSI applications. the following lines which are in probes.H files of OpenFOAM are missing in Foam Extend versions: Code:
//- Fixed locations, default = yes // Note: set to false for moving mesh calculations where locations // should move with the mesh //- Interpolation scheme name // Note: only possible when fixedLocations_ is true word interpolationScheme_; bool fixedLocations_; Thank you Ali |
|
September 19, 2017, 05:59 |
Solved
|
#2 |
New Member
Ali Aghaei
Join Date: Oct 2014
Posts: 12
Rep Power: 12 |
I did solve this problem a while ago and I want to share it here.
it is quite simple to have probes moving with mesh. you just need to comment out the following lines from the probes.C file Code:
if (mesh.moving() || mesh.changing()) { cellList_.clear(); findCells(mesh); } |
|
June 7, 2018, 06:15 |
|
#3 |
Senior Member
Join Date: Jun 2012
Location: Germany, Bochum
Posts: 230
Rep Power: 16 |
Is there anything else I need to do? I commented out the part of the code but the probes are still not moving with the mesh although I added "fixedLocations false" in the controlDict.
|
|
June 7, 2018, 06:36 |
|
#4 | |
New Member
Ali Aghaei
Join Date: Oct 2014
Posts: 12
Rep Power: 12 |
Quote:
I just put my adjusted probe code here. I hope it helps. Cheers Ali |
||
June 7, 2018, 07:10 |
|
#5 |
Senior Member
Join Date: Jun 2012
Location: Germany, Bochum
Posts: 230
Rep Power: 16 |
Thanks for the fast reply. I will try it, but I am not too familiar with this. If possible, to make things a bit easier, can you share your code?
edit: Thank you so much Last edited by Bazinga; June 7, 2018 at 07:13. Reason: because alia is awesome |
|
June 7, 2018, 07:23 |
|
#6 |
New Member
Ali Aghaei
Join Date: Oct 2014
Posts: 12
Rep Power: 12 |
I just edited my last reply and attached the code
Cheers |
|
June 25, 2018, 10:24 |
|
#7 |
New Member
Join Date: Oct 2014
Location: Lafayette, LA
Posts: 18
Rep Power: 12 |
I also am having trouble with this exact issue, I tried your approach with commenting out the section and duplicating the probes folder to make myprobes, however it didn't compile correctly. I also tried just downloading your folder to my $WM_PROJECT_USER_DIR and typing wmake within it, without success. Do you have any suggestions as to what I might be doing wrong? I have fsi foam and waves2foam installed as well, do you think they have broken the functionality or your fix?
|
|
Tags |
fixedlocations, foam extend 4.0, moving mesh, probes |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[CGNS] CGNS converters available | mbeaudoin | OpenFOAM Meshing & Mesh Conversion | 137 | December 14, 2018 05:20 |
[mesh manipulation] Importing Multiple Meshes | thomasnwalshiii | OpenFOAM Meshing & Mesh Conversion | 18 | December 19, 2015 19:57 |
Question on moving mesh, mesh velocity is really small! | ripperjack | Main CFD Forum | 2 | April 28, 2014 14:37 |
[blockMesh] BlockMesh FOAM warning | gaottino | OpenFOAM Meshing & Mesh Conversion | 7 | July 19, 2010 15:11 |
Problem with rhoSimpleFoam | matteo_gautero | OpenFOAM Running, Solving & CFD | 0 | February 28, 2008 07:51 |