CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Openfoam-1.6-ext particle forces (http://www.cfd-online.com/Forums/openfoam-programming-development/104020-openfoam-1-6-ext-particle-forces.html)

jiejie July 2, 2012 03:22

Openfoam-1.6-ext particle forces
 
Dear foamers

I am trying to implement some forces models for Lagrangian particle tracking under Openfaom-1.6-ext. I did the same thing for openfoam 2.1.1. It was quite straight forward under 2.1.1, there are different force models under /src/lagrangian/intermediate/submodels/Kinematic/ParticleForces. However, I can only find OpenFOAM-1.6-ext/src/intermediate/submodels/Kinematic/DragModel in 1.6-ext. Can anyone point out how to implement a new force model in 1.6-ext?

Thanks

Jie

mayank.dce2k7 January 20, 2014 17:14

Hi Jie,

I am also trying to implement a new particle force model. Were you able to add a new force model directory and able to compile it? I am compiling a new library containing new force model and also recompiling the solver linking it to new library but on executing the solver I get the following error message:

--> FOAM FATAL ERROR:
Unknown particle force type newForce, constructor not in hash table

Valid particle force types are:

7
(
SRF
gravity
nonInertialFrame
nonSphereDrag
paramagnetic
pressureGradient
sphereDrag
)


From function ParticleForce<CloudType>::New(CloudType&, const fvMesh&, const dictionary&)
in file /home/mayank/OpenFOAM/mayank-2.1.1/platforms/linux64GccDPOpt/src/lagrangian/incompressible/intermediate/lnInclude/ParticleForceNew.C at line 55.

FOAM exiting

Any help would be appreciated. Thanks!



Regards,
Mayank.


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