Debugger + IDE for CFDEMCoupling (noob question)

Submitted by vinaym on Wed, 04/15/2015 - 17:43

Hello,

Like you all, I wish to dissect the CFDEMCoupling code. I want to know what debbuger + IDE you prefer?

I wanted to setup qtcreator. but we have three different folders from the installation (LIGGGHTS, CFDEM & OpenFOAM) and that makes it difficult to import it as one single project. I want to know how you all go around this?

Thanks and regards,
Vinay

Daniel Queteschiner | Thu, 04/16/2015 - 13:19

I'm using Qt Creator for pretty much all of my development tasks these days. I create individual projects for CFDEMcoupling and LIGGGHTS via 'Import Existing Project' and selecting the corresponding files and folders. Any external dependencies (e.g. OpenFOAM for CFDEMcoupling) can be resolved by adding the appropriate include directories to the .includes file. Multiple projects can be open at the same time in Qt Creator.

For debugging I'm using valgrind & gdb.

govind | Wed, 09/12/2018 - 07:57

Hello Everyone,

I am following this way to debug CFDEMCoupling solver:

Build dir: /home/govind/CFDEM/CFDEMcoupling-PUBLIC-5.x/applications/solvers/cfdemSolver
Build Steps:
command: wmake
Argument and working dir leave blank
In run settings:
Executable: /home/govind/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/bin/cfdemSolver
Working dir: /home/govind/CFDEM/CFDEMcoupling-PUBLIC-5.x/tutorials/cfdemSolver/settlingTestMPI

And cfdemSolver.includes file has:

/home/govind/OpenFOAM/OpenFOAM-5.x/src/OpenFOAM/lnInclude/
/home/govind/OpenFOAM/OpenFOAM-5.x/src/finiteVolume/lnInclude/
/home/govind/CFDEM/CFDEMcoupling-PUBLIC-5.x/applications/solvers/cfdemSolverVOF

Its not working out. Can anyone please let me know what I am missing or doing wrong?

Regards,
Govind

govind | Thu, 01/03/2019 - 10:29

I need help to setup CFDEM in debug mode. For debugging LIGGGHTS and OpenFOAM, I am using QTCREATOR. But not finding way to setup CFDEM in qt creator.

In build directory of build section, I give

.../application/solvers/cfdemSolverPiso

Build steps

Make arguements: wmake

But do not know what to give in command section as I give in openFoam "../bin/foamExec".

Run section configuration as follows:

Run configuration: ../CFDEM/platforms/linux64GcDPint32Opt/bin/cfdemSolverPiso
Executable: ./CFDEM/platforms/linux64GcDPint32Opt/bin/cfdemSolverPiso
working dire: CFDEM/tutorial/cfdemSolverPiso/settlingTest

CFDEMpiso.includes file contains:

../OpenFOAM-5.X/src/OpenFOAM/lnInclude/
../OpenFOAM-5.X/src/OpenFOAM/finiteVolume/lnInclude/
../CFDEM/application/solvers/cfdemSolverPiso/

Please tell me what should I am missing and how do I setup CFDEM in qtcreator.

Regards,
Govind Sharma
PhD Student,
Mechanical Department,
Indian Institute of Technology, India