Error in preprocessing stage.

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
gdib

Error in preprocessing stage.

Post by gdib »

Hello, I am new into Code_Saturne; so I am doing tutorials. I did tutorial 1 (DrivenCavity). The geometry and then the mesh were done perfectly. And all the steps in the graphical user interface GUI were completed successfully.
But when running the calculation, I have this error:
Error running the preprocessor.
Check the preprocessor.log file for details.


****************************
Saving calculation results
****************************

Error in preprocessing stage.

Error in preprocessing stage.

I checked the preprocessor.log file to see, this:

Erreur a l'exécution du préprocesseur
=====================================

ecs_pre_med.c:1636: Erreur fatale.

MED : erreur à la lecture du fichier "/home/gdib/Driven/MESH/Cavity_mesh2.med".
Nom du maillage lu : "Cavity_mesh"
Dimension lue : "0"

So is there any trouble or problem from the installation of the code and its prerequisite programs ? or the problem is by exporting the mesh to .med ( File - exporting - .med ) ? or any other problem ?

Thanks a lot for your help.
Yvan Fournier
Posts: 4208
Joined: Mon Feb 20, 2012 3:25 pm

Re: Error in preprocessing stage.

Post by Yvan Fournier »

Hello,

Please provide info recommended in the forum's usage guidelines, such as system type, code version, ....

Did you use a version of Code_Saturne built with MED 3.0 with a mesh generated with Salome 7.7 (which uses MED 3.1 ?). IF this is the case, you need to either upgrade the MED libary version used by Code_Saturne or downgrade Salome version.

Regards,

Yvan
gdib

Re: Error in preprocessing stage.

Post by gdib »

Hello I am using code_Saturne 3.3 and a Salome 7.7.1

so is the solution to download Salome 6 ?

Thanks a lot
Yvan Fournier
Posts: 4208
Joined: Mon Feb 20, 2012 3:25 pm

Re: Error in preprocessing stage.

Post by Yvan Fournier »

Hello,

Salome 7.6 will be sufficient (it uses MED 3.3).

I also recommend using Code_Saturne >= 4 (Version 3.0 is also maintained, as an "old stable" version, but versions 3.1, 3.2, and 3.3 are obsolete).

Regards,

Yvan
gdib

Re: Error in preprocessing stage.

Post by gdib »

Thanks a lot for your help.

I installed Salome 7.6.0 but when I explode the geometry I have this as error.

If I want to use code_saturne 4.0; Which Salome version should I download ?
Attachments
capture d'écran1.png
Yvan Fournier
Posts: 4208
Joined: Mon Feb 20, 2012 3:25 pm

Re: Error in preprocessing stage.

Post by Yvan Fournier »

Hello,

Salome is not always stable, so this might be a "temporary" issue. Did you try exploding the geometry multiple times (relaunching Salome) ? Which version of Salome did you use to generate the geometry.

Also, please follow at least the part of the forum recommendations which might be relevant to Salome (OS version, plus in this case Salome build). There are multiple possible downloadable builds of Salome, so this issue might be specific to the Salome build/your OS combination.

But in any case, some variant of Salome 7.6 should generate meshes usable with Code_Saturne 4.0.

You also did not answer how you built or installed Code_Saturne (installer, package, ...) ? If you build the code, the seimplest solution may be to rebuild it with MED 3.1 (downloadble on the SALOME website) and use the mesh you already built with Salome 7.7.

Regards,

Yvan
gdib

Re: Error in preprocessing stage.

Post by gdib »

Hello,
Thanks a lot Mr. Fournier.

First I installed code-saturne 3.3 (Package). But my problem is with Salome version.
Because you recommended me to downgrade my Salome version (Because I am using Code_saturne 3.3); So I installed Salome 7.6.

When I exploded the geometry (multiple times) in Salome 7.6 (with code_saturne 3.3), I had the above error.

Is the problem from Salome installation ?

Do you think the best solution for my problem is to install Code_saturne 4.0 (Full Package) with Salome 7.7.1 (Latest version) or 7.6 ?
Erwan Le Coupanec
Posts: 45
Joined: Sun Sep 08, 2013 8:50 pm

Re: Error in preprocessing stage.

Post by Erwan Le Coupanec »

Hello

Since you have a build of Salome 7.7, and apparently already a mesh generated with it, you could as suggested by Yvan, install Code_Saturne 4.0 with med 3.1, and try again your calculation.

For future work, it is better to use the last production version (namely the 4.0 at this moment), except of course if the intention is to use one of the latest features of the moment or if the aim is to develop a model inside the code kernel, even though nothing forbids you from using the 3.3.

Also, if you intend to stick with Salome 7.6, again as suggested by Yvan, check that your build is compatible with your OS.

Erwan.
gdib

Re: Error in preprocessing stage.

Post by gdib »

Hello,

After I installed the code_saturne 4.0 and Saolme 7.1.1, I always have the same error while doing the first tutorial.

'' Error running the preprocessor.


Check the preprocessor.log file for details.


Error in preprocessing stage ''

I've attached the preprocessor.log file.

Thanks a lot for your help.
Attachments
preprocessor.log
(1.02 KiB) Downloaded 325 times
Yvan Fournier
Posts: 4208
Joined: Mon Feb 20, 2012 3:25 pm

Re: Error in preprocessing stage.

Post by Yvan Fournier »

Hello,

You need to configure/install Code_Saturne with MED file support (in you case, MED 3.1, whose libraries and headers you may find in you SALOME installation).

Regards,

Yvan
Post Reply