CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Adding collision to icoLagrangian foam (http://www.cfd-online.com/Forums/openfoam-solving/59899-adding-collision-icolagrangian-foam.html)

alan_fergus December 12, 2006 08:55

I'm adding collision to icola
 
I'm adding collision to icolagrangianfoam. I am using the spray class as a referrence to how to do this but when i try to make my ptfoam i get an error as follows

SOURCE_DIR=.
SOURCE=IncompressibleCloud.C ; g++ -m32 -Dlinux -Wall -W -Wno-unused-parameter -Wold-style-cast -O3 -ffast-math -DNoRepository -ftemplate-depth-30 -I/home/alan/OpenFOAM/OpenFOAM-1.2/src/cfdTools/incompressible -I/home/alan/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude -I/home/alan/OpenFOAM/OpenFOAM-1.2/src/lagrangian/basic/lnInclude -I/home/alan/OpenFOAM/OpenFOAM-1.2/src/cfdTools/general/lnInclude -I/home/alan/OpenFOAM/OpenFOAM-1.2/src/finiteVolume/lnInclude -I/home/alan/OpenFOAM/alan-1.2/applications/solvers/multiphase/ptFoam/collisionM odel/InInclude -I/home/alan/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude -IlnInclude -I. -fPIC -pthread -c $SOURCE -o Make/linuxGcc4Opt/IncompressibleCloud.o
IncompressibleCloud.C: In constructor 'Foam::IncompressibleCloud::IncompressibleCloud(co nst Foam::volPointInterpolation&, const Foam::volVectorField&)':
IncompressibleCloud.C:75: error: no match for 'operator*' in '((Foam::IncompressibleCloud*)this)->Foam::IncompressibleCloud::cloudPropertie s_ * this'
/home/alan/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/tensorField.H:53: note: candidates are: Foam::tmp<foam::vectorfield> Foam::operator*(const Foam::tmp<foam::tensorfield>&)
/home/alan/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/tensorField.H:56: note: Foam::tmp<foam::tensorfield> Foam::operator*(const Foam::tmp<foam::vectorfield>&)
/home/alan/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/dimensionSet.H:194: note: Foam::dimensionSet Foam::operator*(const Foam::dimensionSet&, const Foam::dimensionSet&)
/home/alan/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/dimensionedScalar.H:58: note: Foam::dimensionedScalar Foam::operator*(const Foam::dimensionedScalar&, Foam::scalar)
/home/alan/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/dimensionedTensor.H:70: note: Foam::dimensionedVector Foam::operator*(const Foam::dimensionedTensor&)
/home/alan/OpenFOAM/OpenFOAM-1.2/src/OpenFOAM/lnInclude/dimensionedTensor.H:73: note: Foam::dimensionedTensor Foam::operator*(const Foam::dimensionedVector&)
IncompressibleCloud.H:128: warning: 'Foam::IncompressibleCloud::collisionModel_' will be initialized after
IncompressibleCloud.H:122: warning: 'Foam::dictionary Foam::IncompressibleCloud::interpolationSchemes_'
IncompressibleCloud.C:49: warning: when initialized here
make: *** [Make/linuxGcc4Opt/IncompressibleCloud.o] Error 1


this seems to be related to *this operator as in incompressiblecloud.c or in spray class as in spray.c

collisionModel_
(
collisionModel::New
(
sprayProperties_,
*this,
rndGen_
)
),


i have two questions i hope you can help me with

1 what exactly is *this and how does it work?

2 how do i get it to read newcollision.c so i can use a modeified o'rourkes model or modified trajectory model instead of the normal collision model

thanks
alan


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