|
[Sponsors] |
October 26, 2014, 04:37 |
icoLagrangianFoam with enabled virtualMass
|
#1 |
Member
Alireza Atrian
Join Date: May 2014
Posts: 39
Rep Power: 12 |
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.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; 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? |
|
October 28, 2014, 12:53 |
|
#2 |
Member
Alireza Atrian
Join Date: May 2014
Posts: 39
Rep Power: 12 |
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 |
|
|
|
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 |