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

Setting up an initial velocity field for scalarTransportFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 10, 2014, 09:31
Default Setting up an initial velocity field for scalarTransportFoam
  #1
New Member
 
Marco Langiu
Join Date: May 2014
Posts: 2
Rep Power: 0
mala01 is on a distinguished road
Hello everyone,

I am new to OpenFOAM and therefore have some trouble getting a start on it, since I cannot find tutorials on what I'm looking for.

My aim is to simulate the mass transfer of oxygen in a falling flat film of water. To do this I decided to use the scalarTransportFoam solver which looked promising after I did the tutorial for the pitzDaily case.
However, I cannot find any documentation of how to set up the required velocity field without punching in the desired values for each cell by hand.

I've attempted to create a steady field by running a simulation using the interFoam solver, but the solving process failed due to numerical reasons I don't understand.

For a start I want to simulate my case in 2D with a steady velocity profile which should look like this: u(y) = g*h^2/nu*(y/h-.5*(y/h)^2)
Where h=10mm is the height of the film, which for now is assumed to be constant in the x (=flow) -direction.

My geometry is a simple, one block mesh of 50x10x1 mm with (100 10 1) cells.

Is there any simple way to implement this?
Do you have literature/tutorial suggestions?

I don't mean to bother you with these fundamental problems, but I searched for two days now and couldn't find anything that brought me any further.

Thank you for your help!
mala01 is offline   Reply With Quote

Old   May 11, 2014, 12:35
Default
  #2
CTR
New Member
 
Charles
Join Date: Apr 2014
Posts: 9
Rep Power: 12
CTR is on a distinguished road
Hi Marco,

I think that you might want to research codedFixedValue boundary condition. It should allow you to define the velocity profile. Sorry I can't give you a detail answer, I am pretty new to OpenFOAM as well.

Charles
CTR is offline   Reply With Quote

Old   May 11, 2014, 13:10
Default
  #3
New Member
 
Marco Langiu
Join Date: May 2014
Posts: 2
Rep Power: 0
mala01 is on a distinguished road
Hey Charles,

thanks for that hint! I'll look into this as soon as I can.
mala01 is offline   Reply With Quote

Reply

Tags
generate, how to, initialize, set up, velocity field


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
simpleFoam error - "Floating point exception" mbcx4jc2 OpenFOAM Running, Solving & CFD 12 August 4, 2015 03:20
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20
pisoFoam with k-epsilon turb blows up - Some questions Heroic OpenFOAM Running, Solving & CFD 26 December 17, 2012 04:34
Unknown error sivakumar OpenFOAM Pre-Processing 9 September 9, 2008 13:53
Convergence moving mesh lr103476 OpenFOAM Running, Solving & CFD 30 November 19, 2007 15:09


All times are GMT -4. The time now is 04:40.