|
[Sponsors] |
![]() |
![]() |
#1 |
Senior Member
Elham
Join Date: Oct 2009
Posts: 184
Rep Power: 16 ![]() |
Hi,
I have created a library named phaseChangeTwoPhaseMixtureI and I calculate a parameter within this, called Spv. To recall it in createFields.H file I tried different options as following which all do not work: 1. phaseChangeTwoPhaseMixtureI Spv(); 2. phaseChangeTwoPhaseMixtureI & Spv { return Spv_; } 3.phaseChangeTwoPhaseMixturesI sourceI(U, phi); volScalarField& Su = sourceTerm.Su(); 4.volScalarField& Sp = phaseChangeTwoPhaseMixturesI Sp(typeName, U, phi); I would appreciate if any one can help me to find the way. Regards, Elham |
|
![]() |
![]() |
![]() |
![]() |
#2 | |
Senior Member
Elham
Join Date: Oct 2009
Posts: 184
Rep Power: 16 ![]() |
Quote:
Code:
autoPtr<phaseChangeTwoPhaseMixtureI> mixtureI = phaseChangeTwoPhaseMixtureI::New(U, phi, mixture); Code:
tmp<volScalarField> Sp = mixtureI->Sp(); const volScalarField& Sp = Sp(); |
||
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
error in fireFoam, when running the case wallFireSpread2D | zhoubiao1088 | OpenFOAM Running, Solving & CFD | 9 | February 1, 2018 18:45 |
[foam-extend.org] Error compiling OpenFOAM-1.6-ext | Canesin | OpenFOAM Installation | 137 | January 20, 2016 14:56 |
Compilation error OF1.5-dev on Suse10.3 | darenyang | OpenFOAM Installation | 0 | April 29, 2009 04:55 |
[blockMesh] BlockMeshmergePatchPairs | hjasak | OpenFOAM Meshing & Mesh Conversion | 11 | August 15, 2008 07:36 |
OpenFOAM141dev linking error on IBM AIX 52 | matthias | OpenFOAM Installation | 24 | April 28, 2008 15:49 |