Search found 4085 matches
- Tue Mar 05, 2024 12:46 am
- Forum: code_saturne usage
- Topic: streamwise periodicity
- Replies: 26
- Views: 27279
Re: streamwise periodicity
Hello, I do not see any obvious error in your code, except that it does not handle parallel summation of values such as total_volume, total_enthalpy, or feedback_term. Unless you sum those using a function such as cs_parall_sum (see examples), your code will be correct only as long as you run on a s...
- Mon Mar 04, 2024 10:47 am
- Forum: code_saturne usage
- Topic: use a deformed mesh (med file)to restart code saturne calculation
- Replies: 14
- Views: 214218
Re: use a deformed mesh (med file)to restart code saturne calculation
Hello,
It is possible but I would recommend re-buildi g and installing code_saturne with that version also.
Best regards,
Yvan
It is possible but I would recommend re-buildi g and installing code_saturne with that version also.
Best regards,
Yvan
- Wed Feb 28, 2024 12:08 am
- Forum: code_saturne usage
- Topic: use a deformed mesh (med file)to restart code saturne calculation
- Replies: 14
- Views: 214218
Re: use a deformed mesh (med file)to restart code saturne calculation
Hello, If I understand correctly your issue is about converting a MED file to an older MED version ? The simplest solution (to avoid this) is to build code_saturne with the same MED version as code_aster, or vice-versa. It might also be possible to modify code_saturne's MED output to write in a comp...
- Fri Feb 23, 2024 8:55 pm
- Forum: code_saturne usage
- Topic: Restart not taken into account in v7
- Replies: 11
- Views: 19491
Re: Restart not taken into account in v7
Hello, To run Valgrind, you need to run it on the cs_solver executable. There are instructions in the user guide for this, but it generally does not work well (or needs additional settings to avoid false positives) on a cluster with a fast network, and with a large mesh, it will be difficult to use ...
- Fri Feb 23, 2024 4:51 pm
- Forum: code_saturne usage
- Topic: Define a new field and output it with time
- Replies: 2
- Views: 1501
Re: Define a new field and output it with time
Hello, It seems no one has an example ready for this. But it should be quite simple to do this. You can even create the extra field with the GUI (in the post-processing section), and you then need to compute its values in a user-defined function, such as cs_user_extra_operations.c. Best regards, Yvan
- Thu Feb 22, 2024 7:32 pm
- Forum: code_saturne usage
- Topic: streamwise periodicity
- Replies: 26
- Views: 27279
Re: streamwise periodicity
Hello, You need to replace: const cs_real_3_t centroid = domain->mesh_quantities->cell_cen[i]; With: const cs_real_t *centroid = &(domain->mesh_quantities->cell_cen[i*3]); Or the equivalent: const cs_real_t *centroid = domain->mesh_quantities->cell_cen +(i*3); This is due to the array being decl...
- Thu Feb 22, 2024 7:25 pm
- Forum: code_saturne usage
- Topic: Restart not taken into account in v7
- Replies: 11
- Views: 19491
Re: Restart not taken into account in v7
Hello Daniele, Does RESU/20240215-1025/checkpoint contain a "mesh_input.csm" file or is the mesh input re-imported at each restart ? If the failure occurs just with this file, there might be a file corruption problem. Also, do you check "use unmodified checkpoint mesh in case of resta...
- Thu Feb 22, 2024 1:06 am
- Forum: code_saturne usage
- Topic: Restart not taken into account in v7
- Replies: 11
- Views: 19491
Re: Restart not taken into account in v7
Hello, This seems to occur in the partitioning stage, before the restart file is read. So I would guess it is independent of the restart. Which partitioning algorithms are you using ? I assume PT-Scotch, if it is installed, as it is the default. If this is the case, does the crash occur before writi...
- Wed Feb 21, 2024 8:09 pm
- Forum: code_saturne usage
- Topic: Restart not taken into account in v7
- Replies: 11
- Views: 19491
Re: Restart not taken into account in v7
Hello Danièle,
Do you have a stack trace in the file indicating a SIGSEGV ?
Best regards,
Yvan
Do you have a stack trace in the file indicating a SIGSEGV ?
Best regards,
Yvan
- Wed Feb 21, 2024 5:19 pm
- Forum: code_saturne usage
- Topic: streamwise periodicity
- Replies: 26
- Views: 27279
Re: streamwise periodicity
Hello, Regarding the first question, it seems that the code (based on an example) measures the mean mass flow based on the x direction, and averaging it over all interior faces. Depending on your geometry, this might not match with the flow rate you are seeking (for example since you have a varying ...