add a new drag model in CFDEM coupling

Submitted by ljmutue on Thu, 06/28/2018 - 18:10

Hi all,

I want to add a new drag model in CFDEMcoupling. and the steps I followed are:
1. create a new folder named with the model in .../subModels/forceModel, and copy .C and .H files to the folder.
2. Modify the files file in the Make-folder by including the new model following scheme of the already existing ones ($(forceModels)/myNewModel/myNewModel.C)
3.recompile with "wclean" and "wmake libso"
When I compile I get the next errors:

g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3 -DNoRepository -ftemplate-depth-100 -DOMPI_SKIP_MPICXX -DGITVERSION=\"\" -DDEBUGFLAG=\"Opt\" -DCFDEMWMPROJECTVERSION="50" -DSUPERQUADRIC_ACTIVE_FLAG -DNONSPHERICAL_ACTIVE_FLAG -I/usr/lib/openmpi/include/openmpi/opal/mca/event/libevent2021/libevent -I/usr/lib/openmpi/include/openmpi/opal/mca/event/libevent2021/libevent/include -I/usr/lib/openmpi/include -I/usr/lib/openmpi/include/openmpi -pthread -I ./cfdemParticle -I/home/lmu/OpenFOAM/OpenFOAM-5.x/src/finiteVolume/lnInclude -I/home/lmu/OpenFOAM/OpenFOAM-5.x/src/transportModels -I/home/lmu/OpenFOAM/OpenFOAM-5.x/src/TurbulenceModels/turbulenceModels/lnInclude -I/home/lmu/OpenFOAM/OpenFOAM-5.x/src/TurbulenceModels/incompressible/lnInclude -I/home/lmu/OpenFOAM/OpenFOAM-5.x/src/fvOptions/lnInclude -I/home/lmu/OpenFOAM/OpenFOAM-5.x/src/meshTools/lnInclude -I/home/lmu/OpenFOAM/OpenFOAM-5.x/src/lagrangian/basic/lnInclude -I/home/lmu/OpenFOAM/OpenFOAM-5.x/src/OpenFOAM/containers/HashTables/labelHashSet -I/home/lmu/LIGGGHTS/LIGGGHTS-PUBLIC/src -I/home/lmu/CFDEM/CFDEMcoupling-PUBLIC-5.x/src/cfdTools -IlnInclude -I. -I/home/lmu/OpenFOAM/OpenFOAM-5.x/src/OpenFOAM/lnInclude -I/home/lmu/OpenFOAM/OpenFOAM-5.x/src/OSspecific/POSIX/lnInclude -fPIC -c ../cfdemParticle/subModels/forceModel/gradPForce/gradPForce.C -o Make/linux64GccDPInt32Opt/../cfdemParticle/subModels/forceModel/gradPForce/gradPForce.o
/home/lmu/OpenFOAM/OpenFOAM-5.x/wmake/rules/General/transform:25: recipe for target 'Make/linux64GccDPInt32Opt/../cfdemParticle/subModels/forceModel/BeetstraDrag/BeetstraDrag.o' failed
make: *** [Make/linux64GccDPInt32Opt/../cfdemParticle/subModels/forceModel/BeetstraDrag/BeetstraDrag.o] Error 1
make: *** Waiting for unfinished jobs....

as my understanding , the .o file is the output file which will be built during the compile. Is this correct? If not, how could I built the .o file?

Thanks for the help.

Cheers,
lmucfdem

medvedeg | Mon, 07/02/2018 - 10:40

Hi,

you must also rename the class name in .C and .H files that implement your force model

Alexander Podlozhnyuk