|
[Sponsors] |
August 7, 2008, 14:50 |
It would probably be helpful i
|
#21 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,902
Rep Power: 37 |
It would probably be helpful if you did actually declare/read gamma from file.
/Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request. |
|
August 8, 2008, 09:17 |
Ok, the tool is working now, b
|
#22 |
Senior Member
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20 |
Ok, the tool is working now, but I have to recompile each time I want to use another pair of lower and upper limits.
So, now I'm trying to make the tool work with the input from the shell. >> liquidPhaseVolumeFraction . . -lowerLimit 0 -upperLimit 0.015 -time 0 or somethin like that.. >> liquidPhaseVolumeFraction . . 0 0.015 -time 0 I don't know how these user inputs are treated, but I tried by putting these lines into my code, which I have altered from the patchAverage. argList::validArgs.append("lowerLimit"); argList::validArgs.append("upperLimit"); scalar lowerLimit(args.args()[3]); scalar upperLimit(args.args()[4]); Of course there are some problems regarding the classes: DPOpt/liquidPhaseVolumeFraction.o liquidPhaseVolumeFraction.C: In function 'int main(int, char**)': liquidPhaseVolumeFraction.C:64: error: cannot convert 'const Foam::string' to 'Foam::scalar' in initialization liquidPhaseVolumeFraction.C:65: error: cannot convert 'const Foam::string' to 'Foam::scalar' in initialization It looks like upper and lower limits are read as strings from the shell. Trying to make the variables work inside the code as scalar does not seem to work. So, where is the clue to read them from the shell as scalar, double or something similar and to be able to address the variables in the further code. Thanks so far. Greetings from rainy Germany.
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!" |
|
August 8, 2008, 09:21 |
Sorry, I have another question
|
#23 |
Senior Member
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20 |
Sorry, I have another question.
Niels, is your code calculating the phase fraction on the patch or on the whole 3D-domain (on the wedge in this case) ?
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!" |
|
August 21, 2008, 06:58 |
The snippet calculates the vol
|
#24 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,902
Rep Power: 37 |
The snippet calculates the volume fraction for the entire domain, as the forAll(gamma,gI) loops over all internal cells.
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Multi phase Volume fraction at inlet | F S | CFX | 1 | April 11, 2011 22:08 |
need references for Liquid-liquid two-phase flow | qunwuhe@hotmail.com | Main CFD Forum | 1 | December 8, 2009 04:32 |
How to set volume fraction in two phase flow | Kamel | FLUENT | 2 | March 23, 2007 01:06 |
How set volume fraction and species mass fraction | Reginaldo Cotto | FLUENT | 0 | August 31, 2006 05:58 |
Time-averaged phase volume fraction | dlaw | FLUENT | 5 | August 3, 2005 14:33 |