Search found 38 matches

by fracenvi
Tue May 20, 2025 4:42 pm
Forum: code_saturne usage
Topic: Mass fraction conversion with combustion module
Replies: 3
Views: 9715

Re: Mass fraction conversion with combustion module

Hello, I found a function called cs_combustion_gas_yg2xye that does partially what i wanted. I managed to call it correctly in my user subroutines but it doesn't actually give me the field of values but rather what i suppose being the average. Is it me to not have understood correctly how the functi...
by fracenvi
Wed May 14, 2025 7:56 pm
Forum: code_saturne usage
Topic: Mass fraction conversion with combustion module
Replies: 3
Views: 9715

Mass fraction conversion with combustion module

Hello everyone, I am running a simple case with the combustion module on and i was wondering if there is any function present in the code to eventually convert the ym_fuel, ym_oxyd and ym_prod to the actual mass fractions of the components of the mixture (e.g., in the case of methane combustion, som...
by fracenvi
Tue Mar 25, 2025 12:58 pm
Forum: code_saturne usage
Topic: Problem when replacing fields during RANS with combustion module on
Replies: 4
Views: 22976

Re: Problem when replacing fields during RANS with combustion module on

Hello Yvan, Thanks for the tip on the temperature and the density. From what i understood you think the possible "explosion" of the pressure values may also be attributed to the wrong density algorithm chosen, am i right? I will now try to see what happens in both cases with idilat set to ...
by fracenvi
Tue Mar 18, 2025 12:27 pm
Forum: code_saturne usage
Topic: Problem when replacing fields during RANS with combustion module on
Replies: 4
Views: 22976

Re: Problem when replacing fields during RANS with combustion module on

Hello Yvan, I'm trying to turn off density, temperature and mass fraction calculations (those for ym_fuel, ym_oxyd and ym_prod). Should i be checking then in scalai.f90? I saw that the routine calls upon covofi for resolution of the scalars, hence i run some checks in covofi.f90 and this was the out...
by fracenvi
Thu Mar 13, 2025 11:18 am
Forum: code_saturne usage
Topic: Problem when replacing fields during RANS with combustion module on
Replies: 4
Views: 22976

Problem when replacing fields during RANS with combustion module on

Hello everyone, I'm trying to run a simulation of a simple combustion case where after a certain number of iterations, calculation of certain fields is "moved" to a certain subroutine, that implements a neural network. The newly computed fields are then used to replace the actual CFD field...
by fracenvi
Thu Jan 30, 2025 2:52 pm
Forum: code_saturne usage
Topic: MPI fail on multiprocess run
Replies: 3
Views: 20416

Re: MPI fail on multiprocess run

Hello,

I actually managed to sort the bug out, as the command i was using to launch the code was not passing the correct number of processors needed to perform the computation.

Regards,
Francesco
by fracenvi
Wed Jan 29, 2025 7:00 pm
Forum: code_saturne usage
Topic: MPI fail on multiprocess run
Replies: 3
Views: 20416

MPI fail on multiprocess run

Hello, I'm trying to run a case on a multiprocess setup, but whatever the amount of processors i provide it always gives me back: -------------------------------------------------------------------------- MPI_ABORT was invoked on rank 0 in communicator MPI_COMM_WORLD with errorcode 1. NOTE: invoking...
by fracenvi
Mon Jan 13, 2025 8:50 pm
Forum: code_saturne usage
Topic: NaN values when passing from a subroutine to another
Replies: 1
Views: 13397

NaN values when passing from a subroutine to another

Hello, I'm trying to run a C++ function within a cs_user_physical_properties.f90 subroutine. Everything has been implemented just fine following how this C++/Fortran coupling is done in other standard routines, but i don't get why when passing fields from the fortran to C++ NaN values will appear. T...
by fracenvi
Sat Dec 07, 2024 4:44 pm
Forum: code_saturne usage
Topic: Missing "stress_normal" field present in setup.xml
Replies: 3
Views: 14404

Re: Missing "stress_normal" field present in setup.xml

Hello, How can i access it then? Beacuse in post-processing i can see both "Normal_stress" and "Stress" as boundary fields and i think the boundary_stress field you are mentioning only refers to "Stress". Eventually, if i have to evaluate it sohuld i refer to the user e...
by fracenvi
Fri Dec 06, 2024 2:54 pm
Forum: code_saturne usage
Topic: Missing "stress_normal" field present in setup.xml
Replies: 3
Views: 14404

Missing "stress_normal" field present in setup.xml

Hello, I'm trying to run a calculation in which i try to couple ANN resolution for certain fields with the standard numerical resolution and i need to collect certain data every n time steps. One of them is the measure of the normal stress (that i can easily collect during the postprocess phase) whi...