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

Inlet reading from a different case..

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By gricci

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 25, 2009, 13:44
Default Inlet reading from a different case..
  #1
Member
 
vishwanath somashekar
Join Date: Apr 2009
Posts: 41
Rep Power: 17
vishwa is on a distinguished road
Hi,
I have ran a case for a flow in channel. and I would like to use the outlet velocity as the inlet velocity in another case.

The mesh is exactly the same in that plane for both cases. How do i do that?
I am very new to OpenFoam so have no idea how to accomplish this task.

Regards,
Vishwa
vishwa is offline   Reply With Quote

Old   October 1, 2009, 07:39
Default
  #2
New Member
 
Giovanni Ricci
Join Date: May 2009
Posts: 12
Rep Power: 17
gricci is on a distinguished road
Send a message via Skype™ to gricci
I've been fiddling with it for a very long time! You need to use timeVaryingMappedFixedValue as boundary condition on the inlet of the target case. Look at the pitzDailyExptInlet tutorial (for OF-1.6) for an example. The field is mapped from the data under constant/boundaryData

You have to write a sampleDict to sample the field from the outlet patch of the source case. Choose foamFile as output.
(use the command
Code:
find -name sampleDict
under $WM_PROJECT_DIR/applications to find a commented example)


Give the command
Code:
sample -latestTime
this will produce a new directory named surface.

Eventually, you'll have to modify the coordinates in the file named points to make it agree with the coordinates of the target patch. You can use these values to map the field on your inlet.


As someone says... enjoy!
mgg likes this.
gricci is offline   Reply With Quote

Old   October 1, 2009, 12:06
Default
  #3
Member
 
vishwanath somashekar
Join Date: Apr 2009
Posts: 41
Rep Power: 17
vishwa is on a distinguished road
Thanks a lot for the info..I will try it out.. is there any way that I could also add some fluctuations to this field? for turbulence simulation..

Regards,
vishwa
vishwa is offline   Reply With Quote

Old   October 1, 2009, 12:31
Default
  #4
New Member
 
Giovanni Ricci
Join Date: May 2009
Posts: 12
Rep Power: 17
gricci is on a distinguished road
Send a message via Skype™ to gricci
i've read about it several times but you 'd better wait for someone more experienced
gricci is offline   Reply With Quote

Old   February 12, 2010, 11:03
Unhappy inlet velocity from an inner surface velocity field
  #5
Senior Member
 
maddalena's Avatar
 
maddalena
Join Date: Mar 2009
Posts: 436
Rep Power: 23
maddalena will become famous soon enough
Hi FOAMers,

I would like to study more in detail the velocity field on a subdomain taken from a converged OF simulation. Since the overall velocity field of the source case influences the inlet velocity of the target domain, I was thinking about sampling data on an inner plane on the source case and use them as the inlet of the target case. Note that mesh and geometry of the target case is different from the source case.

I am able to sample data from the source case using sampleDict and obtaining the wanted surface, but I do not know how to put them on the inlet of the target case.Should I edit the cells coordinates manually as suggested above or is there a faster way to do this mapping? I also guess that mapFields is not an option in my case, since there is not a defined mesh or geometry correspondence between the source and target domain.

Any suggestion?

Cheers,

maddalena
maddalena is offline   Reply With Quote

Old   February 12, 2010, 14:38
Default
  #6
Member
 
Alan Russell
Join Date: Aug 2009
Location: Boise, Idaho USA
Posts: 61
Rep Power: 17
AlanR is on a distinguished road
You can use timeVaryingMappedFixedValue for turbulence parameters like k and epsilon as well as velocity. Once you get gricci's suggestion working for velocity, try the same method for turbulence.

Alan
AlanR is offline   Reply With Quote

Old   February 19, 2010, 03:29
Thumbs up Thank you!
  #7
Senior Member
 
maddalena's Avatar
 
maddalena
Join Date: Mar 2009
Posts: 436
Rep Power: 23
maddalena will become famous soon enough
Thanks Alan, after some modifications on the initial surface data, I get timeVaryingMappedFixedValue working!
maddalena is offline   Reply With Quote

Old   February 18, 2011, 08:55
Default
  #8
Member
 
Join Date: Nov 2009
Location: Germany
Posts: 96
Rep Power: 17
val46 is on a distinguished road
Hi mad,

I used the sample command and changed the points by hand.
At time 0 my new case looks like this at the inlet (see attached picture 1).

Oh, by the way: It should look like picture 2

Toni
Attached Images
File Type: jpg test2.jpg (60.5 KB, 155 views)
File Type: jpg test.jpg (24.2 KB, 121 views)
val46 is offline   Reply With Quote

Old   February 18, 2011, 09:53
Default
  #9
Senior Member
 
maddalena's Avatar
 
maddalena
Join Date: Mar 2009
Posts: 436
Rep Power: 23
maddalena will become famous soon enough
Hi Toni,
I do not know what is happening there... I think there is something wrong with your data interpolation on the new face...Why don't you try to sample only some lines on the original mesh and create a sort of interpolation by hand? It worked for me; however I had a pretty simple geometry...

mad
maddalena is offline   Reply With Quote

Old   February 18, 2011, 11:49
Default
  #10
Member
 
Join Date: Nov 2009
Location: Germany
Posts: 96
Rep Power: 17
val46 is on a distinguished road
Oh, you mean you didn't sample the whole surface?
val46 is offline   Reply With Quote

Old   February 21, 2011, 03:26
Default
  #11
Senior Member
 
maddalena's Avatar
 
maddalena
Join Date: Mar 2009
Posts: 436
Rep Power: 23
maddalena will become famous soon enough
Quote:
Originally Posted by val46 View Post
Oh, you mean you didn't sample the whole surface?
In the beginning I sampled the whole surface, but then I preferred to sample only some points and interpolate by hand..

mad
maddalena is offline   Reply With Quote

Old   May 26, 2014, 11:10
Default
  #12
mgg
New Member
 
Join Date: Nov 2012
Posts: 27
Rep Power: 14
mgg is on a distinguished road
Quote:
Originally Posted by val46 View Post
Oh, you mean you didn't sample the whole surface?
Hi val46,

Did you get your case working? With timevaryingmappedfixedvalue, I have also problem, the mapped results does not math the sampled field, even they have the same mesh geometry. It looks also ugly. Can you give me some tips?
mgg is offline   Reply With Quote

Reply


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
[Commercial meshers] Converting a mesh with splitted cells using fluentMeshToFoam jlpelerin OpenFOAM Meshing & Mesh Conversion 4 April 25, 2011 17:56
Reading case file at certain time interval Chin Fook FLUENT 1 September 11, 2008 07:54
reading case into Fluent takes forever John FLUENT 3 July 28, 2005 06:23
reading case and data files Riccardo Buccolieri FLUENT 2 June 9, 2005 17:29
length scales at inlet for internal flows Anne-Marie Giroux Main CFD Forum 3 July 5, 1999 22:28


All times are GMT -4. The time now is 18:35.