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

Mapping fields between different programs

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 25, 2013, 04:04
Post Mapping fields between different programs
  #1
Member
 
Simone
Join Date: Sep 2012
Posts: 95
Rep Power: 13
batta31 is on a distinguished road
Hi guys, I have this question:
I have to import the velocity and pressure field from another program (STAR CCM+), and I need to use these fields as inlet condition on my case, which has the same geometry (in terms of body and patches) of the case run in STAR, but a different volume mesh (which is made with ANSA). Is there a way to interpolate those fields in order to use them with OpenFOAM?

I heard about the utility mapFields, to be used with different solvers inside OF, but I don't know if it can be used also between different programs.

Thank you for your replies!
Simone
batta31 is offline   Reply With Quote

Old   February 25, 2013, 08:52
Default
  #2
Senior Member
 
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 403
Rep Power: 25
deepsterblue will become famous soon enough
You may want to take a look at MPCCI - not sure how relevant it is, though
__________________
Sandeep Menon
University of Massachusetts Amherst
https://github.com/smenon
deepsterblue is online now   Reply With Quote

Old   February 25, 2013, 17:56
Default
  #3
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings to all!

I'll quote myself from the other day, because it seems to fit quite nicely:
Quote:
Originally Posted by wyldckat View Post
I believe what you're looking for is exemplified in the tutorial "incompressible/simpleFoam/pitzDailyExptInlet", in particular inside the folder "constant/boundaryData/inlet/".
There isn't much more I know of this tutorial, so I can only suggest you study it and do tell us if you have problems with it!
In essence: you need to export the inlet data you want to use, to CSV or something else, on Star-CCM+. Then refurbish the CSV data to the format in the example I quoted and there you have it!

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   February 26, 2013, 02:41
Default
  #4
Member
 
Simone
Join Date: Sep 2012
Posts: 95
Rep Power: 13
batta31 is on a distinguished road
Thanks for your answer Bruno, it's a starting point for sure. But I have (maybe) a little problem, which is linked to the fact that also the inlet patch from which I extract the data in STAR has a different grid (and so different nodes) with respect to the one that will be used in ANSA. The file "points" in your example has generic coordinates or maybe those points are exactly the nodes of the inlet? This could be the answer..
batta31 is offline   Reply With Quote

Old   February 26, 2013, 04:16
Default
  #5
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
You could probe/sample/interpolate the points on the original mesh...
__________________
wyldckat is offline   Reply With Quote

Reply


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
fvMeshSubset and labelHashSet: mapping fields between the meshes Arnoldinho OpenFOAM Programming & Development 1 February 19, 2012 09:05
moving domain, interFoam and mapping fields pablodecastillo OpenFOAM Programming & Development 1 April 23, 2011 14:45
PostChannel maka OpenFOAM Post-Processing 5 July 22, 2009 09:15
MultiDirRefinement class Bug on mapping fields zurdo OpenFOAM Bugs 12 December 17, 2007 04:54
[Gmsh] Import gmsh msh to Foam adorean OpenFOAM Meshing & Mesh Conversion 24 April 27, 2005 08:19


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