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

Error compiling new drag model

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 14, 2012, 10:30
Default Error compiling new drag model
  #1
New Member
 
Khurram
Join Date: Aug 2010
Posts: 10
Rep Power: 15
deep_seak is on a distinguished road
Hi,
I am trying to introduce a new drag model in compressibleTwoPhaseEulerFoam solver but on executing the "wmake libso" command i get following error.
"No rule to make target 'dragModels/Mydragmodel/Mydragmodel.dep' , needed by 'Make/linuxGccDPOpt/dependencies' . Stop."

Please help me in this....

Thanks..
deep_seak is offline   Reply With Quote

Old   May 14, 2012, 18:01
Default
  #2
Senior Member
 
kmooney's Avatar
 
Kyle Mooney
Join Date: Jul 2009
Location: San Francisco, CA USA
Posts: 323
Rep Power: 17
kmooney is on a distinguished road
Have you tried running 'wclean' first? Also, what does the 'Make/files' contain?
kmooney is offline   Reply With Quote

Old   May 15, 2012, 09:16
Default
  #3
New Member
 
Khurram
Join Date: Aug 2010
Posts: 10
Rep Power: 15
deep_seak is on a distinguished road
Yes, i have tried running wclean first but of no use. The Make/files within the "interfacialModles" contains the declaration of different heat transfer and drag models which can be used. I have added the declaration for my drag model in it.
deep_seak is offline   Reply With Quote

Old   June 27, 2012, 04:55
Default
  #4
Member
 
wided
Join Date: Jul 2010
Posts: 54
Rep Power: 15
wiedangel is on a distinguished road
sometimes you need to check if the *.C file has the same name as you gave your executable in the "file" document.

Good luck
wiedangel is offline   Reply With Quote

Old   June 27, 2012, 06:41
Default
  #5
Disabled
 
Join Date: Mar 2011
Posts: 174
Rep Power: 15
anon_a is on a distinguished road
Sometimes you may also need to use a "make*" command in order to add your model to the tables containing the list of available models (I think these are called the runtime tables or something similar. But I could be very wrong).

For example, I frequently use the dsmcFoam solver. There exist various models for the inflow of molecules. If I want to make a new one, I should not only copy the directory closest to my case but I should add an entry in

Code:
src/lagrangian/dsmc/parcels/derived/dsmcParcel/makeDsmcParcelInflowBoundaryModels.C
so that it is known to the solver. Just check this file to see what I mean.

The easiest way to find what you need to do is to grep for an existing model.
E.g. if there was a "previousModel" you can just go to the main directory and type

Code:
grep -r previousModel ./
This should give you an idea of what is missing or what needs to be modified.

EDIT: Cool, I just realised this was a rather old post. Anyway, I hope someone will find it useful.
anon_a is offline   Reply With Quote

Reply

Tags
dependencies, drag, openfoam 2.1.0

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
about Subgrid-scale model impecca OpenFOAM Running, Solving & CFD 4 December 20, 2013 10:36
drag calculation of a car model by phoenics mukut Phoenics 2 January 9, 2010 18:07
multiphase model and drag law Yasmail AKARIOUH FLUENT 0 April 29, 2008 07:44
multiphase flow modelling, Drag model Anant CFX 1 February 4, 2008 04:18
Laminar wing profiles and drag gregorv OpenFOAM Running, Solving & CFD 4 December 4, 2007 13:25


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