|
[Sponsors] |
incompressibleTwoPhaseMixture call/constructor |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 1, 2013, 23:10 |
incompressibleTwoPhaseMixture call/constructor
|
#1 |
Member
Christian Butcher
Join Date: Jul 2013
Location: Japan
Posts: 85
Rep Power: 13 |
Hi,
I'm working on modifying the interFoam solver (OpenFoam 2.2.2 if it makes any difference?) and am currently reading through the (unmodified) source files and using the Doxygen documentation to try and gain some understanding. I'm a little confused by the incompressibleTwoPhaseMixture constructor(?) in createFields.H The section in question reads Code:
Info<< "Reading transportProperties\n" << endl; incompressibleTwoPhaseMixture twoPhaseProperties(U, phi); volScalarField& alpha1(twoPhaseProperties.alpha1()); volScalarField& alpha2(twoPhaseProperties.alpha2()); const dimensionedScalar& rho1 = twoPhaseProperties.rho1(); const dimensionedScalar& rho2 = twoPhaseProperties.rho2(); Code:
// Constructors //- Construct from components incompressibleTwoPhaseMixture ( const volVectorField& U, const surfaceScalarField& phi, const word& alpha1Name = "alpha1", const word& alpha2Name = "alpha2" ); If someone could explain how this is working, I'd appreciate it very much. (On a side note, there isn't a namespace using statement in createFields.H. Does this work because Foam::incompressibleTwoPhaseMixture::incompressibl eTwoPhaseMixture is the only possible call for that?) Thanks, Christian |
|
Tags |
constructor, interfoam, openfoam 2.2.2 |
Thread Tools | Search this Thread |
Display Modes | |
|
|