|
[Sponsors] |
August 29, 2017, 03:31 |
setFields problems
|
#1 |
New Member
Neshat
Join Date: Feb 2017
Posts: 6
Rep Power: 9 |
Dear Foamers,
I am quite new to CFD simulations, specially OpenFoam, and I am trying to start with simple simulation. I have an open channel with constriction in some parts, which fluid flows through it and I want to use interFoam solver in order to investigate flow field and the effect of these constrictions on water level surface. I know the velocity at the inlet and flow depth at the outlet. My main question is about alpha.water and setFeildsDict files. 1) what should I write for inlet in alpha.water file? 2) And I don’t know which box should I introduced in setFieldsDict file? Should I introduced a box which cover whole the channel? For example, I have a flume with 6m length and 1m width which flow depth is 0.3m. Should I write setFeildsDict as below? defaultFieldValues ( volScalarFieldValue alpha.water 0 ); regions ( boxToCell { box (0 0 0) (6 1 0.3); fieldValues ( volScalarFieldValue alpha.water 1 ); } ); Or I should only introduce a small box at the inlet and let this box flows through the channel? I mean: defaultFieldValues ( volScalarFieldValue alpha.water 0 ); regions ( boxToCell { box (0 0 0) (0.5 1 0.3); fieldValues ( volScalarFieldValue alpha.water 1 ); } ); So sorry for my very basic questions. Best Regards Neshat |
|
September 2, 2017, 02:15 |
|
#2 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24 |
Hi
both methods are possible and true, just continue simulation and see which one fit your purpose.
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
|
September 2, 2017, 13:14 |
|
#3 |
New Member
Neshat
Join Date: Feb 2017
Posts: 6
Rep Power: 9 |
Thanks a lottt.
For the first question, I used zeroGradient for inlet, which seems OK. |
|
September 3, 2017, 08:34 |
|
#4 |
Senior Member
mohsen kh
Join Date: Jan 2013
Location: Iran
Posts: 125
Rep Power: 14 |
||
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[ICEM] Problems with coedge curves and surfaces | tommymoose | ANSYS Meshing & Geometry | 6 | December 1, 2020 12:12 |
Needed Benchmark Problems for FSI | Mechstud | Main CFD Forum | 4 | July 26, 2011 13:13 |
Two-phase air water flow problems by activating Wall Lubrication Force | challenger85 | CFX | 5 | November 5, 2009 06:44 |
InterDyMFoam and problem with setFields | chris_sev | OpenFOAM Running, Solving & CFD | 1 | March 23, 2009 22:23 |
Help required to solve Hydraulic related problems | aero | CFX | 0 | October 30, 2006 12:00 |