CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

swirlinjector

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree3Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 1, 2009, 22:03
Default swirlinjector
  #1
Member
 
amin
Join Date: May 2009
Posts: 62
Rep Power: 16
az1362f is on a distinguished road
Hello to all,

I used swirlinjector for simulating dieselfoam solver in aachenbomb case instead of unitinjector but I face this error:

/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Exec : dieselFoam
Date : Jun 01 2009
Time : 17:57:59
Host : spray
PID : 25432
Case : /home/openfoam1.5/OpenFOAM/openfoam1.5-1.5/run/tutorials/dieselFoam/aachenBomb
nProcs : 1

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0


Reading thermophysicalProperties
Selecting thermodynamics package hMixtureThermo<reactingMixture>
Selecting chemistryReader chemkinReader
Reading field U

Reading/calculating face flux field phi

Creating turbulence model.

Selecting RAS turbulence model kEpsilon
kEpsilonCoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
C3 -0.33;
alphah 1;
alphak 1;
alphaEps 0.76923;
muLimiter on;
Lsgs 0.0002;
}

Creating field DpDt

Constructing chemical mechanism
Selecting ODE solver SIBS
chemistryModel::chemistryModel: Number of species = 6 and reactions = 1

Reading environmentalProperties
Reading combustion properties

Constructing Spray
Selecting injectorType swirlInjector
Selecting atomizationModel off
Selecting dragModel standardDragModel
Selecting evaporationModel off
Selecting heatTransferModel RanzMarshall
Selecting wallModel reflect
Selecting breakupModel ReitzKHRT
Selecting collisionModel off
Selecting dispersionModel off
*** glibc detected *** dieselFoam: free(): invalid next size (fast): 0x0853b3f8 ***
======= Backtrace: =========
/lib/libc.so.6[0xb69bc4b6]
/lib/libc.so.6(cfree+0x89)[0xb69be179]
/home/openfoam1.5/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux/lib/libstdc++.so.6(_ZdlPv+0x21)[0xb6b85051]
/home/openfoam1.5/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux/lib/libstdc++.so.6(_ZNSs4_Rep10_M_destroyERKSaIcE+0x1d )[0xb6b6361d]
/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libOpenFOAM.so(_ZN4Foam10dictionary3addEPNS_5entry Eb+0x52c)[0xb6cff45c]
/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libOpenFOAM.so(_ZN4Foam10dictionary3addERKNS_4word ERKS0_b+0x5c)[0xb6cffeac]
/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libOpenFOAM.so(_ZN4Foam7IOerror4exitEi+0x153)[0xb6cb7a03]
/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libOpenFOAM.so(_ZNK4Foam10dictionary11lookupEntryE RKNS_4wordEb+0xec)[0xb6cfd98c]
/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libOpenFOAM.so(_ZNK4Foam10dictionary6lookupERKNS_4 wordEb+0x2c)[0xb6cfd9cc]
/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libliquidMixture.so(_ZN4Foam13liquidMixtureC1ERKNS _10dictionaryE+0x821)[0xb70b1061]
/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libliquidMixture.so(_ZN4Foam13liquidMixture3NewERK NS_10dictionaryE+0x3a)[0xb70b13fa]
/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libdieselSpray.so(_ZN4Foam5sprayC1ERKNS_21volPoint InterpolationERKNS_14GeometricFieldINS_6VectorIdEE NS_12fvPatchFieldENS_7volMeshEEERKNS4_IdS7_S8_EESE _SE_RKNS_17combustionMixtureERKNS_7PtrListINS_19su therlandTransportINS_12specieThermoINS_11janafTher moINS_10perfectGasEEEEEEEEERKNS_10dictionaryESV_+0 x3f5)[0xb714a925]
dieselFoam[0x805edd4]
/lib/libc.so.6(__libc_start_main+0xe0)[0xb696bfe0]
dieselFoam(_ZNK4Foam11regIOobject11writeObjectENS_ 8IOstream12streamFormatENS1_13versionNumberENS1_15 compressionTypeE+0xcd)[0x805d021]
======= Memory map: ========
08048000-080be000 r-xp 00000000 08:0a 6275793 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/applications/bin/linuxGccDPOpt/dieselFoam
080be000-080bf000 r--p 00076000 08:0a 6275793 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/applications/bin/linuxGccDPOpt/dieselFoam
080bf000-080c0000 rw-p 00077000 08:0a 6275793 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/applications/bin/linuxGccDPOpt/dieselFoam
080c0000-08562000 rw-p 080c0000 00:00 0 [heap]
b6100000-b6121000 rw-p b6100000 00:00 0
b6121000-b6200000 ---p b6121000 00:00 0
b627a000-b63d3000 rw-p b627a000 00:00 0
b63d3000-b6408000 r--s 00000000 08:09 1231203 /var/run/nscd/passwd
b6408000-b640a000 rw-p b6408000 00:00 0
b640a000-b640c000 r-xp 00000000 08:09 1855055 /lib/libutil-2.6.1.so
b640c000-b640e000 rw-p 00001000 08:09 1855055 /lib/libutil-2.6.1.so
b640e000-b640f000 rw-p b640e000 00:00 0
b640f000-b6422000 r-xp 00000000 08:09 1855032 /lib/libnsl-2.6.1.so
b6422000-b6424000 rw-p 00012000 08:09 1855032 /lib/libnsl-2.6.1.so
b6424000-b6426000 rw-p b6424000 00:00 0
b6426000-b645b000 r-xp 00000000 08:0a 6358081 /home/openfoam1.5/OpenFOAM/ThirdParty/openmpi-1.2.6/platforms/linuxGccDPOpt/lib/libopen-pal.so.0.0.0
b645b000-b645c000 r--p 00034000 08:0a 6358081 /home/openfoam1.5/OpenFOAM/ThirdParty/openmpi-1.2.6/platforms/linuxGccDPOpt/lib/libopen-pal.so.0.0.0
b645c000-b645d000 rw-p 00035000 08:0a 6358081 /home/openfoam1.5/OpenFOAM/ThirdParty/openmpi-1.2.6/platforms/linuxGccDPOpt/lib/libopen-pal.so.0.0.0
b645d000-b647f000 rw-p b645d000 00:00 0
b647f000-b64cf000 r-xp 00000000 08:0a 6358083 /home/openfoam1.5/OpenFOAM/ThirdParty/openmpi-1.2.6/platforms/linuxGccDPOpt/lib/libopen-rte.so.0.0.0
b64cf000-b64d0000 r--p 00050000 08:0a 6358083 /home/openfoam1.5/OpenFOAM/ThirdParty/openmpi-1.2.6/platforms/linuxGccDPOpt/lib/libopen-rte.so.0.0.0
b64d0000-b64d2000 rw-p 00051000 08:0a 6358083 /home/openfoam1.5/OpenFOAM/ThirdParty/openmpi-1.2.6/platforms/linuxGccDPOpt/lib/libopen-rte.so.0.0.0
b64d2000-b6571000 r-xp 00000000 08:0a 6214169 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libLESfilters.so
b6571000-b6573000 r--p 0009e000 08:0a 6214169 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libLESfilters.so
b6573000-b6574000 rw-p 000a0000 08:0a 6214169 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libLESfilters.so
b6574000-b6575000 rw-p b6574000 00:00 0
b6575000-b65e4000 r-xp 00000000 08:0a 6358070 /home/openfoam1.5/OpenFOAM/ThirdParty/openmpi-1.2.6/platforms/linuxGccDPOpt/lib/libmpi.so.0.0.0
b65e4000-b65e5000 r--p 0006e000 08:0a 6358070 /home/openfoam1.5/OpenFOAM/ThirdParty/openmpi-1.2.6/platforms/linuxGccDPOpt/lib/libmpi.so.0.0.0
b65e5000-b65ec000 rw-p 0006f000 08:0a 6358070 /home/openfoam1.5/OpenFOAM/ThirdParty/openmpi-1.2.6/platforms/linuxGccDPOpt/lib/libmpi.so.0.0.0
b65ec000-b65f2000 rw-p b65ec000 00:00 0
b65f2000-b6606000 r-xp 00000000 08:0a 6214141 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libz.so
b6606000-b6607000 r--p 00013000 08:0a 6214141 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libz.so
b6607000-b6608000 rw-p 00014000 08:0a 6214141 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libz.so
b6608000-b662e000 r-xp 00000000 08:0a 6214167 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libLESdeltas.so
b662e000-b662f000 r--p 00026000 08:0a 6214167 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libLESdeltas.so
b662f000-b6630000 rw-p 00027000 08:0a 6214167 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libLESdeltas.so
b6630000-b6734000 r-xp 00000000 08:0a 6214185 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libcompressibleLESModels.so
b6734000-b6737000 r--p 00103000 08:0a 6214185 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.Aborted
openfoam1.5@spray:~/OpenFOAM/openfoam1.5-1.5/run/tutorials/dieselFoam/aachenBomb>

what is the problem?
is it related to injector model that i used?I used hollowconeinjector model as injector model.

please help me.
az1362f is offline   Reply With Quote

Old   June 2, 2009, 12:00
Question swirl injector
  #2
Member
 
amin
Join Date: May 2009
Posts: 62
Rep Power: 16
az1362f is on a distinguished road
Hello to all,

I used swirlinjector for simulating dieselfoam solver in aachenbomb case instead of unitinjector but I face this error:

/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Exec : dieselFoam
Date : Jun 01 2009
Time : 17:57:59
Host : spray
PID : 25432
Case : /home/openfoam1.5/OpenFOAM/openfoam1.5-1.5/run/tutorials/dieselFoam/aachenBomb
nProcs : 1

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0


Reading thermophysicalProperties
Selecting thermodynamics package hMixtureThermo<reactingMixture>
Selecting chemistryReader chemkinReader
Reading field U

Reading/calculating face flux field phi

Creating turbulence model.

Selecting RAS turbulence model kEpsilon
kEpsilonCoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
C3 -0.33;
alphah 1;
alphak 1;
alphaEps 0.76923;
muLimiter on;
Lsgs 0.0002;
}

Creating field DpDt

Constructing chemical mechanism
Selecting ODE solver SIBS
chemistryModel::chemistryModel: Number of species = 6 and reactions = 1

Reading environmentalProperties
Reading combustion properties

Constructing Spray
Selecting injectorType swirlInjector
Selecting atomizationModel off
Selecting dragModel standardDragModel
Selecting evaporationModel off
Selecting heatTransferModel RanzMarshall
Selecting wallModel reflect
Selecting breakupModel ReitzKHRT
Selecting collisionModel off
Selecting dispersionModel off
*** glibc detected *** dieselFoam: free(): invalid next size (fast): 0x0853b3f8 ***
======= Backtrace: =========
/lib/libc.so.6[0xb69bc4b6]
/lib/libc.so.6(cfree+0x89)[0xb69be179]
/home/openfoam1.5/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux/lib/libstdc++.so.6(_ZdlPv+0x21)[0xb6b85051]
/home/openfoam1.5/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux/lib/libstdc++.so.6(_ZNSs4_Rep10_M_destroyERKSaIcE+0x1d )[0xb6b6361d]
/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libOpenFOAM.so(_ZN4Foam10dictionary3addEPNS_5entry Eb+0x52c)[0xb6cff45c]
/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libOpenFOAM.so(_ZN4Foam10dictionary3addERKNS_4word ERKS0_b+0x5c)[0xb6cffeac]
/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libOpenFOAM.so(_ZN4Foam7IOerror4exitEi+0x153)[0xb6cb7a03]
/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libOpenFOAM.so(_ZNK4Foam10dictionary11lookupEntryE RKNS_4wordEb+0xec)[0xb6cfd98c]
/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libOpenFOAM.so(_ZNK4Foam10dictionary6lookupERKNS_4 wordEb+0x2c)[0xb6cfd9cc]
/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libliquidMixture.so(_ZN4Foam13liquidMixtureC1ERKNS _10dictionaryE+0x821)[0xb70b1061]
/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libliquidMixture.so(_ZN4Foam13liquidMixture3NewERK NS_10dictionaryE+0x3a)[0xb70b13fa]
/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libdieselSpray.so(_ZN4Foam5sprayC1ERKNS_21volPoint InterpolationERKNS_14GeometricFieldINS_6VectorIdEE NS_12fvPatchFieldENS_7volMeshEEERKNS4_IdS7_S8_EESE _SE_RKNS_17combustionMixtureERKNS_7PtrListINS_19su therlandTransportINS_12specieThermoINS_11janafTher moINS_10perfectGasEEEEEEEEERKNS_10dictionaryESV_+0 x3f5)[0xb714a925]
dieselFoam[0x805edd4]
/lib/libc.so.6(__libc_start_main+0xe0)[0xb696bfe0]
dieselFoam(_ZNK4Foam11regIOobject11writeObjectENS_ 8IOstream12streamFormatENS1_13versionNumberENS1_15 compressionTypeE+0xcd)[0x805d021]
======= Memory map: ========
08048000-080be000 r-xp 00000000 08:0a 6275793 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/applications/bin/linuxGccDPOpt/dieselFoam
080be000-080bf000 r--p 00076000 08:0a 6275793 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/applications/bin/linuxGccDPOpt/dieselFoam
080bf000-080c0000 rw-p 00077000 08:0a 6275793 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/applications/bin/linuxGccDPOpt/dieselFoam
080c0000-08562000 rw-p 080c0000 00:00 0 [heap]
b6100000-b6121000 rw-p b6100000 00:00 0
b6121000-b6200000 ---p b6121000 00:00 0
b627a000-b63d3000 rw-p b627a000 00:00 0
b63d3000-b6408000 r--s 00000000 08:09 1231203 /var/run/nscd/passwd
b6408000-b640a000 rw-p b6408000 00:00 0
b640a000-b640c000 r-xp 00000000 08:09 1855055 /lib/libutil-2.6.1.so
b640c000-b640e000 rw-p 00001000 08:09 1855055 /lib/libutil-2.6.1.so
b640e000-b640f000 rw-p b640e000 00:00 0
b640f000-b6422000 r-xp 00000000 08:09 1855032 /lib/libnsl-2.6.1.so
b6422000-b6424000 rw-p 00012000 08:09 1855032 /lib/libnsl-2.6.1.so
b6424000-b6426000 rw-p b6424000 00:00 0
b6426000-b645b000 r-xp 00000000 08:0a 6358081 /home/openfoam1.5/OpenFOAM/ThirdParty/openmpi-1.2.6/platforms/linuxGccDPOpt/lib/libopen-pal.so.0.0.0
b645b000-b645c000 r--p 00034000 08:0a 6358081 /home/openfoam1.5/OpenFOAM/ThirdParty/openmpi-1.2.6/platforms/linuxGccDPOpt/lib/libopen-pal.so.0.0.0
b645c000-b645d000 rw-p 00035000 08:0a 6358081 /home/openfoam1.5/OpenFOAM/ThirdParty/openmpi-1.2.6/platforms/linuxGccDPOpt/lib/libopen-pal.so.0.0.0
b645d000-b647f000 rw-p b645d000 00:00 0
b647f000-b64cf000 r-xp 00000000 08:0a 6358083 /home/openfoam1.5/OpenFOAM/ThirdParty/openmpi-1.2.6/platforms/linuxGccDPOpt/lib/libopen-rte.so.0.0.0
b64cf000-b64d0000 r--p 00050000 08:0a 6358083 /home/openfoam1.5/OpenFOAM/ThirdParty/openmpi-1.2.6/platforms/linuxGccDPOpt/lib/libopen-rte.so.0.0.0
b64d0000-b64d2000 rw-p 00051000 08:0a 6358083 /home/openfoam1.5/OpenFOAM/ThirdParty/openmpi-1.2.6/platforms/linuxGccDPOpt/lib/libopen-rte.so.0.0.0
b64d2000-b6571000 r-xp 00000000 08:0a 6214169 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libLESfilters.so
b6571000-b6573000 r--p 0009e000 08:0a 6214169 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libLESfilters.so
b6573000-b6574000 rw-p 000a0000 08:0a 6214169 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libLESfilters.so
b6574000-b6575000 rw-p b6574000 00:00 0
b6575000-b65e4000 r-xp 00000000 08:0a 6358070 /home/openfoam1.5/OpenFOAM/ThirdParty/openmpi-1.2.6/platforms/linuxGccDPOpt/lib/libmpi.so.0.0.0
b65e4000-b65e5000 r--p 0006e000 08:0a 6358070 /home/openfoam1.5/OpenFOAM/ThirdParty/openmpi-1.2.6/platforms/linuxGccDPOpt/lib/libmpi.so.0.0.0
b65e5000-b65ec000 rw-p 0006f000 08:0a 6358070 /home/openfoam1.5/OpenFOAM/ThirdParty/openmpi-1.2.6/platforms/linuxGccDPOpt/lib/libmpi.so.0.0.0
b65ec000-b65f2000 rw-p b65ec000 00:00 0
b65f2000-b6606000 r-xp 00000000 08:0a 6214141 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libz.so
b6606000-b6607000 r--p 00013000 08:0a 6214141 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libz.so
b6607000-b6608000 rw-p 00014000 08:0a 6214141 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libz.so
b6608000-b662e000 r-xp 00000000 08:0a 6214167 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libLESdeltas.so
b662e000-b662f000 r--p 00026000 08:0a 6214167 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libLESdeltas.so
b662f000-b6630000 rw-p 00027000 08:0a 6214167 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libLESdeltas.so
b6630000-b6734000 r-xp 00000000 08:0a 6214185 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libcompressibleLESModels.so
b6734000-b6737000 r--p 00103000 08:0a 6214185 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.Aborted
openfoam1.5@spray:~/OpenFOAM/openfoam1.5-1.5/run/tutorials/dieselFoam/aachenBomb>

what is the problem?
is it related to injector model that i used?I used hollowconeinjector model as injector model.

please help me.
az1362f is offline   Reply With Quote

Old   June 3, 2009, 02:46
Default
  #3
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29
niklas will become famous soon enoughniklas will become famous soon enough
did it work before you changed injector type?

what is the temperature of the gas and liquid ?
niklas is offline   Reply With Quote

Old   June 3, 2009, 11:26
Question swirl injector
  #4
Member
 
amin
Join Date: May 2009
Posts: 62
Rep Power: 16
az1362f is on a distinguished road
Hello Dear Dr;

before every things I am thankful for your replies dear.
yes it worked even when I changed injector type to commonrail injector and it still worked,but when I changed injector type to swirlinjector and just copy and paste swirlInjectorProps instead of commonRailInjectorProps in injectorProperties file,it generated this error.
I am confused.
is it related to injector model?should I change injector model to pressure swirl?

thanks
With Best Regard
az1362f is offline   Reply With Quote

Old   June 3, 2009, 11:29
Default pressure swirl injector model
  #5
Member
 
amin
Join Date: May 2009
Posts: 62
Rep Power: 16
az1362f is on a distinguished road
It seems that I have to define three parameter for pressure swirl injector including:1-ConeAngle 2-ConeInterval 3-maxKv?do I have to define any more parameters?
what are these constant in the pressure swirl model:1-ConeInterval 2-maxKv?
Is there any reference or article that explain this model?

thanks
best regard
az1362f is offline   Reply With Quote

Old   June 4, 2009, 02:18
Default
  #6
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29
niklas will become famous soon enoughniklas will become famous soon enough
Quote:
Originally Posted by az1362f View Post
It seems that I have to define three parameter for pressure swirl injector including:1-ConeAngle 2-ConeInterval 3-maxKv?do I have to define any more parameters?
what are these constant in the pressure swirl model:1-ConeInterval 2-maxKv?
Is there any reference or article that explain this model?

thanks
best regard
again...
check the source file if you are uncertain about things.
src/lagrangian/dieselSpray/spraySubModels/injectorModel/pressureSwirl/pressureSwirlInjector.C

coneAngle is the umbrellaAngle for the spray and coneInterval is the sprayAngle. I dont know if those terms are clearer or not.
but if you consult the source code the injected parcel will have the angle
calculated like this
Code:
    scalar c = rndGen_.scalar01();
    angle_ = coneAngle_[n]  + 2.0 * coneInterval_[n] * (0.5 - c) ;
maxKv is the injectors maximum allowed discharge coeffients,
which is used to calculate the velocity

Code:
   scalar v = kV * sqrt(2.0*deltaPressure/rhoFuel);
niklas is offline   Reply With Quote

Old   June 4, 2009, 07:52
Question
  #7
Member
 
amin
Join Date: May 2009
Posts: 62
Rep Power: 16
az1362f is on a distinguished road
Quote:
Originally Posted by niklas View Post
again...
did it work before you changed injector type?

what is the temperature of the gas and liquid ?
[/CODE]
Hello Dear Dr;

before every things I am thankful for your replies dear.
yes it worked even when I changed injector type to commonrail injector and it still worked,but when I changed injector type to swirlinjector and just copy and paste swirlInjectorProps instead of commonRailInjectorProps in injectorProperties file,it generated this error.tempretures is the same as original commonrailprops.
I am confused.I don't know what is my mistake.
is it related to injector model?should I change injector model to pressure swirl?

thanks
With Best Regard
az1362f is offline   Reply With Quote

Old   June 6, 2009, 08:37
Question swirl injector bug
  #8
Member
 
amin
Join Date: May 2009
Posts: 62
Rep Power: 16
az1362f is on a distinguished road
Hi

I used swirlinjector for simulating dieselfoam solver in aachenbomb case instead of unitinjector but I face this error:

/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Exec : dieselFoam
Date : Jun 01 2009
Time : 17:57:59
Host : spray
PID : 25432
Case : /home/openfoam1.5/OpenFOAM/openfoam1.5-1.5/run/tutorials/dieselFoam/aachenBomb
nProcs : 1

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0


Reading thermophysicalProperties
Selecting thermodynamics package hMixtureThermo<reactingMixture>
Selecting chemistryReader chemkinReader
Reading field U

Reading/calculating face flux field phi

Creating turbulence model.

Selecting RAS turbulence model kEpsilon
kEpsilonCoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
C3 -0.33;
alphah 1;
alphak 1;
alphaEps 0.76923;
muLimiter on;
Lsgs 0.0002;
}

Creating field DpDt

Constructing chemical mechanism
Selecting ODE solver SIBS
chemistryModel::chemistryModel: Number of species = 6 and reactions = 1

Reading environmentalProperties
Reading combustion properties

Constructing Spray
Selecting injectorType swirlInjector
Selecting atomizationModel off
Selecting dragModel standardDragModel
Selecting evaporationModel off
Selecting heatTransferModel RanzMarshall
Selecting wallModel reflect
Selecting breakupModel ReitzKHRT
Selecting collisionModel off
Selecting dispersionModel off
*** glibc detected *** dieselFoam: free(): invalid next size (fast): 0x0853b3f8 ***
======= Backtrace: =========
/lib/libc.so.6[0xb69bc4b6]
/lib/libc.so.6(cfree+0x89)[0xb69be179]
/home/openfoam1.5/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux/lib/libstdc++.so.6(_ZdlPv+0x21)[0xb6b85051]
/home/openfoam1.5/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux/lib/libstdc++.so.6(_ZNSs4_Rep10_M_destroyERKSaIcE+0x1d )[0xb6b6361d]
/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libOpenFOAM.so(_ZN4Foam10dictionary3addEPNS_5entry Eb+0x52c)[0xb6cff45c]
/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libOpenFOAM.so(_ZN4Foam10dictionary3addERKNS_4word ERKS0_b+0x5c)[0xb6cffeac]
/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libOpenFOAM.so(_ZN4Foam7IOerror4exitEi+0x153)[0xb6cb7a03]
/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libOpenFOAM.so(_ZNK4Foam10dictionary11lookupEntryE RKNS_4wordEb+0xec)[0xb6cfd98c]
/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libOpenFOAM.so(_ZNK4Foam10dictionary6lookupERKNS_4 wordEb+0x2c)[0xb6cfd9cc]
/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libliquidMixture.so(_ZN4Foam13liquidMixtureC1ERKNS _10dictionaryE+0x821)[0xb70b1061]
/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libliquidMixture.so(_ZN4Foam13liquidMixture3NewERK NS_10dictionaryE+0x3a)[0xb70b13fa]
/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libdieselSpray.so(_ZN4Foam5sprayC1ERKNS_21volPoint InterpolationERKNS_14GeometricFieldINS_6VectorIdEE NS_12fvPatchFieldENS_7volMeshEEERKNS4_IdS7_S8_EESE _SE_RKNS_17combustionMixtureERKNS_7PtrListINS_19su therlandTransportINS_12specieThermoINS_11janafTher moINS_10perfectGasEEEEEEEEERKNS_10dictionaryESV_+0 x3f5)[0xb714a925]
dieselFoam[0x805edd4]
/lib/libc.so.6(__libc_start_main+0xe0)[0xb696bfe0]
dieselFoam(_ZNK4Foam11regIOobject11writeObjectENS_ 8IOstream12streamFormatENS1_13versionNumberENS1_15 compressionTypeE+0xcd)[0x805d021]
======= Memory map: ========
08048000-080be000 r-xp 00000000 08:0a 6275793 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/applications/bin/linuxGccDPOpt/dieselFoam
080be000-080bf000 r--p 00076000 08:0a 6275793 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/applications/bin/linuxGccDPOpt/dieselFoam
080bf000-080c0000 rw-p 00077000 08:0a 6275793 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/applications/bin/linuxGccDPOpt/dieselFoam
080c0000-08562000 rw-p 080c0000 00:00 0 [heap]
b6100000-b6121000 rw-p b6100000 00:00 0
b6121000-b6200000 ---p b6121000 00:00 0
b627a000-b63d3000 rw-p b627a000 00:00 0
b63d3000-b6408000 r--s 00000000 08:09 1231203 /var/run/nscd/passwd
b6408000-b640a000 rw-p b6408000 00:00 0
b640a000-b640c000 r-xp 00000000 08:09 1855055 /lib/libutil-2.6.1.so
b640c000-b640e000 rw-p 00001000 08:09 1855055 /lib/libutil-2.6.1.so
b640e000-b640f000 rw-p b640e000 00:00 0
b640f000-b6422000 r-xp 00000000 08:09 1855032 /lib/libnsl-2.6.1.so
b6422000-b6424000 rw-p 00012000 08:09 1855032 /lib/libnsl-2.6.1.so
b6424000-b6426000 rw-p b6424000 00:00 0
b6426000-b645b000 r-xp 00000000 08:0a 6358081 /home/openfoam1.5/OpenFOAM/ThirdParty/openmpi-1.2.6/platforms/linuxGccDPOpt/lib/libopen-pal.so.0.0.0
b645b000-b645c000 r--p 00034000 08:0a 6358081 /home/openfoam1.5/OpenFOAM/ThirdParty/openmpi-1.2.6/platforms/linuxGccDPOpt/lib/libopen-pal.so.0.0.0
b645c000-b645d000 rw-p 00035000 08:0a 6358081 /home/openfoam1.5/OpenFOAM/ThirdParty/openmpi-1.2.6/platforms/linuxGccDPOpt/lib/libopen-pal.so.0.0.0
b645d000-b647f000 rw-p b645d000 00:00 0
b647f000-b64cf000 r-xp 00000000 08:0a 6358083 /home/openfoam1.5/OpenFOAM/ThirdParty/openmpi-1.2.6/platforms/linuxGccDPOpt/lib/libopen-rte.so.0.0.0
b64cf000-b64d0000 r--p 00050000 08:0a 6358083 /home/openfoam1.5/OpenFOAM/ThirdParty/openmpi-1.2.6/platforms/linuxGccDPOpt/lib/libopen-rte.so.0.0.0
b64d0000-b64d2000 rw-p 00051000 08:0a 6358083 /home/openfoam1.5/OpenFOAM/ThirdParty/openmpi-1.2.6/platforms/linuxGccDPOpt/lib/libopen-rte.so.0.0.0
b64d2000-b6571000 r-xp 00000000 08:0a 6214169 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libLESfilters.so
b6571000-b6573000 r--p 0009e000 08:0a 6214169 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libLESfilters.so
b6573000-b6574000 rw-p 000a0000 08:0a 6214169 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libLESfilters.so
b6574000-b6575000 rw-p b6574000 00:00 0
b6575000-b65e4000 r-xp 00000000 08:0a 6358070 /home/openfoam1.5/OpenFOAM/ThirdParty/openmpi-1.2.6/platforms/linuxGccDPOpt/lib/libmpi.so.0.0.0
b65e4000-b65e5000 r--p 0006e000 08:0a 6358070 /home/openfoam1.5/OpenFOAM/ThirdParty/openmpi-1.2.6/platforms/linuxGccDPOpt/lib/libmpi.so.0.0.0
b65e5000-b65ec000 rw-p 0006f000 08:0a 6358070 /home/openfoam1.5/OpenFOAM/ThirdParty/openmpi-1.2.6/platforms/linuxGccDPOpt/lib/libmpi.so.0.0.0
b65ec000-b65f2000 rw-p b65ec000 00:00 0
b65f2000-b6606000 r-xp 00000000 08:0a 6214141 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libz.so
b6606000-b6607000 r--p 00013000 08:0a 6214141 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libz.so
b6607000-b6608000 rw-p 00014000 08:0a 6214141 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libz.so
b6608000-b662e000 r-xp 00000000 08:0a 6214167 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libLESdeltas.so
b662e000-b662f000 r--p 00026000 08:0a 6214167 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libLESdeltas.so
b662f000-b6630000 rw-p 00027000 08:0a 6214167 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libLESdeltas.so
b6630000-b6734000 r-xp 00000000 08:0a 6214185 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libcompressibleLESModels.so
b6734000-b6737000 r--p 00103000 08:0a 6214185 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.Aborted
openfoam1.5@spray:~/OpenFOAM/openfoam1.5-1.5/run/tutorials/dieselFoam/aachenBomb>

error is :

*** glibc detected *** dieselFoam: free(): invalid next size (fast): 0x0853b3f8 ***

or in some case:

*** glibc detected *** dieselFoam: malloc(): memory corruption (fast): 0x0b5a3a70 ***


I changed several injector model but none of them worked.
it seems that dieselfoam has a bug.
could any body help me.
it is my injectorproperties file that I used:

please help me it is urgent.
thanks
Attached Files
File Type: zip injectorProperties.zip (920 Bytes, 18 views)
az1362f is offline   Reply With Quote

Old   June 6, 2009, 08:41
Question swirl injector bug
  #9
Member
 
amin
Join Date: May 2009
Posts: 62
Rep Power: 16
az1362f is on a distinguished road
Hi

I used swirlinjector for simulating dieselfoam solver in aachenbomb case instead of unitinjector but I face this error:

/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Exec : dieselFoam
Date : Jun 01 2009
Time : 17:57:59
Host : spray
PID : 25432
Case : /home/openfoam1.5/OpenFOAM/openfoam1.5-1.5/run/tutorials/dieselFoam/aachenBomb
nProcs : 1

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0


Reading thermophysicalProperties
Selecting thermodynamics package hMixtureThermo<reactingMixture>
Selecting chemistryReader chemkinReader
Reading field U

Reading/calculating face flux field phi

Creating turbulence model.

Selecting RAS turbulence model kEpsilon
kEpsilonCoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
C3 -0.33;
alphah 1;
alphak 1;
alphaEps 0.76923;
muLimiter on;
Lsgs 0.0002;
}

Creating field DpDt

Constructing chemical mechanism
Selecting ODE solver SIBS
chemistryModel::chemistryModel: Number of species = 6 and reactions = 1

Reading environmentalProperties
Reading combustion properties

Constructing Spray
Selecting injectorType swirlInjector
Selecting atomizationModel off
Selecting dragModel standardDragModel
Selecting evaporationModel off
Selecting heatTransferModel RanzMarshall
Selecting wallModel reflect
Selecting breakupModel ReitzKHRT
Selecting collisionModel off
Selecting dispersionModel off
*** glibc detected *** dieselFoam: free(): invalid next size (fast): 0x0853b3f8 ***
======= Backtrace: =========
/lib/libc.so.6[0xb69bc4b6]
/lib/libc.so.6(cfree+0x89)[0xb69be179]
/home/openfoam1.5/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux/lib/libstdc++.so.6(_ZdlPv+0x21)[0xb6b85051]
/home/openfoam1.5/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux/lib/libstdc++.so.6(_ZNSs4_Rep10_M_destroyERKSaIcE+0x1d )[0xb6b6361d]
/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libOpenFOAM.so(_ZN4Foam10dictionary3addEPNS_5entry Eb+0x52c)[0xb6cff45c]
/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libOpenFOAM.so(_ZN4Foam10dictionary3addERKNS_4word ERKS0_b+0x5c)[0xb6cffeac]
/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libOpenFOAM.so(_ZN4Foam7IOerror4exitEi+0x153)[0xb6cb7a03]
/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libOpenFOAM.so(_ZNK4Foam10dictionary11lookupEntryE RKNS_4wordEb+0xec)[0xb6cfd98c]
/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libOpenFOAM.so(_ZNK4Foam10dictionary6lookupERKNS_4 wordEb+0x2c)[0xb6cfd9cc]
/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libliquidMixture.so(_ZN4Foam13liquidMixtureC1ERKNS _10dictionaryE+0x821)[0xb70b1061]
/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libliquidMixture.so(_ZN4Foam13liquidMixture3NewERK NS_10dictionaryE+0x3a)[0xb70b13fa]
/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libdieselSpray.so(_ZN4Foam5sprayC1ERKNS_21volPoint InterpolationERKNS_14GeometricFieldINS_6VectorIdEE NS_12fvPatchFieldENS_7volMeshEEERKNS4_IdS7_S8_EESE _SE_RKNS_17combustionMixtureERKNS_7PtrListINS_19su therlandTransportINS_12specieThermoINS_11janafTher moINS_10perfectGasEEEEEEEEERKNS_10dictionaryESV_+0 x3f5)[0xb714a925]
dieselFoam[0x805edd4]
/lib/libc.so.6(__libc_start_main+0xe0)[0xb696bfe0]
dieselFoam(_ZNK4Foam11regIOobject11writeObjectENS_ 8IOstream12streamFormatENS1_13versionNumberENS1_15 compressionTypeE+0xcd)[0x805d021]
======= Memory map: ========
08048000-080be000 r-xp 00000000 08:0a 6275793 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/applications/bin/linuxGccDPOpt/dieselFoam
080be000-080bf000 r--p 00076000 08:0a 6275793 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/applications/bin/linuxGccDPOpt/dieselFoam
080bf000-080c0000 rw-p 00077000 08:0a 6275793 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/applications/bin/linuxGccDPOpt/dieselFoam
080c0000-08562000 rw-p 080c0000 00:00 0 [heap]
b6100000-b6121000 rw-p b6100000 00:00 0
b6121000-b6200000 ---p b6121000 00:00 0
b627a000-b63d3000 rw-p b627a000 00:00 0
b63d3000-b6408000 r--s 00000000 08:09 1231203 /var/run/nscd/passwd
b6408000-b640a000 rw-p b6408000 00:00 0
b640a000-b640c000 r-xp 00000000 08:09 1855055 /lib/libutil-2.6.1.so
b640c000-b640e000 rw-p 00001000 08:09 1855055 /lib/libutil-2.6.1.so
b640e000-b640f000 rw-p b640e000 00:00 0
b640f000-b6422000 r-xp 00000000 08:09 1855032 /lib/libnsl-2.6.1.so
b6422000-b6424000 rw-p 00012000 08:09 1855032 /lib/libnsl-2.6.1.so
b6424000-b6426000 rw-p b6424000 00:00 0
b6426000-b645b000 r-xp 00000000 08:0a 6358081 /home/openfoam1.5/OpenFOAM/ThirdParty/openmpi-1.2.6/platforms/linuxGccDPOpt/lib/libopen-pal.so.0.0.0
b645b000-b645c000 r--p 00034000 08:0a 6358081 /home/openfoam1.5/OpenFOAM/ThirdParty/openmpi-1.2.6/platforms/linuxGccDPOpt/lib/libopen-pal.so.0.0.0
b645c000-b645d000 rw-p 00035000 08:0a 6358081 /home/openfoam1.5/OpenFOAM/ThirdParty/openmpi-1.2.6/platforms/linuxGccDPOpt/lib/libopen-pal.so.0.0.0
b645d000-b647f000 rw-p b645d000 00:00 0
b647f000-b64cf000 r-xp 00000000 08:0a 6358083 /home/openfoam1.5/OpenFOAM/ThirdParty/openmpi-1.2.6/platforms/linuxGccDPOpt/lib/libopen-rte.so.0.0.0
b64cf000-b64d0000 r--p 00050000 08:0a 6358083 /home/openfoam1.5/OpenFOAM/ThirdParty/openmpi-1.2.6/platforms/linuxGccDPOpt/lib/libopen-rte.so.0.0.0
b64d0000-b64d2000 rw-p 00051000 08:0a 6358083 /home/openfoam1.5/OpenFOAM/ThirdParty/openmpi-1.2.6/platforms/linuxGccDPOpt/lib/libopen-rte.so.0.0.0
b64d2000-b6571000 r-xp 00000000 08:0a 6214169 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libLESfilters.so
b6571000-b6573000 r--p 0009e000 08:0a 6214169 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libLESfilters.so
b6573000-b6574000 rw-p 000a0000 08:0a 6214169 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libLESfilters.so
b6574000-b6575000 rw-p b6574000 00:00 0
b6575000-b65e4000 r-xp 00000000 08:0a 6358070 /home/openfoam1.5/OpenFOAM/ThirdParty/openmpi-1.2.6/platforms/linuxGccDPOpt/lib/libmpi.so.0.0.0
b65e4000-b65e5000 r--p 0006e000 08:0a 6358070 /home/openfoam1.5/OpenFOAM/ThirdParty/openmpi-1.2.6/platforms/linuxGccDPOpt/lib/libmpi.so.0.0.0
b65e5000-b65ec000 rw-p 0006f000 08:0a 6358070 /home/openfoam1.5/OpenFOAM/ThirdParty/openmpi-1.2.6/platforms/linuxGccDPOpt/lib/libmpi.so.0.0.0
b65ec000-b65f2000 rw-p b65ec000 00:00 0
b65f2000-b6606000 r-xp 00000000 08:0a 6214141 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libz.so
b6606000-b6607000 r--p 00013000 08:0a 6214141 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libz.so
b6607000-b6608000 rw-p 00014000 08:0a 6214141 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libz.so
b6608000-b662e000 r-xp 00000000 08:0a 6214167 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libLESdeltas.so
b662e000-b662f000 r--p 00026000 08:0a 6214167 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libLESdeltas.so
b662f000-b6630000 rw-p 00027000 08:0a 6214167 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libLESdeltas.so
b6630000-b6734000 r-xp 00000000 08:0a 6214185 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libcompressibleLESModels.so
b6734000-b6737000 r--p 00103000 08:0a 6214185 /home/openfoam1.5/OpenFOAM/OpenFOAM-1.Aborted
openfoam1.5@spray:~/OpenFOAM/openfoam1.5-1.5/run/tutorials/dieselFoam/aachenBomb>

error is :

*** glibc detected *** dieselFoam: free(): invalid next size (fast): 0x0853b3f8 ***

or in some case:

*** glibc detected *** dieselFoam: malloc(): memory corruption (fast): 0x0b5a3a70 ***


I changed several injector model but none of them worked.
it seems that dieselfoam has a bug.
could any body help me?
I attach my injectorproperties file that I used.

please help me it is urgent.
thanks
Attached Files
File Type: zip injectorProperties.zip (920 Bytes, 10 views)
az1362f is offline   Reply With Quote

Old   June 8, 2009, 05:03
Question need help
  #10
Member
 
amin
Join Date: May 2009
Posts: 62
Rep Power: 16
az1362f is on a distinguished road
any body know how can I fix it?
az1362f is offline   Reply With Quote

Old   June 8, 2009, 07:31
Default
  #11
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29
niklas will become famous soon enoughniklas will become famous soon enough
yup, there was a bug in the swirlInjector.

If you have different number of entries in the pressureProfile and massFlowRateProfile it wouldnt work.
I've attached a fix to solve this problem

save the unzipped file in src/lagrangian/dieselSpray/injector/swirlInjector/

then go to src/lagrangian/dieselSpray
and run 'wmake libso'

then you should be able to run dieselFoam
Attached Files
File Type: gz swirlInjector.C.gz (2.6 KB, 28 views)
niklas is offline   Reply With Quote

Old   June 10, 2009, 11:18
Default need header file
  #12
Member
 
amin
Join Date: May 2009
Posts: 62
Rep Power: 16
az1362f is on a distinguished road
Hello Dear Dr ;

I am thank you for your kindly attention.

I did every things that you said but I faced error when I try to compile it with wmake libso command,I though that I have to change swirlInjector.h to fix this errors,I tried to do it but I can not completely fixed it.

I want you to please send me swirlInjector.h file,then I can fix it.

regard
Attached Files
File Type: zip swirlInjector.zip (2.0 KB, 8 views)
az1362f is offline   Reply With Quote

Old   June 11, 2009, 02:21
Default
  #13
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29
niklas will become famous soon enoughniklas will become famous soon enough
what on earth made you change the .h file??

I thought it was overwhelmingly obvious that you should save it as the .C file.
niklas is offline   Reply With Quote

Old   June 11, 2009, 07:18
Default change .h file to include class
  #14
Member
 
amin
Join Date: May 2009
Posts: 62
Rep Power: 16
az1362f is on a distinguished road
I did not change swirlInjector.c file to swirlInjector.h file.
after I copied swirlInjector.c to swirlInjector folder I tried to compiled it with wmake libso but it generated some errors like these :


Making dependency list for source file injector/swirlInjector/swirlInjector.C
SOURCE=injector/swirlInjector/swirlInjector.C ; g++ -m32 -Dlinux -DDP -Wall -Wn
o-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoReposi
tory -ftemplate-depth-40 -I/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/src/finiteVol
ume/lnInclude -I/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/src/lagrangian/basic/lnI
nclude -I/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/src/turbulenceModels/RAS/compre
ssible/lnInclude -I/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/src/turbulenceModels/
LES/LESdeltas/lnInclude -I/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/src/turbulence
Models/LES/compressible/lnInclude -I/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/src/
thermophysicalModels/basic/lnInclude -I/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/s
rc/thermophysicalModels/liquids/lnInclude -I/home/openfoam1.5/OpenFOAM/OpenFOAM-
1.5/src/thermophysicalModels/liquidMixture/lnInclude -I/home/openfoam1.5/OpenFOA
M/OpenFOAM-1.5/src/thermophysicalModels/thermophysicalFunctions/lnInclude -I/hom
e/openfoam1.5/OpenFOAM/OpenFOAM-1.5/src/thermophysicalModels/specie/lnInclude -I
/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/src/thermophysicalModels/combustion/lnIn
clude -I/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/src/thermophysicalModels/pdfs/ln
Include -IlnInclude -I. -I/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/l
nInclude -I/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/src/OSspecific/Unix/lnInclude
-fPIC -pthread -c $SOURCE -o Make/linuxGccDPOpt/swirlInjector.o
injector/swirlInjector/swirlInjector.C:190: error: prototype for ‘const Foam::ve
ctor Foam::swirlInjector: position(Foam::label) const’ does not match any in cla
ss ‘Foam::swirlInjector’
injector/swirlInjector/swirlInjector.H:161: error: candidates are: virtual Foam:
:vector Foam::swirlInjector: position(Foam::scalar, bool, Foam::scalar, const Fo
am::vector&, const Foam::vector&, const Foam::vector&, Foam::Random&) const
injector/swirlInjector/swirlInjector.H:149: error: virtual const
Foam::vector Foam::swirlInjector: position() const
injector/swirlInjector/swirlInjector.C:205: error: prototype for ‘Foam::vector F oam::swirlInjector: position(Foam::label, Foam::scalar, bool, Foam::scalar, cons t Foam::vector&, const Foam::vector&, const Foam::vector&, Foam::Random&) const’ does not match any in class ‘Foam::swirlInjector’
injector/swirlInjector/swirlInjector.H:161: error: candidates are: virtual Foam: :vector Foam::swirlInjector: position(Foam::scalar, bool, Foam::scalar, const Fo am::vector&, const Foam::vector&, const Foam::vector&, Foam::Random&) const
injector/swirlInjector/swirlInjector.H:149: error: virtual const Foam::vector Foam::swirlInjector: position() const
injector/swirlInjector/swirlInjector.C:240: error: no ‘Foam::label Foam::swirlIn jector::nHoles() const’ member function declared in class ‘Foam::swirlInjector’
injector/swirlInjector/swirlInjector.C:254: error: prototype for ‘const Foam::ve ctor& Foam::swirlInjector::direction(Foam::label, Foam::scalar) const’ does not match any in class ‘Foam::swirlInjector’
injector/swirlInjector/swirlInjector.H:167: error: candidate is: virtual const F oam::vector& Foam::swirlInjector::direction() const
injector/swirlInjector/swirlInjector.C:383: error: no ‘Foam::vector Foam::swirlI njector::tan1(Foam::label) const’ member function declared in class ‘Foam::swirl Injector’
injector/swirlInjector/swirlInjector.C:388: error: no ‘Foam::vector Foam::swirlI njector::tan2(Foam::label) const’ member function declared in class ‘Foam::swirl Injector’
make: *** [Make/linuxGccDPOpt/swirlInjector.o] Error 1


I thought that these errors are generated because I did not redefine the swirlInjector.h file to include new members that you add in swirlInjector.c file like:

Foam::label Foam::swirlInjector::nHoles() const
{
return 1;
}

and it did not declare in swirlInjector.h then the compiler generated this error:

injector/swirlInjector/swirlInjector.C:240: error: no ‘Foam::label Foam::swirlIn jector::nHoles() const’ member function declared in class ‘Foam::swirlInjector’
injector/swirlInjector/swirlInjector.C

then because of this I tried to change the swirlInjector.h file to declare new function and data member, but it still generated errors(last attached file). I want you to send me a suggestion or swirlInjector.h file.

thanks
with regard
az1362f is offline   Reply With Quote

Old   June 11, 2009, 07:24
Default
  #15
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29
niklas will become famous soon enoughniklas will become famous soon enough
ah, ok.

You are using 1.5.
please update to the latest git 1.5.x version.
the correction will already be there then.
niklas is offline   Reply With Quote

Old   June 11, 2009, 07:44
Default where can I downloa it
  #16
Member
 
amin
Join Date: May 2009
Posts: 62
Rep Power: 16
az1362f is on a distinguished road
thanks
Where can I download it?
az1362f is offline   Reply With Quote

Old   June 14, 2009, 04:58
Question liquid tip penetration
  #17
Member
 
amin
Join Date: May 2009
Posts: 62
Rep Power: 16
az1362f is on a distinguished road
hi

I implemented these line in dieselfoam solver to save liquid peneteration lenght in every time step,but my result showed an approximately a constant liquid penetration.(for example 10.xxxx)

std :: fstream penet
penet.open("penetration.txt",std::ios::app);
penet << dieselSpray.liquidPenetration(1.0)<<"\t"<<runTime. timeName()<<"\n"<<endl;
penet.close();

what is my mistake?
I used default setting of dieselfoam tutorials.
I attached a penetration result.
please help me.
Attached Files
File Type: txt penetration.txt (4.8 KB, 32 views)
az1362f is offline   Reply With Quote

Old   June 14, 2009, 15:43
Question liquid & gas properties
  #18
Member
 
amin
Join Date: May 2009
Posts: 62
Rep Power: 16
az1362f is on a distinguished road
hi

I solved my last problem.
I want to use a diesel fuel with density of 840 kg/m3 and nitrogen (N2) as a chamber gas.
how can I set this two parameters?
I checked C7H16 files (.C & .H) but I don't know some parameters,for example rho_(61.38396836, 0.26211, 540.2, 0.28141),I checked html document but it does not describe these parameters:

NSRDSfunc5 (scalar a, scalar b, scalar c, scalar d)

any body can describe them and say how can I get the description of another input parameters like
pv_(87.829, -6996.4, -9.8802, 7.2099e-06, 2),
hl_(540.20, 499121.791545248, 0.38795, 0, 0, 0),
cp_(540.20, 6.11976102401216, 3137.69909384855, 182.274175063868, -254.530511150515),etc.

can I set chamber gas by changing N2 and O2 files in 0 directory in dieselfoam tutorial directory?
how can I describe a chamber gas with a defined properties like density viscosity,etc?

please help me
regard
az1362f is offline   Reply With Quote

Old   June 15, 2009, 17:13
Question gas and liquid property
  #19
Member
 
amin
Join Date: May 2009
Posts: 62
Rep Power: 16
az1362f is on a distinguished road
hi

I solve my last problem but still I don't know how can I describe chamber gas?

for example for a chamber full of N2 as gas instead of air.
az1362f is offline   Reply With Quote

Old   June 16, 2009, 03:21
Default
  #20
Member
 
Michael
Join Date: Mar 2009
Posts: 48
Rep Power: 17
farbfilm is on a distinguished road
Hi,

did you check the 'thermophsicalProperties'?? There you can specify an inert gas!
I think, in the '0'-directory you can then define the composition of your gas (with the 'N2' or 'O2'-files etc.)!
farbfilm is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 03:32.