Hi,
Can anybody tell me how to compile the changes made if we create a new solver similar to CfdemSolverPiso.
Please tell what all steps would be required as in making new folder, .C file, compiling etc.
Thanks a lot.
A project by DCS Computing and CFDEMresearch
This website uses cookies to ensure you get the best experience on our website. By continuing to browse the site you are agreeing to our use of cookies. This website uses cookies. By continuing to browse the site you are agreeing to our use of cookies. More info
blais.bruno | Mon, 02/17/2014 - 16:57
Creating a new solver
The easiest way is to copy an existing folder to a new folder.
Let's say you wish to create your own "mysolv" from cfdemSolverPiso.
Copy cfdemSolverPiso to a new folder. Rename the files (.c, .dep, .H) et don't forget to modify the Make/files to point to the right .C
Afterward, you have to replace cfdemSolverPiso with you "mysolv" within each files i.e : rewriting the constructor, destructor, etc. so that the function fits with the name of your solver.
This should be done for all files.
Afterward, you can simply compile the new solver by going to the "mysolv" directory and using wmake.
Cheers,
Bruno