CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Pre-Processing

Partial field mapping

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 28, 2014, 14:04
Post Partial field mapping
  #1
Member
 
Vincent Leroy
Join Date: Jul 2012
Location: Rhode-Saint-Genèse, Belgium
Posts: 41
Rep Power: 6
leroyv is on a distinguished road
Dear foamers,

I ran a simulation on a geometry visible here:
https://www.dropbox.com/s/72wla3nfb5udb0y/all_cells.png

I'd like to map the solution fields on the upper right cell onto this geometry:
https://www.dropbox.com/s/sbqzbofwtp3kq2p/unit_cell.png

Both meshes are identically built, so it's basically just about cropping and translating the results. I know that the mapFields utility is meant to do things like this, but I don't know if it is appropriate my case. Maybe offsetting the unit cell mesh coordinates would be the thing to do?

Do you have any advice for the use of mapFields?

Vincent
leroyv is offline   Reply With Quote

Old   May 24, 2016, 21:45
Default
  #2
Member
 
Karelke Yu
Join Date: Dec 2014
Posts: 66
Rep Power: 3
cfdopenfoam is on a distinguished road
hi, Vincent. may i know how you finally solved your problem?
cfdopenfoam is offline   Reply With Quote

Old   May 25, 2016, 06:00
Default
  #3
Member
 
Vincent Leroy
Join Date: Jul 2012
Location: Rhode-Saint-Genèse, Belgium
Posts: 41
Rep Power: 6
leroyv is on a distinguished road
Hi Karelke,

That was more than 2 years ago so my memory might be a bit fuzzy. From what I remember, I did what I suggested: I offset the target mesh to center it at the position corresponding to the cell I wanted to map in the source mesh, using the transformPoints utility. Then I used mapFields with the cellPointInterpolate method to map the field to the target mesh. As far as I know, mapFields has been quite deeply modified since then, so you will need to look into it to see if better interpolation methods are available.

I hope that helps! Best regards,

Vincent
leroyv is offline   Reply With Quote

Old   May 25, 2016, 06:43
Default
  #4
Member
 
Karelke Yu
Join Date: Dec 2014
Posts: 66
Rep Power: 3
cfdopenfoam is on a distinguished road
Quote:
Originally Posted by leroyv View Post
Hi Karelke,

That was more than 2 years ago so my memory might be a bit fuzzy. From what I remember, I did what I suggested: I offset the target mesh to center it at the position corresponding to the cell I wanted to map in the source mesh, using the transformPoints utility. Then I used mapFields with the cellPointInterpolate method to map the field to the target mesh. As far as I know, mapFields has been quite deeply modified since then, so you will need to look into it to see if better interpolation methods are available.

I hope that helps! Best regards,

Vincent
thank you for your hints, Vincent. I will have a try!
cfdopenfoam is offline   Reply With Quote

Reply

Tags
field mapping, mapfields, openfoam

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
Mapping field to a subdomain Lense OpenFOAM Mesh Utilities 2 May 24, 2016 21:43
problems after decomposing for running alessio.nz OpenFOAM 6 December 23, 2015 15:27
Cht tutorial in 15 braennstroem OpenFOAM Running, Solving & CFD 197 June 10, 2015 03:02
How to get the velocity field from the pressure field Hermano Main CFD Forum 2 November 29, 2011 09:32
mapping of pressure field (simplefoam to cavitatingFoam) siddharameshwara OpenFOAM Running, Solving & CFD 14 February 15, 2011 09:59


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