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

icoLagrangianFoam with enabled virtualMass

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 26, 2014, 04:37
Default icoLagrangianFoam with enabled virtualMass
  #1
Member
 
Alireza Atrian
Join Date: May 2014
Posts: 39
Rep Power: 12
ali_atrian is on a distinguished road
Hello Everybody
I want to add virtual Mass Force to the solver icoLagrangianFoam (in foam-exd 3.0)
I did the following changes, although I doubt in each step of that:
1. In src\lagrangian\intermediate\particleForces\particl eForces.C:
Code:
a.	Foam::vector Foam::particleForces::calcCoupled
b.	(
c.	    const label cellI,
d.	    const scalar dt,
e.	    const scalar rhoc,
f.	    const scalar rho,
g.	    const vector& Uc,
h.	    const vector& U
i.	) const
j.	{
k.	    vector Ftot = vector::zero;
l.	
m.	    // Virtual mass force
n.	    if (virtualMass_)
o.	    {
p.	        notImplemented
q.	        (
r.	            "Foam::particleForces::calcCoupled(...) - virtual mass force"
s.	        );
t.	//        Ftot += Cvm_*rhoc/rho*d(Uc - U)/dt;
u.	    }
1.1. Added ‘const scalar d’ before line i
1.2. Deleted lines o through s
1.3. Uncomment line t

2. In src\lagrangian\intermediate\particleForces\particl eForces.H :

Code:
a.	            //- Calculate action/reaction forces between carrier and particles
b.	            vector calcCoupled
c.	            (
d.	                const label cellI,
e.	                const scalar dt,
f.	                const scalar rhoc,
g.	                const scalar rho,
h.	                const vector& Uc,
i.	                const vector& U
j.	            ) const;
Added ‘const scalar d’ before line j

But when I ‘wmake libso’ the ‘intermediate’ directory in ordet to compile the ‘particleForce’ I will receive the following err:
Code:
particleForces/particleForces.C: In member function ‘Foam::vector Foam::particleForces::calcCoupled(Foam::label, Foam::scalar, Foam::scalar, Foam::scalar, const vector&, const vector&, Foam::scalar) const’:
particleForces/particleForces.C:155:39: error: ‘d’ cannot be used as a function
make: *** [Make/linuxGccDPOpt/particleForces.o] Error 1
make: *** Waiting for unfinished jobs....
does any one know where the problem is from and what I should do?
Thanks for any kind of help
ali_atrian is offline   Reply With Quote

Old   October 28, 2014, 12:53
Default
  #2
Member
 
Alireza Atrian
Join Date: May 2014
Posts: 39
Rep Power: 12
ali_atrian is on a distinguished road
oohh
pleasee someone give me a small hint
i myself think that 'const scalar d' is totally wrong why 'd' is the differentiate not a const scalar
but i really dont know what to doo
i thankfully appreciate any guidance
ali_atrian 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
icoLagrangianFoam OF1.6 myNewParticleSolver heavy_user OpenFOAM 23 June 2, 2020 03:18
how to find distribution field of reaction rates when CHEMKIN is enabled? EdgarasM FLUENT 1 February 18, 2019 10:41
[General] Building Paraview 4.1.0 with MPI and Python support reynoldsStress ParaView 10 July 27, 2017 09:38
Parallel using icoLagrangianFoam flying OpenFOAM Running, Solving & CFD 37 March 25, 2011 06:02
Particle diffusion in icoLagrangianFoam chegdan OpenFOAM Programming & Development 2 February 24, 2011 14:19


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