|
[Sponsors] |
April 23, 2014, 09:24 |
coupling interfoam with solidParticleFoam
|
#1 |
New Member
houwy
Join Date: Nov 2013
Posts: 21
Rep Power: 13 |
Hi! Is anyone successfully compiled interfoam with solidParticleFoam?
http://www.tfd.chalmers.se/~hani/kur...LPT_120911.pdf I want to compile it in OF 2.2.0. while the author compiled it in OF 1.6. could anyone help me solve this problem? Thank you first. solidParticle.H inline solidParticle ( const polyMesh& mesh, const vector& position, const label cellI, const label tetFaceI, const label tetPtI, const scalar d, const vector& U ); solidParticleCloud.C void Foam::solidParticleCloud::inject(solidParticle::tr ackingData &td) { label cellI=mesh_.findCell(td.cloud().posP1_); // primitiveMesh::findCell() label tetFaceI=mesh_.findCellFacePt(td.cloud().posP1_,); label tetPtI=mesh_.findCellFacePt(td.cloud().posP1_ , ); solidParticle* ptr1=new solidParticle(*this,td.cloud().posP1_,cellI,tetFac eI,tetPtI,td.cloud().dP1_,td.cloud().UP1_); Cloud<solidParticle>::addParticle(ptr1); I want to know how to define the red words, it is error when I compile it. The error is below solidParticleCloud.C: In member function ‘void Foam::solidParticleCloud::inject(Foam::solidPartic le::trackingData&)’: solidParticleCloud.C:77:55: error: expected primary-expression before ‘)’ token solidParticleCloud.C:78:79: error: void value not ignored as it ought to be solidParticleCloud.C:80:116: error: no matching function for call to ‘Foam::solidParticle::solidParticle(Foam::solidPar ticleCloud&, Foam::vector&, Foam::label&, Foam::label&, Foam::label&, Foam::scalar&, Foam::vector&)’ solidParticleCloud.C:80:116: note: candidates are: Last edited by houwy; April 23, 2014 at 10:35. |
|
April 24, 2014, 05:14 |
|
#2 |
New Member
houwy
Join Date: Nov 2013
Posts: 21
Rep Power: 13 |
I hope someone can help me. Thank you first
When I wmake libso,there are some errors. Code:
solidParticleCloud.C: In member function ‘void Foam::solidParticleCloud::inject(Foam::solidPartic le::trackingData&)’: solidParticleCloud.C:81:34: error: no matching function for call to ‘Foam::solidParticle::solidParticle(Foam::solidPar ticleCloud&, Foam::vector&, Foam::label&, Foam::label&, Foam::label&, Foam::scalar&, Foam::vector&)’ solidParticleCloud.C:81:34: note: candidates are: solidParticle.H:135:9: note: Foam::solidParticle::solidParticle(const Foam:olyMesh&, Foam::Istream&, bool) solidParticle.H:135:9: note: candidate expects 3 arguments, 7 provided solidParticleI.H:47:8: note: Foam::solidParticle::solidParticle(const Foam:olyMesh&, const vector&, Foam::label, Foam::label, Foam::label, Foam::scalar, const vector&) solidParticleI.H:47:8: note: no known conversion for argument 1 from ‘Foam::solidParticleCloud’ to ‘const Foam:olyMesh&’ solidParticle.H:58:7: note: Foam::solidParticle::solidParticle(const Foam::solidParticle&) solidParticle.H:58:7: note: candidate expects 1 argument, 7 provided solidParticleCloud.C:85:34: error: no matching function for call to ‘Foam::solidParticle::solidParticle(Foam::solidPar ticleCloud&, Foam::vector&, Foam::label&, Foam::label&, Foam::label&, Foam::scalar&, Foam::vector&)’ solidParticleCloud.C:85:34: note: candidates are: solidParticle.H:135:9: note: Foam::solidParticle::solidParticle(const Foam:olyMesh&, Foam::Istream&, bool) solidParticle.H:135:9: note: candidate expects 3 arguments, 7 provided solidParticleI.H:47:8: note: Foam::solidParticle::solidParticle(const Foam:olyMesh&, const vector&, Foam::label, Foam::label, Foam::label, Foam::scalar, const vector&) solidParticleI.H:47:8: note: no known conversion for argument 1 from ‘Foam::solidParticleCloud’ to ‘const Foam:olyMesh&’ solidParticle.H:58:7: note: Foam::solidParticle::solidParticle(const Foam::solidParticle&) solidParticle.H:58:7: note: candidate expects 1 argument, 7 provided Last edited by wyldckat; April 24, 2014 at 16:47. Reason: Added [CODE][/CODE] |
|
April 24, 2014, 16:46 |
|
#3 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
For future readers: It looks like this has already been solved on this post: http://www.cfd-online.com/Forums/ope...tml#post487939 post #21
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Multiphase Solid Particle Tracking | alexlupo | OpenFOAM Running, Solving & CFD | 114 | March 17, 2022 21:52 |
InterFoam stops after deltaT goes to 1e14 | francesco_b | OpenFOAM Running, Solving & CFD | 9 | July 25, 2020 07:36 |
interFoam vs. simpleFoam channel flow comparison | DanM | OpenFOAM Running, Solving & CFD | 12 | January 31, 2020 16:26 |
Remeshing_ ANSYS 14.0_ System Coupling | acdesa | ANSYS | 4 | November 2, 2016 10:12 |
one/two way coupling of DPM | Angela | FLUENT | 3 | April 28, 2008 10:29 |