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

Adding collision to icoLagrangian foam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 12, 2006, 07:55
Default I'm adding collision to icola
  #1
New Member
 
alan fergus
Join Date: Mar 2009
Location: galway, ireland
Posts: 23
Rep Power: 17
alan_fergus is on a distinguished road
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
alan_fergus is offline   Reply With Quote

Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error while compiling icoLagrangian Foam sara OpenFOAM Running, Solving & CFD 32 February 6, 2013 08:45
About Collision Model taksue OpenFOAM Post-Processing 6 January 14, 2009 02:10
particle collision Sri FLUENT 0 November 28, 2006 03:07
DPM Collision UDF Dave FLUENT 0 October 23, 2006 04:14
droplet collision kiao FLUENT 0 May 29, 2005 23:01


All times are GMT -4. The time now is 02:19.