Error compiling new drag model
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.. |
Have you tried running 'wclean' first? Also, what does the 'Make/files' contain?
|
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.
|
sometimes you need to check if the *.C file has the same name as you gave your executable in the "file" document.
Good luck |
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. |
All times are GMT -4. The time now is 21:00. |