Search found 141 matches

by jgd23
Sat Dec 10, 2022 12:10 pm
Forum: code_saturne usage
Topic: Conjugate heat transfer of simple geometries - comparison with exp data
Replies: 32
Views: 43551

Re: Conjugate heat transfer of simple geometries - comparison with exp data

Hello Antech,

Thank you again for your help.

It works now. The variable zoneTempAve output gives temperature in degC.
I have a difference of 2 - 3 degC when I compare with the integration of Paraview. I need to check if the time is the same when I measure the average temperature.

Is it possible ...
by jgd23
Fri Dec 09, 2022 9:26 am
Forum: code_saturne usage
Topic: Conjugate heat transfert - 2D - Flow past cylinder
Replies: 18
Views: 26755

Re: Conjugate heat transfert - 2D - Flow past cylinder

Hello,

Here is the 2 meshes of the fluid and solid parts if someone wants to try the joining and coupling.

Best regards
by jgd23
Wed Dec 07, 2022 8:51 pm
Forum: code_saturne usage
Topic: Conjugate heat transfer of simple geometries - comparison with exp data
Replies: 32
Views: 43551

Re: Conjugate heat transfer of simple geometries - comparison with exp data

Yes it is good now, no more error during compilation!

I don't know how to extract the value now. I try also fprint but everything returns errors...

cs_post_write_var(mesh_id,
CS_POST_WRITER_ALL_ASSOCIATED, /* writer id filter */
"zoneTempAve", /* var_name */
1, /* var_dim */
true ...
by jgd23
Wed Dec 07, 2022 3:41 pm
Forum: code_saturne usage
Topic: Conjugate heat transfer of simple geometries - comparison with exp data
Replies: 32
Views: 43551

Re: Conjugate heat transfer of simple geometries - comparison with exp data

Hello Antech,

Thank you for your help. I think it is really close to work.
The compiler complains about

/home/julien/Travail/test_cyl4/SRC/cs_user_extra_operations.c:104:25: error: ‘cellVlm’ undeclared (first use in this function)
104 | zoneVlmSum=zoneVlmSum+cellVlm[iCell]; /* Zone volume sum ...
by jgd23
Wed Dec 07, 2022 8:50 am
Forum: code_saturne usage
Topic: Conjugate heat transfer of simple geometries - comparison with exp data
Replies: 32
Views: 43551

Re: Conjugate heat transfer of simple geometries - comparison with exp data

Hello Antech,

Yes in my case z is related to volume of the "solid" zone

I don't understand where is the link between z defined below

const cs_zone_t *z = cs_volume_zone_by_name("solid");

for (cs_lnum_t idx = 0 ; idx < z->n_elts; ii++)
{
cs_lnum_t ii = z->elt_ids[idx];
temptot += temp->val ...
by jgd23
Wed Dec 07, 2022 12:34 am
Forum: code_saturne usage
Topic: Conjugate heat transfer of simple geometries - comparison with exp data
Replies: 32
Views: 43551

Re: Conjugate heat transfer of simple geometries - comparison with exp data

Hello,

One error remains.

/home/julien/Travail/test_cyl4/SRC/cs_user_extra_operations.c:130:18: error: invalid operands to binary / (have ‘cs_real_t’ {aka ‘double’} and ‘const cs_zone_t *’)
130 | Tavg = temptot / z;
| ^
/home/julien/Travail/test_cyl4/SRC/cs_user_extra_operations.c:111:26 ...
by jgd23
Wed Dec 07, 2022 12:15 am
Forum: code_saturne usage
Topic: Conjugate heat transfert - 2D - Flow past cylinder
Replies: 18
Views: 26755

Re: Conjugate heat transfert - 2D - Flow past cylinder

If I remove from the list of BC one of the two interface BC.

I have a new error message about wall distance.
by jgd23
Wed Dec 07, 2022 12:07 am
Forum: code_saturne usage
Topic: Conjugate heat transfert - 2D - Flow past cylinder
Replies: 18
Views: 26755

Re: Conjugate heat transfert - 2D - Flow past cylinder

Hello,

With the join definition syntax:
interface_fs or interface_sl

the join is done but a new problem appears.
Again with some interface definition, see the solver log file

Best regards
by jgd23
Tue Dec 06, 2022 4:28 pm
Forum: code_saturne usage
Topic: Conjugate heat transfer of simple geometries - comparison with exp data
Replies: 32
Views: 43551

Re: Conjugate heat transfer of simple geometries - comparison with exp data

Hello Yvan,

Thank you for your answer.

I modify my file. I have a lot of warnings.
First I try to make it works in serial.

There is the modified code
/*============================================================================
* This function is called at the end of each time step, and has a ...
by jgd23
Tue Dec 06, 2022 4:07 pm
Forum: code_saturne usage
Topic: Conjugate heat transfert - 2D - Flow past cylinder
Replies: 18
Views: 26755

Re: Conjugate heat transfert - 2D - Flow past cylinder

Hello,

With the syntax 'interface_fs' OR 'interface_sf' or without the punctuation interface_fs OR interface_sf
gives exactly the same result.

Maybe my boundary declaration is not appropriate, I have 2 boundaries for the interface solid/ fluid?

Maybe someone has already define a simple case of ...