# Setting up an initial velocity field for scalarTransportFoam

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

 May 10, 2014, 08:31 Setting up an initial velocity field for scalarTransportFoam #1 New Member   Marco Langiu Join Date: May 2014 Posts: 2 Rep Power: 0 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!

 May 11, 2014, 11:35 #2 New Member   Charles Join Date: Apr 2014 Posts: 9 Rep Power: 4 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

 May 11, 2014, 12:10 #3 New Member   Marco Langiu Join Date: May 2014 Posts: 2 Rep Power: 0 Hey Charles, thanks for that hint! I'll look into this as soon as I can.

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

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post mbcx4jc2 OpenFOAM Running, Solving & CFD 12 August 4, 2015 02:20 Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20 Heroic OpenFOAM Running, Solving & CFD 26 December 17, 2012 04:34 sivakumar OpenFOAM Pre-Processing 9 September 9, 2008 12:53 lr103476 OpenFOAM Running, Solving & CFD 30 November 19, 2007 15:09

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