blobsSheetAtomization.C
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #include "error.H"
00028
00029 #include "blobsSheetAtomization.H"
00030 #include "addToRunTimeSelectionTable.H"
00031 #include "basicMultiComponentMixture.H"
00032
00033 #include "RosinRammler.H"
00034
00035
00036
00037 namespace Foam
00038 {
00039
00040
00041
00042 defineTypeNameAndDebug(blobsSheetAtomization, 0);
00043
00044 addToRunTimeSelectionTable
00045 (
00046 atomizationModel,
00047 blobsSheetAtomization,
00048 dictionary
00049 );
00050
00051
00052
00053
00054 blobsSheetAtomization::blobsSheetAtomization
00055 (
00056 const dictionary& dict,
00057 spray& sm
00058 )
00059 :
00060 atomizationModel(dict, sm),
00061 coeffsDict_(dict.subDict(typeName + "Coeffs")),
00062 B_(readScalar(coeffsDict_.lookup("B"))),
00063 angle_(readScalar(coeffsDict_.lookup("angle"))),
00064 rndGen_(sm.rndGen())
00065 {}
00066
00067
00068
00069
00070 blobsSheetAtomization::~blobsSheetAtomization()
00071 {}
00072
00073
00074
00075
00076 void blobsSheetAtomization::atomizeParcel
00077 (
00078 parcel& p,
00079 const scalar deltaT,
00080 const vector& vel,
00081 const liquidMixture& fuels
00082 ) const
00083 {
00084
00085 const PtrList<volScalarField>& Y = spray_.composition().Y();
00086
00087 label Ns = Y.size();
00088 label cellI = p.cell();
00089 scalar pressure = spray_.p()[cellI];
00090 scalar temperature = spray_.T()[cellI];
00091 scalar Taverage = p.T() + (temperature - p.T())/3.0;
00092
00093 scalar Winv = 0.0;
00094 for(label i=0; i<Ns; i++)
00095 {
00096 Winv += Y[i][cellI]/spray_.gasProperties()[i].W();
00097 }
00098 scalar R = specie::RR*Winv;
00099
00100
00101 scalar rhoAverage = pressure/R/Taverage;
00102 scalar sigma = fuels.sigma(pressure, p.T(), p.X());
00103
00104
00105
00106
00107
00108 scalar rhoFuel = fuels.rho(1.0e+5, p.T(), p.X());
00109
00110 scalar U = mag(p.Urel(vel));
00111
00112 const injectorType& it =
00113 spray_.injectors()[label(p.injector())].properties();
00114
00115 vector itPosition(vector::zero);
00116 label nHoles = it.nHoles();
00117 if (nHoles > 1)
00118 {
00119 for(label i=0; i<nHoles;i++)
00120 {
00121 itPosition += it.position(i);
00122 }
00123 itPosition /= nHoles;
00124 }
00125 else
00126 {
00127 itPosition = it.position(0);
00128 }
00129
00130
00131
00132 scalar lBU = B_ * sqrt
00133 (
00134 rhoFuel * sigma * p.d() * cos(angle_*mathematicalConstant::pi/360.0)
00135 / sqr(rhoAverage*U)
00136 );
00137
00138 scalar pWalk = mag(p.position() - itPosition);
00139
00140 if(pWalk > lBU && p.liquidCore() == 1.0)
00141 {
00142 p.liquidCore() = 0.0;
00143 }
00144 }
00145
00146
00147
00148
00149 }
00150
00151
Copyright © 2000-2009 OpenCFD Ltd