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

inlet outlet boundary using timeVaryingMappedFixedValue

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By Gildeh
  • 1 Post By zhengzh5
  • 1 Post By zhengzh5

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 15, 2013, 00:42
Default inlet outlet boundary using timeVaryingMappedFixedValue
  #1
New Member
 
Hossein
Join Date: Feb 2012
Posts: 13
Rep Power: 14
Gildeh is on a distinguished road
Hello All,

I need a fully developed velocity profile as an inlet boundary condition so at first I want to develop this profile in a straight pipe and use the outlet values.
I believe that I need to use timeVaryingMappedFixedValue patch in my 0/U boundary condition for velocity in the target case. And as I read the other threads, the outlet patch coordinates should be the same as the inlet in the target case (this is true in my case). According to the tutorial in the pitzDailyExptInlet, I need two dictionary that I do not know how to extract from my initial case (these are obviously the data on the outlet patch in the initial run): (i) the points dictionary in the boundaryData folder, and (ii) the U dictionary in the 0 file.

I have already checked several threads here, but could not understand how to get these data from my initial run (e.g.: Inlet reading from a different case..)

Thank you very much in for your help in advance.

Gildeh
MaySea likes this.
Gildeh is offline   Reply With Quote

Old   May 15, 2013, 00:59
Default Mapping data for every time step
  #2
Pj.
Member
 
Luca
Join Date: Mar 2013
Posts: 68
Rep Power: 13
Pj. is on a distinguished road
wrong post. Delete please, sorry
Pj. is offline   Reply With Quote

Old   May 23, 2013, 14:23
Default
  #3
Member
 
Jace
Join Date: Oct 2012
Posts: 77
Rep Power: 15
zhengzh5 is on a distinguished road
Quote:
Originally Posted by Gildeh View Post
Hello All,

I need a fully developed velocity profile as an inlet boundary condition so at first I want to develop this profile in a straight pipe and use the outlet values.
I believe that I need to use timeVaryingMappedFixedValue patch in my 0/U boundary condition for velocity in the target case. And as I read the other threads, the outlet patch coordinates should be the same as the inlet in the target case (this is true in my case). According to the tutorial in the pitzDailyExptInlet, I need two dictionary that I do not know how to extract from my initial case (these are obviously the data on the outlet patch in the initial run): (i) the points dictionary in the boundaryData folder, and (ii) the U dictionary in the 0 file.

I have already checked several threads here, but could not understand how to get these data from my initial run (e.g.: Inlet reading from a different case..)

Thank you very much in for your help in advance.

Gildeh
hey, you can use the sample utility in OpenFOAM to extract the velocity profile on the outlet patch of your initial run and feed that to your actual run as inlet conditions.

check out application/utilities/postProcessing/sampling/sample, you will need to copy the sampleDict to your system directory and make necessary modifications to sample the outlet patch for specific fields.

you can read about the utility little more here:
http://www.openfoam.org/docs/user/sample.php
Gildeh likes this.
zhengzh5 is offline   Reply With Quote

Old   May 23, 2013, 14:37
Default
  #4
New Member
 
Hossein
Join Date: Feb 2012
Posts: 13
Rep Power: 14
Gildeh is on a distinguished road
Quote:
Originally Posted by zhengzh5 View Post
hey, you can use the sample utility in OpenFOAM to extract the velocity profile on the outlet patch of your initial run and feed that to your actual run as inlet conditions.

check out application/utilities/postProcessing/sampling/sample, you will need to copy the sampleDict to your system directory and make necessary modifications to sample the outlet patch for specific fields.

you can read about the utility little more here:
http://www.openfoam.org/docs/user/sample.php

Hello Jace,

Thank you very much for your reply. I actually did not see the sampling utility explanation in the user guide. I will go over that and see what would be the result.

Thanks
Gildeh
Gildeh is offline   Reply With Quote

Old   May 23, 2013, 15:20
Default
  #5
Member
 
Jace
Join Date: Oct 2012
Posts: 77
Rep Power: 15
zhengzh5 is on a distinguished road
Quote:
Originally Posted by Gildeh View Post
Hello Jace,

Thank you very much for your reply. I actually did not see the sampling utility explanation in the user guide. I will go over that and see what would be the result.

Thanks
Gildeh
sounds good, let me know if you have any further question. I actually just played with timeVaryingMappedFixedValue BC recently, so everything is moreless fresh in my head =)
Gildeh likes this.
zhengzh5 is offline   Reply With Quote

Old   May 24, 2013, 04:09
Default
  #6
Pj.
Member
 
Luca
Join Date: Mar 2013
Posts: 68
Rep Power: 13
Pj. is on a distinguished road
I'm trying to do exactly the same right now. What i found is that you need to use the sample utility do sample your source case (you need to set the output format to foamFile).

Then i use a little script to reorder the files from the sample output structure to the timeVaryingMappedFixedValue input one.

You will also need to add the header to all the files, but you can do it again with a simple script.

I'm comparing the solutions right now, because it seams that i have a problem with the coordinate system. I will let you know soon with what i found. In the meantime if you share your problems and your solutions here we can help each other.
Pj. 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
Wind turbine simulation Saturn CFX 58 July 3, 2020 01:13
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 04:05
Inlet & Outlet Boundary Conditions dhananjay Main CFD Forum 2 December 21, 2006 10:03
Inlet & Outlet Boundary Conditions dhananjay Main CFD Forum 0 December 18, 2006 02:51
VOF Outlet boundary condition in cfd - ace JM Main CFD Forum 0 December 15, 2006 08:07


All times are GMT -4. The time now is 19:49.