|
[Sponsors] |
January 28, 2007, 11:15 |
Hi
i am studing about the pr
|
#1 |
New Member
morteza
Join Date: Mar 2009
Posts: 18
Rep Power: 17 |
Hi
i am studing about the programming in openfoam and i don't know the effect of this line at the potentialFoam.C solver: argList::validOptions.insert("writep","") Thanks morteza |
|
January 28, 2007, 17:58 |
Start potentialFoam with no ca
|
#2 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Start potentialFoam with no case and no directory and you will be enlightend: in addition to complainig about the missing case/directory it will tell you that -writep is a perfectly valid option for that command. And why is it valid? Because the solver has been told so in the program line you mentioned.
What the option switches on/off, I don't know.
__________________
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 |
|
February 6, 2007, 08:27 |
Thank you Bernhard.
I started
|
#3 |
New Member
morteza
Join Date: Mar 2009
Posts: 18
Rep Power: 17 |
Thank you Bernhard.
I started potentialFoam with no case and directory and found what you say. Thanks Morteza |
|
February 6, 2007, 08:40 |
Hi bernard
Do you know how po
|
#4 |
New Member
morteza
Join Date: Mar 2009
Posts: 18
Rep Power: 17 |
Hi bernard
Do you know how potentialFoam solves these two equations: div(U)=0 laplacian(p)=0 as mentioned at programmers guide. at programmers guide we have this main line for solving these two equations: laplacian([0 0 1 0 0 0 ],p)=div(phi) where phi is U.A. Thanks morteza |
|
March 30, 2007, 06:10 |
Hello morteza!
This might b
|
#5 |
Member
Erik Arlemark
Join Date: Mar 2009
Location: Eindhoven, Netherlands
Posts: 47
Rep Power: 17 |
Hello morteza!
This might be a bit late but its a discusion on this on the following thread: http://www.cfd-online.com/cgi-bin/Op...how.cgi?1/4014 /Erik |
|
March 30, 2007, 06:13 |
Sorry the link didnt lead wher
|
#6 |
Member
Erik Arlemark
Join Date: Mar 2009
Location: Eindhoven, Netherlands
Posts: 47
Rep Power: 17 |
Sorry the link didnt lead where I thought it would.
Here is a thread I saved from the forum: Continuity Eq: div(U) = 0 and with source term: div(U) = S Discretised momentum eq. A*U = H - grad(p) -> U = H/A -(1/A)*grad(p) = Ustar - (1/A)*grad(p) H/A is the momentum-predictor value of U, ie Ustar. if we insert this in the continuity eq. it yields div(U) = div(Ustar - (1/A)*grad(p)) = S -> div(Ustar) - laplacian(1/A, p) = S or laplacian(1/A, p) = -S + div(phi) where phi is Ustar evaluated on faces. have a look at icoFoam and you will easily see where to insert S. /Erik |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|