Dear Developers,
I just started PhD and my work is mostly on DNS. I want to add few terms in the energy equation.
Is it possible if you can point out what subroutine(s) the software solves the energy equation? and is there a way I can add terms in it?
Kind regards,
Hyder.
Energy Equation Subroutines and adding terms in it
Forum rules
Please read the forum usage recommendations before posting.
Please read the forum usage recommendations before posting.
Re: Energy Equation Subroutines and adding terms in it
Dear Developer,
I was wondering if there is any update on this?
Kind regards,
Hyder.
I was wondering if there is any update on this?
Kind regards,
Hyder.
-
- Posts: 4206
- Joined: Mon Feb 20, 2012 3:25 pm
Re: Energy Equation Subroutines and adding terms in it
Hello,
Which "energy equation" are you referring to exactly relative to the formulation and algorithm used in code_saturne ? Turbulent kinetic energy (not in DNS), thermal internal or total energy (for compressible flowà, ... ?
Did you check user examples in the documentation ?
Regards,
Yvan
Which "energy equation" are you referring to exactly relative to the formulation and algorithm used in code_saturne ? Turbulent kinetic energy (not in DNS), thermal internal or total energy (for compressible flowà, ... ?
Did you check user examples in the documentation ?
Regards,
Yvan
Re: Energy Equation Subroutines and adding terms in it
Hello,
Sorry I mean is this energy equation. or this .
Best regards,
Hyder.
Sorry I mean is this energy equation. or this .
Best regards,
Hyder.
- Attachments
-
- Posts: 4206
- Joined: Mon Feb 20, 2012 3:25 pm
Re: Energy Equation Subroutines and adding terms in it
Hello,
So it seems that what you are interested in is the heat equation. What sort of terms do you need to add ? If it is source terms, that is easy, and there are many user-defined examples in the code. Some cases may even be handled in the GUI.
I also recommend starting with a very simple mesh and case so as to be able to experiment with a fast turnaround time.
Regards,
Yvan
So it seems that what you are interested in is the heat equation. What sort of terms do you need to add ? If it is source terms, that is easy, and there are many user-defined examples in the code. Some cases may even be handled in the GUI.
I also recommend starting with a very simple mesh and case so as to be able to experiment with a fast turnaround time.
Regards,
Yvan
Re: Energy Equation Subroutines and adding terms in it
Hi,
The terms I want to add depends on what heat equation the code_saturne is solving at the moment. may I ask if its solving equation 1 or equation 2 ?
One of my senior is also using code saturne. he believes code_saturne solves equation 1.
Best regards,
Hyder
The terms I want to add depends on what heat equation the code_saturne is solving at the moment. may I ask if its solving equation 1 or equation 2 ?
One of my senior is also using code saturne. he believes code_saturne solves equation 1.
Best regards,
Hyder
-
- Posts: 4206
- Joined: Mon Feb 20, 2012 3:25 pm
Re: Energy Equation Subroutines and adding terms in it
Hello,
The info on the equations solved is given in the first 20 pages of the theory manual.
Best regards,
Yvan
The info on the equations solved is given in the first 20 pages of the theory manual.
Best regards,
Yvan
Re: Energy Equation Subroutines and adding terms in it
Hi,
Just looked at it Thank you. I am also curious to know in what subroutines they are being solved. is there a way I can know that as well?
Best,
Hyder.
Just looked at it Thank you. I am also curious to know in what subroutines they are being solved. is there a way I can know that as well?
Best,
Hyder.
-
- Posts: 4206
- Joined: Mon Feb 20, 2012 3:25 pm
Re: Energy Equation Subroutines and adding terms in it
Hello,
Depending on the code version (and progress on migration from Fortran to C), the exact files can vary, but you can start by looking at the "scalai" function, which contains the loop on scalars.
Regards,
Yvan
Depending on the code version (and progress on migration from Fortran to C), the exact files can vary, but you can start by looking at the "scalai" function, which contains the loop on scalars.
Regards,
Yvan