'application' in controlDict file: CFDEM Coupling

Submitted by yesaswi92 on Thu, 01/25/2018 - 18:36

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/tutoria...

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

alice's picture

alice | Mon, 01/29/2018 - 10:47

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

lavdwall | Tue, 02/02/2021 - 05:38

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