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

Can not add new drag force in Intermediate directory

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 29, 2015, 05:12
Default Can not add new drag force in Intermediate directory
  #1
New Member
 
Join Date: Apr 2015
Posts: 8
Rep Power: 10
xuebao123 is on a distinguished road
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?
xuebao123 is offline   Reply With Quote

Old   August 30, 2015, 13:19
Default
  #2
Senior Member
 
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 17
hk318i is on a distinguished road
Did you include the new lib in controlDict?
hk318i is offline   Reply With Quote

Old   August 30, 2015, 22:12
Default
  #3
New Member
 
Join Date: Apr 2015
Posts: 8
Rep Power: 10
xuebao123 is on a distinguished road
Quote:
Originally Posted by hk318i View Post
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.
xuebao123 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
How to add a source term (body force) to icoFoam? chris Liu OpenFOAM Programming & Development 4 October 27, 2014 16:38
Too high drag force dlugi91 FLUENT 2 January 11, 2014 10:35
Drag coefficent and Drag force DanoGC OpenFOAM Pre-Processing 1 March 22, 2013 05:28
Lift and drag force Arti Main CFD Forum 0 April 23, 2009 23:46
Airfoil Drag Force wowakai Main CFD Forum 3 October 13, 1998 20:27


All times are GMT -4. The time now is 21:33.