Search found 9 matches

by joubanba
Thu Dec 12, 2019 2:54 pm
Forum: code_saturne usage
Topic: Residuals values and computing
Replies: 2
Views: 1838

Re: Residuals values and computing

Hello,

You can have a look at the Code_Saturne theory documentation:

https://www.code-saturne.org/cms/sites/ ... theory.pdf

Regards,

Jamal
by joubanba
Tue Nov 19, 2019 12:42 pm
Forum: code_saturne usage
Topic: Scalar source term using the GUI on CS V4
Replies: 2
Views: 9460

Re: Scalar source term using the GUI on CS V4

Hello,

S is the species source term and dS is the species source term derivative.

Here you can find some additional information (v5.0): https://www.code-saturne.org/cms/sites/ ... annel.html

Regards,

Jamal
by joubanba
Wed Oct 30, 2019 4:22 pm
Forum: code_saturne usage
Topic: Problem in Energy Balance example file?
Replies: 4
Views: 2202

Re: Problem in Energy Balance example file?

Hello, What do you expect from this code snippet? And more precisely what is this array cvar_H_11 (enthalpy?...) If cvar_H_11 is a pointer to the cell values of the enthalpy then you have to retrieve the cell_id corresponding to the face_id in your loop on the boundary faces (just as I mentioned in ...
by joubanba
Wed Oct 30, 2019 11:36 am
Forum: code_saturne usage
Topic: Problem in Energy Balance example file?
Replies: 4
Views: 2202

Re: Problem in Energy Balance example file?

Hello,

In this example ifac is the id of the boundary face while iel = ifabor(ifac) is the id of the (unique) neighboring cell of the same boundary face.

Regards,

Jamal
by joubanba
Tue Oct 29, 2019 1:48 pm
Forum: code_saturne usage
Topic: How to get the mesh elements on a specific boundary or plane?
Replies: 3
Views: 1918

Re: How to get the mesh elements on a specific boundary or plane?

Yes. It's the equivalent of the Fortran function.

Jamal
by joubanba
Tue Oct 29, 2019 1:28 pm
Forum: code_saturne usage
Topic: How to get the mesh elements on a specific boundary or plane?
Replies: 3
Views: 1918

Re: How to get the mesh elements on a specific boundary or plane?

Hello,

See the following example on how to get the elements of a boundary and apply boundary conditions on them thanks to the FORTRAN function getfbr() :

https://www.code-saturne.org/cms/sites/ ... mples.html

Regards,

Jamal
by joubanba
Fri Oct 25, 2019 10:34 am
Forum: code_saturne usage
Topic: How to define a new vector field and its values?
Replies: 6
Views: 2663

Re: How to define a new vector field and its values?

Hello, You can add a new scalar or vector field in the subroutine cs_user_parameter.c by using the function: cs_parameters_add_variable (name, dimension). you can find here an example of adding a scalar field: https://www.code-saturne.org/cms/sites/default/files/docs/6.0/doxygen/src/parameters.html ...
by joubanba
Thu Oct 10, 2019 9:35 am
Forum: code_saturne usage
Topic: How can I get the derivatives of velocity field?
Replies: 10
Views: 5637

Re: How can I get the derivatives of velocity field?

Hello,

I can't see your attached images.

Jamal
by joubanba
Wed Oct 09, 2019 2:59 pm
Forum: code_saturne usage
Topic: How can I get the derivatives of velocity field?
Replies: 10
Views: 5637

Re: How can I get the derivatives of velocity field?

Hello, You can get a gradient of a field(scalar, vector or tensor) by using the following Code_Saturne functions: cs_field_gradient_scalar()/cs_field_gradient_vector()/cs_field_gradient_tensor() in C language or call field_gradient_scalar() in fortran 90. The following link of Code_Saturne documenta...