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

Compiling issue regarding to Solid Particle injector's(solidParticle) implementation

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 21, 2013, 23:30
Default Compiling issue regarding to Solid Particle injector's(solidParticle) implementation
  #1
Member
 
Guifan Li
Join Date: Apr 2011
Location: New York City, U.S.
Posts: 96
Rep Power: 6
liguifan is on a distinguished road
I am try to implement a solid particle injector based on solidParticles and simpleFoam.

After following some guide, now I comes up some errors that I can't solve. The error happens at where I added the code in my injectorSolidParticleCloud.C, which is renamed from solidParticleCloud.C
in the Foam::solidParticleCloud::move(const dimensionedVector& g) I added the code (red) as suggested.

Quote:
void Foam::injectorSolidParticleCloud::move(const dimensionedVector& g)
{
// Injector 1
//Set injection position (z=0 if 2d)
scalar posy=0.015;
scalar posz=0;
scalar posx=-0.0203;
vector pos = vector(posx,posy,posz);
//Set initial velocity vector
vector vel=vector(0,0,0);
//Particle diameter
scalar d = 1e-3;
// Find cell at specified injection position and add particle here
label cellI=mesh_.findCell(pos);
if(cellI>=0) {
injectorSolidParticle* ptr= new injectorSolidParticle(*this,pos,cellI,d,vel);
Cloud<injectorSolidParticle>::addParticle(ptr);
}



const volScalarField& rho = mesh_.lookupObject<const volScalarField>("rho");
const volVectorField& U = mesh_.lookupObject<const volVectorField>("U");
const volScalarField& nu = mesh_.lookupObject<const volScalarField>("nu");

interpolationCellPoint<scalar> rhoInterp(rho);
interpolationCellPoint<vector> UInterp(U);
interpolationCellPoint<scalar> nuInterp(nu);

injectorSolidParticle::trackingData
td(*this, rhoInterp, UInterp, nuInterp, g.value());

Cloud<injectorSolidParticle>::move(td, mesh_.time().deltaTValue());

}
Then the errors are:
Quote:
injectorSolidParticleCloud.C: In member function ‘void Foam::injectorSolidParticleCloud::move(const Foam::dimensionedVector&)’:
injectorSolidParticleCloud.C:87: error: no matching function for call to ‘Foam::injectorSolidParticle::injectorSolidParticl e(Foam::injectorSolidParticleCloud&, Foam::vector&, Foam::label&, Foam::scalar&, Foam::vector&)’
injectorSolidParticle.H:131: note: candidates are: Foam::injectorSolidParticle::injectorSolidParticle (const Foam:olyMesh&, Foam::Istream&, bool)
injectorSolidParticleI.H:45: note: Foam::injectorSolidParticle::injectorSolidParticle (const Foam:olyMesh&, const Foam::vector&, Foam::label, Foam::label, Foam::label, Foam::scalar, const Foam::vector&)
injectorSolidParticle.H:61: note: Foam::injectorSolidParticle::injectorSolidParticle (const Foam::injectorSolidParticle&)
make: *** [Make/linuxGccDPOpt/injectorSolidParticleCloud.o] Error 1
without the red part code, it compiles fine.
Can someone helps me???

Kind regards,
James
liguifan is offline   Reply With Quote

Old   June 5, 2013, 07:54
Default
  #2
New Member
 
FengWei
Join Date: Jun 2013
Posts: 5
Rep Power: 4
Fengwei is on a distinguished road
hi James :
I met the same problem like you. Have you solved the problem yet? how did you solve it?

thank you!
wei
Fengwei is offline   Reply With Quote

Old   June 25, 2013, 05:44
Default injectorsolidparticlefoam
  #3
ptr
New Member
 
rakesh
Join Date: Mar 2013
Posts: 2
Rep Power: 0
ptr is on a distinguished road
Dear friends

I also have the same problem with injectorsolidparticle. When compile it shows error as follows

injectorSolidParticleCloud.C: In member function âvoid Foam::injectorSolidParticleCloud::move(const Foam::dimensionedVector&)â:
injectorSolidParticleCloud.C:87: error: no matching function for call to âFoam::injectorSolidParticle::injectorSolidParticl e(Foam::injectorSolidParticleCloud&, Foam::vector&, Foam::label&, Foam::scalar&, Foam::vector&)â
injectorSolidParticle.H:131: note: candidates are: Foam::injectorSolidParticle::injectorSolidParticle (const Foam:olyMesh&, Foam::Istream&, bool)
injectorSolidParticleI.H:45: note: Foam::injectorSolidParticle::injectorSolidParticle (const Foam:olyMesh&, const Foam::vector&, Foam::label, Foam::label, Foam::label, Foam::scalar, const Foam::vector&)
injectorSolidParticle.H:61: note: Foam::injectorSolidParticle::injectorSolidParticle (const Foam::injectorSolidParticle&)
make: *** [Make/linux64GccDPOpt/injectorSolidParticleCloud.o] Error 1
ptr is offline   Reply With Quote

Old   June 25, 2013, 05:46
Default
  #4
ptr
New Member
 
rakesh
Join Date: Mar 2013
Posts: 2
Rep Power: 0
ptr is on a distinguished road
do anybody knows the answer
ptr 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
Particle tracking issue with CFX rushabh ANSYS 1 November 4, 2010 14:48
Implementation Issue CFDN00b Main CFD Forum 0 September 3, 2009 04:28
Defining Solid Zones Not working elmcmaster FLUENT 3 May 22, 2009 07:14
PostChannelC compiling issue 15x podallaire OpenFOAM Bugs 2 October 13, 2008 15:16
about USER FORTRAN compiling issue CXL CFX 1 October 9, 2003 21:00


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