|
[Sponsors] |
May 14, 2012, 11:30 |
Error compiling new drag model
|
#1 |
New Member
Khurram
Join Date: Aug 2010
Posts: 10
Rep Power: 16 |
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.. |
|
May 14, 2012, 19:01 |
|
#2 |
Senior Member
Kyle Mooney
Join Date: Jul 2009
Location: San Francisco, CA USA
Posts: 323
Rep Power: 18 |
Have you tried running 'wclean' first? Also, what does the 'Make/files' contain?
|
|
May 15, 2012, 10:16 |
|
#3 |
New Member
Khurram
Join Date: Aug 2010
Posts: 10
Rep Power: 16 |
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.
|
|
June 27, 2012, 05:55 |
|
#4 |
Member
wided
Join Date: Jul 2010
Posts: 54
Rep Power: 16 |
sometimes you need to check if the *.C file has the same name as you gave your executable in the "file" document.
Good luck |
|
June 27, 2012, 07:41 |
|
#5 |
Disabled
Join Date: Mar 2011
Posts: 174
Rep Power: 15 |
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 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 ./ EDIT: Cool, I just realised this was a rather old post. Anyway, I hope someone will find it useful. |
|
Tags |
dependencies, drag, openfoam 2.1.0 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
about Subgrid-scale model | impecca | OpenFOAM Running, Solving & CFD | 4 | December 20, 2013 11:36 |
drag calculation of a car model by phoenics | mukut | Phoenics | 2 | January 9, 2010 19:07 |
multiphase model and drag law | Yasmail AKARIOUH | FLUENT | 0 | April 29, 2008 08:44 |
multiphase flow modelling, Drag model | Anant | CFX | 1 | February 4, 2008 05:18 |
Laminar wing profiles and drag | gregorv | OpenFOAM Running, Solving & CFD | 4 | December 4, 2007 14:25 |