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

NO Moving Probes for Moving Mesh in Foam Extend 4.0

Register Blogs Community New Posts Updated Threads Search

Like Tree6Likes
  • 1 Post By alia
  • 3 Post By alia
  • 1 Post By alia
  • 1 Post By alia

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 6, 2017, 14:08
Unhappy NO Moving Probes for Moving Mesh in Foam Extend 4.0
  #1
New Member
 
alia's Avatar
 
Ali Aghaei
Join Date: Oct 2014
Posts: 12
Rep Power: 12
alia is on a distinguished road
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_;
anyone knows how to resolve this issue? or can we fix it in probes.H and probes.C files?

Thank you

Ali
Bazinga likes this.
alia is offline   Reply With Quote

Old   September 19, 2017, 05:59
Default Solved
  #2
New Member
 
alia's Avatar
 
Ali Aghaei
Join Date: Oct 2014
Posts: 12
Rep Power: 12
alia is on a distinguished road
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);
    }
cheers
pi06jl6, Bazinga and fcl like this.
alia is offline   Reply With Quote

Old   June 7, 2018, 06:15
Default
  #3
Senior Member
 
Join Date: Jun 2012
Location: Germany, Bochum
Posts: 230
Rep Power: 16
Bazinga is on a distinguished road
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.
Bazinga is offline   Reply With Quote

Old   June 7, 2018, 06:36
Default
  #4
New Member
 
alia's Avatar
 
Ali Aghaei
Join Date: Oct 2014
Posts: 12
Rep Power: 12
alia is on a distinguished road
Quote:
Originally Posted by Bazinga View Post
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.
Dear Bazinga, you need to copy the probes directory in your FOAM_USER directory and rename the class to create a new class like myProbe. after compiling it should work. make sure you type the name of the new probe in the probe definition in controlDict.
I just put my adjusted probe code here. I hope it helps.
Cheers
Ali
Attached Files
File Type: zip myProbes.zip (192.7 KB, 36 views)
Bazinga likes this.
alia is offline   Reply With Quote

Old   June 7, 2018, 07:10
Default
  #5
Senior Member
 
Join Date: Jun 2012
Location: Germany, Bochum
Posts: 230
Rep Power: 16
Bazinga is on a distinguished road
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
Bazinga is offline   Reply With Quote

Old   June 7, 2018, 07:23
Default
  #6
New Member
 
alia's Avatar
 
Ali Aghaei
Join Date: Oct 2014
Posts: 12
Rep Power: 12
alia is on a distinguished road
I just edited my last reply and attached the code
Cheers
Bazinga likes this.
alia is offline   Reply With Quote

Old   June 25, 2018, 10:24
Default
  #7
New Member
 
Join Date: Oct 2014
Location: Lafayette, LA
Posts: 18
Rep Power: 12
gigliagarf is on a distinguished road
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?
gigliagarf is offline   Reply With Quote

Reply

Tags
fixedlocations, foam extend 4.0, moving mesh, probes


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
[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


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