|
[Sponsors] |
Struggling with BCs for 'simple' interFoam case |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 7, 2009, 04:48 |
Struggling with BCs for 'simple' interFoam case
|
#1 |
Member
Join Date: Mar 2009
Location: Sydney, New South Wales, Australia
Posts: 42
Rep Power: 17 |
Hi folks,
I am trying to model a simple cube, half filled with fluid 3 x 3 x 3 units in size. The top is open to atmosphere, and the centre unit on the base is an inlet. I am trying to develop a uniform, low pressure input via the inlet to create ripples and bubbles on the surface of the fluid. I am really struggling to get the boundary conditions correct for this, as I am using interFoam, and trying to juggle boundary conditions in gamma, pd and U files within the 0 directory. At the moment I have the following conditions: Gamma nozzle { type inletOutlet; inletValue uniform 1; value uniform 1; } atmosphere { type inletOutlet; inletValue uniform 0; value uniform 0; } pd nozzle { type inletOutlet value uniform 1; } atmosphere { type totalPressure; p0 uniform 0; U U; phi phi; rho none; psi none; gamma 1; value uniform 0; } U nozzle { type pressureInletOutletVelocity; phi phi; value uniform (0 0 0) } { atmosphere type pressureInletOutletVelocity; phi phi; value uniform (0 0 0) } I receive an error message each time I attempt to run the solver: gradientInternalCoeffs cannot be called for a genericFvPatchField (actual type pressureInletVelocity) on patch nozzle of field pd in file "/home/swervo/OpenFOAM/nathan-1.5/run/tutorials/Asai_Models/cube_experiments/cube_1-1/0/pd" You are probably trying to solve for a field with a generic boundary condition. From function genericFvPatchField<Type>::gradientInternalCoeffs( ) const in file fields/fvPatchFields/basic/generic/genericFvPatchField.C at line 692. FOAM exiting So what am I doing wrong? I thought this would be reasonably simple to get going, but is proving to be anything but! Any help would be greatly appreciated. Many thanks, N |
|
May 15, 2009, 11:16 |
|
#2 |
New Member
|
Hi!
can I ask you the meaning of " value uniform 0 " in: atmosphere { type totalPressure; p0 uniform 0; U U; phi phi; rho none; psi none; gamma 1; value uniform 0; } And why is it necessary specify phi, rho, psi, gamma (even if p0 is the only required entry on the User Guide (pag. U-129) for totalPressure) ? Thanks dani |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Changing the grid on the same set-up | Katya | FLUENT | 7 | October 8, 2009 17:31 |
Free surface boudary conditions with SOLA-VOF | Fan | Main CFD Forum | 10 | September 9, 2006 13:24 |
Exporting BC's from one case file to another | Mazyar | FLUENT | 3 | April 22, 2006 06:03 |
Turbulent Flat Plate Validation Case | Jonas Larsson | Main CFD Forum | 0 | April 2, 2004 11:25 |
Body force - Does it work? | Jan Rusås | CFX | 5 | August 27, 2002 10:50 |