CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (http://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   Partial field mapping (http://www.cfd-online.com/Forums/openfoam-pre-processing/130572-partial-field-mapping.html)

leroyv February 28, 2014 14:04

Partial field mapping
 
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
https://www.dropbox.com/s/72wla3nfb5udb0y/all_cells.png

cfdopenfoam May 24, 2016 21:45

hi, Vincent. may i know how you finally solved your problem?

leroyv May 25, 2016 06:00

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

cfdopenfoam May 25, 2016 06:43

Quote:

Originally Posted by leroyv (Post 601746)
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! ;)


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