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

Initialization of internal field

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

Like Tree1Likes
  • 1 Post By snak

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 25, 2021, 04:05
Default Initialization of internal field
  #1
New Member
 
Jeon Young Jin
Join Date: Jul 2021
Posts: 3
Rep Power: 2
jyj970522 is on a distinguished road
Dear all,


I am a beginner of OpenFOAM. What I am trying to do is


First, I run the simulation using 4m-length tube mesh.
Create a new tube mesh with same diameter but longer.(6m-length)
Copy the field values of result of 4m-tube simulation, to the 6m-length. Additional 2m is initialized any value that I want.


Currently, how I am doing this :


Copy the field value (at certain time step) from 1st simulation, and paste it to the 0 folder of longer tube. And then type in the values for all the cells of additional 2m.


When grid number becomes large, this is very time-consuming. There might be an easier way to do this. Any help will be appreciated. Thank you!
jyj970522 is offline   Reply With Quote

Old   August 27, 2021, 00:16
Default
  #2
Member
 
shinji nakagawa
Join Date: Mar 2009
Location: Japan
Posts: 97
Blog Entries: 1
Rep Power: 15
snak is on a distinguished road
Hi,

There is a mapFields utility which maps one or more fields relating to a given geometry onto the corresponding fields for another geometry.
https://www.openfoam.com/documentati...ent-geometries

The official tutorial guide explains how to use the mapFileds utility.
https://www.openfoam.com/documentati...en-cavity-flow
jyj970522 likes this.
snak is offline   Reply With Quote

Old   August 27, 2021, 04:18
Thumbs up
  #3
New Member
 
Jeon Young Jin
Join Date: Jul 2021
Posts: 3
Rep Power: 2
jyj970522 is on a distinguished road
Quote:
Originally Posted by snak View Post
Hi,

There is a mapFields utility which maps one or more fields relating to a given geometry onto the corresponding fields for another geometry.
https://www.openfoam.com/documentati...ent-geometries

The official tutorial guide explains how to use the mapFileds utility.
https://www.openfoam.com/documentati...en-cavity-flow

Thanks for the reply.

I will go through the links you provided.

Thanks again!
jyj970522 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Free surface issues with interDyMFoam for hydroturbine oumnion OpenFOAM Running, Solving & CFD 0 October 6, 2017 14:05
chtMultiRegionSimpleFoam turbulent case Aditya Patil OpenFOAM Running, Solving & CFD 6 April 24, 2017 22:13
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
SLTS+rhoPisoFoam: what is rDeltaT??? nileshjrane OpenFOAM Running, Solving & CFD 4 February 25, 2013 04:13
pisoFoam with k-epsilon turb blows up - Some questions Heroic OpenFOAM Running, Solving & CFD 26 December 17, 2012 03:34


All times are GMT -4. The time now is 21:12.