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

setFields problems

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes
  • 3 Post By Phicau
  • 1 Post By Phicau
  • 1 Post By yangzhuan

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   July 11, 2017, 08:47
Default setFields problems
  #1
New Member
 
Alice
Join Date: Jun 2017
Posts: 26
Rep Power: 8
yangzhuan is on a distinguished road
Hi,
I just learn openFOAM for a short time. And a problem has been bothering me for a week. Why my setFields is not work. My setFields is that.
defaultFieldValues
(
volScalarFieldValue alpha.water 0
);
regions
(
boxToCell
{
box (0 0 0) (1.0 0.1 0.1);
fieldValues
(
volScalarFieldValue alpha.water 1
);
}
);

This case is a channel od dimensions 1.00m*0.10m*0.15m(length, width, height). No matter how to change the boxToCell, there is nothing to change. Only the inlet is water. But i want a half water and the rest is air. I have seen many posts here. But there is still no solution. I really nead help.
Thank you!
Attached Images
File Type: png )[(I79%BBYBK)J05GQHZ1%F.png (8.3 KB, 63 views)
yangzhuan is offline   Reply With Quote

 


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 11:12
Needed Benchmark Problems for FSI Mechstud Main CFD Forum 4 July 26, 2011 12:13
Two-phase air water flow problems by activating Wall Lubrication Force challenger85 CFX 5 November 5, 2009 05:44
InterDyMFoam and problem with setFields chris_sev OpenFOAM Running, Solving & CFD 1 March 23, 2009 21:23
Help required to solve Hydraulic related problems aero CFX 0 October 30, 2006 11:00


All times are GMT -4. The time now is 14:35.