|
[Sponsors] |
September 14, 2005, 17:07 |
Hi,
For two cases with iden
|
#1 |
Senior Member
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 18 |
Hi,
For two cases with identical geometry, is it possible to map only certain data, say gamma field from source to target and set U and P zero in target? The following is the reason: If I finish solving one case, and I would like to use the same gamma field for a second run with different starting inlet velocity. It will be appreciated if you can point a direction to me. pei |
|
September 14, 2005, 17:59 |
I don't if you can specify the
|
#2 |
Member
Duderino
Join Date: Mar 2009
Posts: 40
Rep Power: 17 |
I don't if you can specify the data you want to map.
But you can do first the mapping of gamma and than reedit or overwrite your P and U. This is maybe not the most elegant solution, but it will do the job. jens |
|
September 14, 2005, 18:17 |
Hi, Jens,
Could you explain
|
#3 |
Senior Member
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 18 |
Hi, Jens,
Could you explain your approach? If I do mapping, then all fields (gamma, U, and p) will be mapped to the target case at the same time step. How do I re-edit p and U to zero? (Now that I think about it, I can write a small C code to read U and p in, set everything to 0 and then write them out.) pei |
|
September 14, 2005, 20:56 |
Hi, Jens,
After more though
|
#4 |
Senior Member
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 18 |
Hi, Jens,
After more thought, I think your idea is pretty good. What I ended up doing is: 1. initialzied the new case to zero for p/U/gamma. 2. copy gamm from source case to the target case at time 0 (this will replace the original gamma file). 3. added BCs at the end of the gamma file. In this case, I did not even have to do any mapping. pei |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Mapping fields from fvMesh to tetPolyMesh | hannes | OpenFOAM Running, Solving & CFD | 2 | August 28, 2008 06:42 |
MultiDirRefinement class Bug on mapping fields | zurdo | OpenFOAM Bugs | 12 | December 17, 2007 05:54 |
Mapping volsurface symmTensor fields after a topological change | jcmasters | OpenFOAM Bugs | 1 | September 4, 2007 14:48 |
3D to 2D mapping | Ramesh | Main CFD Forum | 0 | April 9, 2007 02:07 |
Error after mapping fields | alberto | OpenFOAM Pre-Processing | 0 | November 2, 2006 19:47 |