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

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

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread 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: 15
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, 08:54
Default
  #2
New Member
 
FengWei
Join Date: Jun 2013
Posts: 5
Rep Power: 13
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, 06:44
Default injectorsolidparticlefoam
  #3
ptr
New Member
 
rakesh
Join Date: Mar 2013
Posts: 3
Rep Power: 13
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, 06:46
Default
  #4
ptr
New Member
 
rakesh
Join Date: Mar 2013
Posts: 3
Rep Power: 13
ptr is on a distinguished road
do anybody knows the answer
ptr is offline   Reply With Quote

Old   May 25, 2016, 12:30
Question The same problem after 3 years! :(
  #5
New Member
 
Jovana Milenkovic
Join Date: May 2016
Posts: 2
Rep Power: 0
MJovana is on a distinguished road
Hello everyone!

Has anybody figure out this problem so far?
As I can see many people had experienced this error and notification.
Any luck with the solution?
I would appreciate if someone can help me, since I am quite new with this....

Thank you!
Cheers!
MJovana is offline   Reply With Quote

Old   February 28, 2018, 13:37
Default
  #6
Senior Member
 
Ali Shayegh
Join Date: Oct 2015
Posts: 131
Rep Power: 11
amuzeshi is on a distinguished road
Use the files below in Make directory.

options:


Code:
EXE_INC = \
-I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/turbulenceModels \
-I$(LIB_SRC)/turbulenceModels/incompressible/RAS/RASModel \
-I$(LIB_SRC)/transportModels \
-I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/lagrangian/basic/lnInclude \
-I$(LIB_SRC)/fvOptions/lnInclude \
-I$(LIB_SRC)/sampling/lnInclude





EXE_LIBS = \
-lincompressibleRASModels \
-lincompressibleTransportModels \
-lfiniteVolume \
-llagrangian \
-lincompressibleTurbulenceModel
files:

Code:
injectorSolidParticle.C
injectorSolidParticleIO.C
injectorSolidParticleCloud.C
injectorSolidParticleFoam.C

EXE = $(FOAM_USER_APPBIN)/injectorSolidParticleFoam
amuzeshi 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
Particle tracking issue with CFX rushabh ANSYS 1 November 4, 2010 14:48
Implementation Issue CFDN00b Main CFD Forum 0 September 3, 2009 05:28
Defining Solid Zones Not working elmcmaster FLUENT 3 May 22, 2009 08:14
PostChannelC compiling issue 15x podallaire OpenFOAM Bugs 2 October 13, 2008 16:16
about USER FORTRAN compiling issue CXL CFX 1 October 9, 2003 22:00


All times are GMT -4. The time now is 13:14.