3d spray vs axisymmetric spray (dieselFoam)
I ran a 3d spray simulation in a cylindrical geometry using dieselFoam. No combustion. It ran fine and gave a satisfactory result.
Then I tried to simulate the same case using axisymmetric mesh with wedge BCs and 5deg wedge angle. I reduce the fuel mass flow rate by adjusting the "mass" in injectorProperties file to get the desired mfr as followed:
axisymmetric_mfr= 3d_mfr * 5/360
The log file gives a similar injection velocity as the 3d case:
"Average Velocity for injector 0: 27.1314 m/s, injection pressure = 3.90451 bar
Constructing two dimensional spray injection.Calculated angle of wedge is 5 deg."
However, when I did so, openFoam always complain with usual error message:
"attempt to use janafThermo<equationOfState> out of temperature range"
Has anyone seen similar situation?
in axisymmetric runs you dont have to adjust the mass, foam will do that for you.
just set the value it would have for a full 3d run.
I'm using OF 2.0.x. I'm trying to run the tutorial Aachen Bomb case but with a 4-degree, 2-D axisymmetry mesh. However, at half way through, I got this error message:
--> FOAM FATAL ERROR:
Hitting a wedge patch should not be possible.
From function void Foam::particle::hitWedgePatch(const wedgePolyPatch& wpp, TrackData&)
in file /home/kmpan/OpenFOAM/OpenFOAM-2.0.x/src/lagrangian/basic/lnInclude/particleTemplates.C at line 941.
#0 Foam::error::printStack(Foam::Ostream&) in "/home/kmpan/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#1 Foam::error::abort() in "/home/kmpan/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#2 void Foam::particle::hitWedgePatch<Foam::parcel::tracki ngData>(Foam::wedgePolyPatch const&, Foam::parcel::trackingData&) in "/home/kmpan/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libdieselSpray.so"
#3 double Foam::particle::trackToFace<Foam::parcel::tracking Data>(Foam::Vector<double> const&, Foam::parcel::trackingData&) in "/home/kmpan/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libdieselSpray.so"
#4 Foam::parcel::move(Foam::parcel::trackingData&, double) in "/home/kmpan/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libdieselSpray.so"
I guess using 'wedge' is the correct approach to produce the mesh but may I know if it's compatible with the diesel spray application?
Thanks in advance.
I have found the solution based on this document:
There is a little difference in the compilation though. I navigated to the location "OpenFOAM-2.0.x/src/lagrangian" and use "./Allwmake", instead of using "wmake libso" at the location "OpenFOAM-2.0.x/src/lagrangian/basic". I think that such way is to update those diesel spray libraries (in dieselFoam) as well. Looking forward to someone to confirm with me, or to correct me. ;)
I wondering if sprayFoam from OpenFoam 2.2.x has the same function of adjusting the mass like dieselFoam?
I found the adjustment codes in OpenFoam 1.6-ext. But I don't see that in sprayFoam in OpenFoam 2.2.x. Please correct me if i'm wrong. Anyway, any suggestion on how to introduce the correct mass with 2D sprayFoam case on O.F 2.2.x?
|All times are GMT -4. The time now is 11:31.|