|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
shashank
Join Date: Jun 2012
Location: baton rogue , LA ,USA
Posts: 24
Rep Power: 2 ![]() |
hi,
I am new to openfoam, i need to set initial pressure field as function of height. i donot want to use setfields (uses third party software) to get the task done, can i use internalField nonuniform <List>; //but donot know how to set the list?? |
|
|
|
|
|
|
|
|
#2 | |
|
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,107
Rep Power: 30 ![]() ![]() |
Quote:
Setting that list can be done by hand using a text editor (but it is not practical ), by writing your own utility in C++ or using funkySetFields which is third party software
|
||
|
|
|
||
|
|
|
#3 | |
|
Senior Member
|
Quote:
is funkySetFields utility capable of setting a list of cells within a complex region? by complex region I mean not to be a common shape like rectangle or circle. is it possible to define user defined regions to select particular cells? Thank you, Mojtaba
__________________
Complex Heat & Flow Simulation Research Group |
||
|
|
|
||
|
|
|
#4 | |
|
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,107
Rep Power: 30 ![]() ![]() |
Quote:
If the complex region is written to disc as a cell zone or a cell set ... you're in business (but I think setFields can handle that too) If it is defined as a mixture of the above ... you're in business. Bottom line: you've got to be more specific about what you mean with "complex"
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
|
|
|
||
|
|
|
#5 | |
|
Senior Member
|
Quote:
well in my case, by complex I mean a region which is surrounded by multiple straight line borders. For instance this simple region, which is surrounded by these lines: y=-x+1 y=0 x=0 Thank you
__________________
Complex Heat & Flow Simulation Research Group |
||
|
|
|
||
|
|
|
#6 | |
|
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,107
Rep Power: 30 ![]() ![]() |
Quote:
![]() That can be easily done with a condition like this in funkySetFields: Code:
(pos().y>0) && (pos().x>0) && ((pos().x+pos().y)<1) Code:
funkySetFields -time 0 -field alpha -keepPatches -expression "1" -condition "<cond>" Code:
funkySetFields -time 0 -field alpha -keepPatches -expression "<cond> ? 1 : 0"
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
|
|
|
||
|
|
|
#7 | |
|
Senior Member
|
Quote:
This really helped. ![]() I have an another little problem. I want to set z0 values (roughness parameter) for this particular region. as you know z0 is not a field in OF like U or p. well you know these better than me ![]() Do you have any idea how I can set values for it? in nut file I have something like this: ground { type nutkAtmRoughWallFunction; z0 $z0; value uniform 0.0; } Can I use funkySetFields for setting the values of z0? Thank you
__________________
Complex Heat & Flow Simulation Research Group |
||
|
|
|
||
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| singularity? | mihaipruna | OpenFOAM Running, Solving & CFD | 5 | April 24, 2012 17:18 |
| chtMultiRegionSimpleFoam | javad814 | OpenFOAM | 1 | September 26, 2011 13:30 |
| Need help with boundary conditions: open to atmosphere | Wolle | OpenFOAM | 2 | April 11, 2011 07:32 |
| rhoSimpleFoam | claco | OpenFOAM | 7 | April 20, 2010 04:32 |
| RasInterFoam STRANGE RESULTS AT BOUNDARY | kumar2 | OpenFOAM Running, Solving & CFD | 8 | March 24, 2008 19:38 |