try to creat Splash in PatchInteractionModel
I'm implementing Splash module as PatchInteractionModel. I am unable to understand the Correct function in every PatchInteractionModel implementation.Can anyone tell me from where Correct function is called and where I have to add my own functions besides Correct function
src / lagrangian / intermediate / submodels / Kinematic / PatchInteractionModel |
Unknown Patch Interaction Model
Hello everyone,
I am trying to implement a new model in Patch Interaction Model name Splash. I make a new correct function and make a new .C and .H file for splash. Then i add splash function in PatchInteraction model as they both are interconnected. Then i add these files in Intermediate folder replacing the old Patch Interaction Model files and also make a new folder for splash Model. I rename the Make file Quote:
wclean wmake libso Then compile a new solver without any error. But when i run it using the solver it give the following error : Quote:
|
1 Attachment(s)
I wouldn't recompile the whole Lagrangian intermediate library only for a new sub-model.
I attached a small example that shows you how to implement your own patch interaction model in a user defined library. Linking that library to a solver at compile or run-time is explained here (scroll down to the bottom of the page): http://www.openfoam.org/docs/user/co...plications.php |
Hi Armin,
Thanks , i already read that link and i had a problem in calling the model when i try to run it. I compile the library and solver and that was ok but it was not recognizing the new model but now i got it that i have to mention it also in BasicKinematicParcelsubmodle. but now i have some other problem because now it is not compiling the library. I just have one question in " How can i make changes in that or make new cloud type instead of correct Quote:
Can you just give me some hint or idea how can i make changes in that. Regards, Bilal |
Hi Bilal,
a very good and smooth way is
|
Hi Tobi,
Thanks for your time and reply. I done that what you have written here. but porblem is that when i change the necessary functions like in :: correct i add some more functions which i needed it will not take them and give error like "not declared in scope, or Not a type". So i make a new void-class-splash and its working now but when i want to use some equations from previous model then its says "shadow a vector" can you tell me how can i overcome this problem as my C++ is not strong. Thanks. Best regards, Bilal |
In that case I can not give you any hint - sorry.
|
All times are GMT -4. The time now is 07:50. |