|
[Sponsors] |
Can not add new drag force in Intermediate directory |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 29, 2015, 04:12 |
Can not add new drag force in Intermediate directory
|
#1 |
New Member
Join Date: Apr 2015
Posts: 8
Rep Power: 11 |
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? |
|
August 30, 2015, 12:19 |
|
#2 |
Senior Member
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 17 |
Did you include the new lib in controlDict?
|
|
August 30, 2015, 21:12 |
|
#3 |
New Member
Join Date: Apr 2015
Posts: 8
Rep Power: 11 |
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.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to add a source term (body force) to icoFoam? | chris Liu | OpenFOAM Programming & Development | 4 | October 27, 2014 15:38 |
Too high drag force | dlugi91 | FLUENT | 2 | January 11, 2014 09:35 |
Drag coefficent and Drag force | DanoGC | OpenFOAM Pre-Processing | 1 | March 22, 2013 04:28 |
Lift and drag force | Arti | Main CFD Forum | 0 | April 23, 2009 22:46 |
Airfoil Drag Force | wowakai | Main CFD Forum | 3 | October 13, 1998 19:27 |