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 |
hi, Vincent. may i know how you finally solved your problem?
|
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 |
Quote:
|
All times are GMT -4. The time now is 18:56. |