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

Mapping fields between different programs

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools 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: 3
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: 365
Rep Power: 14
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 offline   Reply With Quote

Old   February 25, 2013, 17:56
Default
  #3
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,088
Blog Entries: 32
Rep Power: 70
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
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: 3
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
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,088
Blog Entries: 32
Rep Power: 70
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
You could probe/sample/interpolate the points on the original mesh...
wyldckat is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
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
Import gmsh msh to Foam adorean Open Source Meshers: Gmsh, Netgen, CGNS, ... 24 April 27, 2005 08:19


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