|
[Sponsors] |
Setting up an initial velocity field for scalarTransportFoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 10, 2014, 09: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, 12:35 |
|
#2 |
New Member
Charles
Join Date: Apr 2014
Posts: 9
Rep Power: 12 |
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, 13: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 |
|
|
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 |