'application' in controlDict file: CFDEM Coupling

Submitted by yesaswi92 on
alice

Hi Yesaswi,

exactly, in CFDEM(R)coupling, and also when you run OpenFOAM cases by directly calling the solvers, the application entry is simply ignored. But of course you are right, good style would be to use the name of the solver for which this case is actually developed ;)

Cheers,

Alice

Mon, 29 Jan 2018 - 10:47 Permalink
lavdwall

OpenFOAM has a built-in tool for that: getApplication (this basically reads the application from controlDict)

It is used in a lot of OpenFOAM tutorials. You should first make the getApplication tool available by adding the following line to your bashrc after sourcing $FOAM_BASH:
source $WM_PROJECT_DIR/bin/tools/RunFunctions

Then you can run the solver as specified in controlDict using:
$(getApplication)

Best regards,
Laurien

Tue, 2 Feb 2021 - 05:38 Permalink

Hello,

I am going through the ErgunTestMPI_restart tutorial and found that in the controlDict file (), the application is set to pisoFoam instead of cfdemSolverPiso. This is the file, I'm referring to: https://github.com/CFDEMproject/CFDEMcoupling-PUBLIC/blob/master/tutori…

I ran the case, two times, once with pisoFoam and once with cfdemSolverPiso. The results were exactly the same.

Does this mean, the application definition in the control dictionary is just a dummy and the solver definition in parCFDDEMrun is the one that is called?

Thanks,.

Regards,
Yesaswi