|
[Sponsors] |
February 28, 2014, 14:04 |
Partial field mapping
|
#1 |
Member
Vincent Leroy
Join Date: Jul 2012
Location: Rhode-Saint-Genèse, Belgium
Posts: 43
Rep Power: 14 |
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 |
|
May 24, 2016, 22:45 |
|
#2 |
Member
Karelke Yu
Join Date: Dec 2014
Posts: 96
Rep Power: 12 |
hi, Vincent. may i know how you finally solved your problem?
|
|
May 25, 2016, 07:00 |
|
#3 |
Member
Vincent Leroy
Join Date: Jul 2012
Location: Rhode-Saint-Genèse, Belgium
Posts: 43
Rep Power: 14 |
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 |
|
May 25, 2016, 07:43 |
|
#4 | |
Member
Karelke Yu
Join Date: Dec 2014
Posts: 96
Rep Power: 12 |
Quote:
|
||
Tags |
field mapping, mapfields, openfoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
problems after decomposing for running | alessio.nz | OpenFOAM | 7 | March 5, 2021 05:49 |
Mapping field to a subdomain | Lense | OpenFOAM Pre-Processing | 2 | May 24, 2016 22:43 |
Cht tutorial in 15 | braennstroem | OpenFOAM Running, Solving & CFD | 197 | June 10, 2015 04: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 |