|May 10, 2014, 08:31||
Setting up an initial velocity field for scalarTransportFoam
Join Date: May 2014
Posts: 2Rep Power: 0
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||
Join Date: Apr 2014
Posts: 9Rep Power: 4
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.
|generate, how to, initialize, set up, velocity field|
|Thread||Thread Starter||Forum||Replies||Last Post|
|simpleFoam error - "Floating point exception"||mbcx4jc2||OpenFOAM Running, Solving & CFD||12||August 4, 2015 02:20|
|Moving mesh||Niklas Wikstrom (Wikstrom)||OpenFOAM Running, Solving & CFD||122||June 15, 2014 06: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 12:53|
|Convergence moving mesh||lr103476||OpenFOAM Running, Solving & CFD||30||November 19, 2007 15:09|