CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   reactingFoam aachenBomb OpenFOAM 9 (https://www.cfd-online.com/Forums/main/241675-reactingfoam-aachenbomb-openfoam-9-a.html)

marcosgutierrez March 13, 2022 00:08

reactingFoam aachenBomb OpenFOAM 9
 
2 Attachment(s)
Hi openFoam and CFD users
Do you know how to fix the problem in the pictures.
The part #include "speciesThermo" can not be found.
Any suggestions?

The solver is reactingFoam in OpenFOAM 9

Please see pic 1 and 2.

Thank you

Marcos

jerik March 13, 2022 04:38

That error seems to indicate that the file "speciesThermo" is missing.
If you look at the Allrun script in the tutorial, the "chemkinToFoam" application should create speciesThermo.

Therefore check if chemkinToFoam has been run and produced the "reactions" and "speciesThermo" files. If you modified the chemkin files it could point to an error there.

marcosgutierrez March 13, 2022 22:22

2 Attachment(s)
Dear Jan,

thank you for your answer.
I run "chemkinToFoam" and I got the message in the picture 3.

I also run "./Allrun" and I got the message in picture 4.

I have to make this question: Is there something missing in this solver "reactingFoam" in the "aachenBomb" tutorial of OpenFOAM 9?

I run "sprayFoam" and the "aachenBomb" tutorial in OpenFOAM 7 without problems.

The chemkin files were not modified.

Some other suggestion?

Thank you

Marcos

jerik March 14, 2022 02:04

Hi Marcos,

The output of "./Allrun" is expected. So unless there are further Errors in the logfiles, everthing should have worked.

The chemkinToFoam command needs input and output files specified. For the full command look inside the Allrun script. It should be

Code:

runApplication chemkinToFoam \
              chemkin/chem.inp chemkin/therm.dat chemkin/transportProperties \
              constant/reactions constant/speciesThermo

Here "runApplication" just redirects the output to a logfile, so you want everything after that.


Jan

marcosgutierrez March 14, 2022 03:03

1 Attachment(s)
Hi Jan,

the files are ok as shown in the pic 5.

Is possible that there is bug in openFoam 9?

Marcos

jerik March 14, 2022 03:31

Hi Marcos,

again, from pic 4 everything seems to work. If you aren't getting solution files check the solver output in log.reactingFoam. I verified that the case is working.

If you are very new to OpenFoam i would recommend working through a tutorial case from the User-Guide to get familiar with the workflow. It will be directly applicable to reactingFoam.

Jan

marcosgutierrez March 15, 2022 07:59

1 Attachment(s)
Hi Jan,

thank you for the commands:

I did not change the chem.inp file and I have the error of pic.8

Best regards

Marcos

jerik March 15, 2022 08:43

Hi Marcos,

check the order of the "chem.inp" and "therm.dat" arguments in the command:)

Jan

marcosgutierrez March 15, 2022 09:14

2 Attachment(s)
Hi Jan,

YOU ARE A GENIE!!!! THANK YOU!!! IT WORKS!!!

Letīs make a summary:

1. Have order and method, do not play with commands, learn and understand how they must be written and used.

2. OpenFOAM doesn't have errors to run tutorials, it may have but a newbie for sure would no discover them.

3. To run the aachenBomb tutorial, open the terminal in the folder where you can see the:
0, chemkin, constant, system, Allclean and Allrun files.

4. Type the following command (it seem to be done only one time):
chemkinToFoam chemkin/chem.inp chemkin/therm.dat chemkin/transportProperties constant/reactions constant/speciesThermo

5. Type: blockMesh

6. Type: checkMesh

7. Step 6 is just for for fun because it is ok, unless you have imported your own geometry.

8. Start to feel the power and the glory.

9. Step 8 is serious.

10. Type: reactingFoam

11. Type: paraview

12. In paraview open the controldict file selecting the option *all kind of files and with the OpenFOAM reader

13. Display the velocities and pressures.

14. There are ways to display the particles with foamToVTK but I will post a clean document later.

15. Say thank you sooooo much to Jan (jerik in CDF online)

Marcos
Expert in reactingFoam


All times are GMT -4. The time now is 04:46.