CFDEM®coupling- Developer Forum

Topics related to developing with CFDEM®coupling can be discussed here: discussion about implementation details, C++, MPI and debugging tools

stress per atom in CFDEMCoupling

Submitted by jagan1mohan on

Hello Team,

I'm using

compute contStr all stress/atom pair bond

I could match results from an article when I use only LIGGGHTS (that is, only particles). Now, I want to include the gas flow into this particle assembly using CFDEMCoupling module.

How can I include the contribution from drag force as well into this compute?

The documentation says the only fix whose output can be used is fix rigid.

Thank you

Reynolds number for particle in LaEuScalarTemp.C and scalarGeneralExchange.C

Submitted by hossain.aziz on

Hi,

I am trying to understand the heat transfer ( LaEuScalarTemp.C ) and scalar transport (scalarGeneralExchange.C) model in CFDEM-coupling. In the line 385 of scalarGeneralExchange.C file, particle Reynolds number have been calculated as

Rep = dscaled*magUr*voidfraction/nuf;

Here "voidfraction" appears in the expression for Reynolds number.

However, in the line 257 of LaEuScalarTemp.C file, particle Reynolds number have been calculated as

Rep = ds*magUr/nuf;

Appropriate particle to cell width

Submitted by jagan1mohan on

Hello Friends, I'm working on a CFDEM setup in which a cube is filled with a few particles such that the particle to box volume ratio is 0.6. The fluid domain (please see attached images) has all cubic control volumes. I have tried two different cell widths.

1. cell width = 1.162*partDia. This is from the documentation that the volume ratio of the biggest particle to the smallest cell >= 3.
2. cell width = 3*partDia. This is from articles.

CFDEM build

Submitted by jagan1mohan on

Hello All, the output file from a CFDEM simulation says that

-------------------------------------------------------------------------------------
You are currently using:
OF version: 5.x
OF build: 5.x-7f7d351b741b
CFDEM build: 3.8.0-3-gb237264-dirty
-------------------------------------------------------------------------------------

Were there any other recent builds/releases? I'm looking to update my installation with the correct and latest ones.

Thank you,
Jagan Mohan.

Data from LIGGGHTS to OpenFOAM

Submitted by jagan1mohan on

Hello Team, greetings. I'm trying to find that point in the CFDEMCoupling source code where the LIGGGHTS data is transferred to OpenFOAM solver. End goal is to output particle positions to terminal and later on, subtract a constant value from all the x - coordinates of particles for a simulation.

I think, data_liggghts_to_of( ) in library_cfd_coupling.cpp inside LIGGGHTS-PUBLIC/src is the function, which is called by getData( ) in twoWayMPI.C, is the point where LIGGGHTS data is transferred to OpenFOAM. Function is as given below.

positions_ data type

Submitted by jagan1mohan on

Hello Team, greetings. I'm trying to understand the class-member functions in the CFDEMCoupling package.

Inside Foam::cfdemCloud::getDEMdata( ) function, are these variables radii_, positions_, and velocities_ 2D arrays? If I have 35 particles, say, does the length or size of this variable be 35?

Thank you,
Jagan Mohan.

data exchange in CFDEMCoupling

Submitted by jagan1mohan on

Hello friends, greetings. I'm trying to understand the class-member functions in the CFDEMCoupling package to see how particle data is transferred from LIGGGHTS to OpenFOAM and back.

I could locate the member functions, namely getDEMData( ) and giveDEMData( ) in dataExchangeModel class but unsure how exactly these functions are called and particle positions are transferred. The goal is to alter x-coordinates of the particles when they are being transferred to OpenFOAM.

Thank you,
Jagan Mohan.

Creating new solver

Submitted by hamedhoori on

Hi everyone, I'm trying to develop a new solver base on the cfdemSolverPiso.
First, I don't know how to set the settings of Make/files :

"EXE=$(CFDEM_APP_DIR)/cfdemSolverPisoRec"

I don't know where to address in EXE above? like in OpenFOAM where we set $FOAM_USER_APPBIN should we set $CFDEM_USER_APP_DIR or $CFDEM_APP_USER_DIR ?