15 IOdictionary PBEProperties
30 PBEProperties.lookup(
"PBESwitch")
32 Switch bubbleGrowthSurrogateSwitch
34 PBEProperties.lookup(
"bubbleGrowthSurrogateSwitch")
36 word PBEMethod(PBEProperties.lookup(
"PBEMethod"));
37 if( !(PBEMethod ==
"QMOM") )
39 FatalErrorIn(args.executable())
40 <<
"Invalid PBE solution method " << PBEMethod
44 word bubbleGrowthMode(PBEProperties.lookup(
"bubbleGrowthMode"));
47 !( bubbleGrowthMode ==
"twoNodes" 48 || bubbleGrowthMode ==
"meanRadius" 52 FatalErrorIn(args.executable())
53 <<
"Invalid bubble growth mode " << bubbleGrowthMode
54 <<
"\nValid modes are: " 60 scalar nNodes = readScalar(PBEProperties.lookup(
"nNodes"));
67 FatalErrorIn(args.executable())
68 <<
"Invalid number of quadrature nodes " << nNodes
72 volScalarField cellvolume
83 dimensionedScalar(
"zero", dimVolume, 0.0)
86 volVectorField cellcentroid
97 dimensionedVector(
"zero", dimLength, vector::zero)
100 Info<<
"Reading field mZero \n" << endl;
114 volScalarField::Internal mZeroSource
123 dimensionedScalar(
"mZeroSource", dimensionSet(0,0,-1,0,0,0,0), 0.0)
126 surfaceScalarField phic(mag(phi/mesh.magSf()));
127 phic = min(interface.cAlpha()*phic, max(phic));
128 surfaceScalarField phir(phic*interface.nHatf());
130 surfaceScalarField alpha1phir
132 fvc::interpolate(alpha1)*phir
135 Info<<
"Reading field mOne \n" << endl;
149 volScalarField::Internal mOneSource
158 dimensionedScalar(
"mOneSource", dimensionSet(0,0,-1,0,0,0,0), 0.0)
161 Info<<
"Reading field mTwo \n" << endl;
175 volScalarField::Internal mTwoSource
184 dimensionedScalar(
"mTwoSource", dimensionSet(0,0,-1,0,0,0,0), 0.0)
187 Info<<
"Reading field mThree \n" << endl;
188 volScalarField mThree
201 volScalarField::Internal mThreeSource
210 dimensionedScalar(
"mThreeSource", dimensionSet(0,0,-1,0,0,0,0), 0.0)
213 Info<<
"Reading field mFour \n" << endl;
227 volScalarField::Internal mFourSource
236 dimensionedScalar(
"mFourSource", dimensionSet(0,0,-1,0,0,0,0), 0.0)
239 Info<<
"Reading field mFive \n" << endl;
253 volScalarField::Internal mFiveSource
262 dimensionedScalar(
"mFiveSource", dimensionSet(0,0,-1,0,0,0,0), 0.0)
265 Info<<
"Reading field M0 \n" << endl;
279 Info<<
"Reading field M1 \n" << endl;
293 Info<<
"Reading field M2 \n" << endl;
307 Info<<
"Reading field M3 \n" << endl;
321 Info<<
"Reading field M4 \n" << endl;
335 Info<<
"Reading field M5 \n" << endl;
349 Info<<
"Reading fields weights and nodes \n" << endl;
350 volScalarField weight0
364 volScalarField weight1
403 volScalarField weight2
428 Info<<
"End of \"MomFields\"\n" << endl;