CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Can not add new drag force in Intermediate directory (https://www.cfd-online.com/Forums/openfoam-programming-development/158582-can-not-add-new-drag-force-intermediate-directory.html)

xuebao123 August 29, 2015 04:12

Can not add new drag force in Intermediate directory
 
I'm trying to add a new drag force,the step is:
1.in submodels/Kinematic/ParticleForces/Drag copy a drag model and rename it (rename the classes inside the file)
2.edit the supersonicDragForce.C and supersonicDragForce.H files
3.Open makeParcelForces.H
add #include "supersonicDragForce.H"
add makeParticleForceModelType(supersonicDragForce,Clo udType); \
4.cd src/lagrangian/intermediate
wclean and wmake

But when I running sprayFoam,I found that supersonicDragForce is not in available options.

Unknown particle force type supersonicDrag, constructor not in hash table

Valid particle force types are:

11
(
BrownianMotion
SRF
SaffmanMeiLiftForce
TomiyamaLift
gravity
nonInertialFrame
nonSphereDrag
paramagnetic
pressureGradient
sphereDrag
virtualMass
)

How can I solve this problem?

hk318i August 30, 2015 12:19

Did you include the new lib in controlDict?

xuebao123 August 30, 2015 21:12

Quote:

Originally Posted by hk318i (Post 561659)
Did you include the new lib in controlDict?

Thank you for the quickly reply!I made a serious mistake.I forgot to change the TypeName.Besides this mistake,I tried recompiling the lagrangian library and sprayFoam. Then the problem was solved.Only recompiling the intermediate library may led to my mistake.


All times are GMT -4. The time now is 08:43.