CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Programming & Development

coupling interfoam with solidParticleFoam

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 23, 2014, 08:24
Post coupling interfoam with solidParticleFoam
  #1
New Member
 
houwy
Join Date: Nov 2013
Posts: 21
Rep Power: 5
houwy is on a distinguished road
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 09:35.
houwy is offline   Reply With Quote

Old   April 24, 2014, 04:14
Default
  #2
New Member
 
houwy
Join Date: Nov 2013
Posts: 21
Rep Power: 5
houwy is on a distinguished road
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
Attached Files
File Type: gz solidParticle.tar.gz (54.2 KB, 8 views)

Last edited by wyldckat; April 24, 2014 at 15:47. Reason: Added [CODE][/CODE]
houwy is offline   Reply With Quote

Old   April 24, 2014, 15:46
Default
  #3
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,978
Blog Entries: 39
Rep Power: 108
wyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of light
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
wyldckat is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiphase Solid Particle Tracking alexlupo OpenFOAM Running, Solving & CFD 90 July 10, 2017 02:32
Remeshing_ ANSYS 14.0_ System Coupling acdesa ANSYS 4 November 2, 2016 10:12
InterFoam stops after deltaT goes to 1e14 francesco_b OpenFOAM Running, Solving & CFD 8 July 31, 2013 02:29
interFoam vs. simpleFoam channel flow comparison DanM OpenFOAM Running, Solving & CFD 11 January 5, 2013 07:21
one/two way coupling of DPM Angela FLUENT 3 April 28, 2008 09:29


All times are GMT -4. The time now is 21:16.