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

Mapping fields

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 14, 2005, 17:07
Default Hi, For two cases with iden
  #1
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 8
hsieh is on a distinguished road
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
hsieh is offline   Reply With Quote

Old   September 14, 2005, 17:59
Default I don't if you can specify the
  #2
Member
 
Duderino
Join Date: Mar 2009
Posts: 40
Rep Power: 7
duderino is on a distinguished road
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
duderino is offline   Reply With Quote

Old   September 14, 2005, 18:17
Default Hi, Jens, Could you explain
  #3
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 8
hsieh is on a distinguished road
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
hsieh is offline   Reply With Quote

Old   September 14, 2005, 20:56
Default Hi, Jens, After more though
  #4
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 8
hsieh is on a distinguished road
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
hsieh is offline   Reply With Quote

Reply

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 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


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