CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

setFields problems

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

Like Tree1Likes
  • 1 Post By nimasam

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 29, 2017, 03:31
Default setFields problems
  #1
New Member
 
Neshat
Join Date: Feb 2017
Posts: 6
Rep Power: 9
Neshat is on a distinguished road
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
Neshat is offline   Reply With Quote

Old   September 2, 2017, 02:15
Default
  #2
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24
nimasam is on a distinguished road
Hi
both methods are possible and true, just continue simulation and see which one fit your purpose.
Neshat likes this.
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Old   September 2, 2017, 13:14
Default
  #3
New Member
 
Neshat
Join Date: Feb 2017
Posts: 6
Rep Power: 9
Neshat is on a distinguished road
Thanks a lottt.
For the first question, I used zeroGradient for inlet, which seems OK.
Neshat is offline   Reply With Quote

Old   September 3, 2017, 08:34
Default
  #4
Senior Member
 
mohsen kh
Join Date: Jan 2013
Location: Iran
Posts: 125
Rep Power: 14
m5m5kh is on a distinguished road
Quote:
Originally Posted by Neshat View Post
1) what should I write for inlet in alpha.water file?
Dear Neshat
you can use both zeroGradient and inletOutlet boundary condition.

For your second question, I agree with Nima.

good luck!!
m5m5kh is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 19:32.