|
[Sponsors] |
June 5, 2014, 05:45 |
multiphaseInterFoam access to alpha.water
|
#1 | |
New Member
Martin K
Join Date: Jan 2013
Location: Germany
Posts: 28
Rep Power: 13 |
Hi all,
to modify the multiphaseInterFoam solver I'm trying to use alpha.water in the UEqn. How can I adress it? My approach: Code:
volScalarField& alphaWater = objectRegistry::lookupObject<volScalarField>("alpha.water"); Edit: Compilation error: Quote:
|
||
October 19, 2017, 22:26 |
|
#2 |
Member
Join Date: May 2017
Posts: 44
Rep Power: 9 |
Hi Martin,
Could you find answer to your question? I am trying to address alpha of my first phase. Thanks |
|
November 3, 2017, 07:45 |
|
#3 |
New Member
Gary
Join Date: Oct 2017
Posts: 4
Rep Power: 9 |
I am struggling with the same problem. Any help would be welcome!
|
|
November 3, 2017, 11:00 |
|
#4 |
Member
Join Date: May 2017
Posts: 44
Rep Power: 9 |
Hi Gary,
You have to include your changes e.g. new parameter in multiphaseMixture. |
|
November 8, 2017, 11:30 |
|
#5 |
New Member
Gary
Join Date: Oct 2017
Posts: 4
Rep Power: 9 |
Thanks for your comment, bbita. I tried it, but I did not get it to work. I am not an experienced programmer. Could you show me how you solved it?
|
|
November 8, 2017, 11:37 |
|
#6 |
Member
Join Date: May 2017
Posts: 44
Rep Power: 9 |
Hi gary,
It completely depends on the changes you want to apply in your code. I suggest you to understand different sections in the file. For instance, if you want to add a new parameter, you can do that similar to the way that rho is defined. |
|
November 9, 2017, 17:30 |
|
#7 |
New Member
JPeternel
Join Date: Oct 2014
Posts: 19
Rep Power: 12 |
Hay!
If i remember correctly, in interMultiphaseFoam, all the phase fields are stored in phases_ of multiphaseMixture. So accessing one of them would probably look like: volScalarField& alphaWater= mixture.phases()["water"]; mixture - name of multiphaseMixture class phases() - returns PtrDictionary<phase> phases_ ["sth"] - looks if there is a phase that has a name "sth" in phases_, and returns it hope it helps |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[DesignModeler] DesignModeler Scripting: How to get Full Command Access | ANT | ANSYS Meshing & Geometry | 53 | February 16, 2020 16:13 |
Online libraries - with access to Journals | momentum_waves | Main CFD Forum | 2 | December 12, 2007 11:08 |
UDF Data Access Macro | Woo Meng Wai | FLUENT | 0 | November 6, 2007 21:23 |
Access Density | Allan Walsh | FLUENT | 3 | October 4, 2005 08:55 |
access to variables at interface of porous media? | Mazyar | FLUENT | 0 | October 10, 2003 15:59 |