Search found 4085 matches

by Yvan Fournier
Wed May 01, 2024 6:50 pm
Forum: code_saturne usage
Topic: Condensation and moisture simulation
Replies: 1
Views: 40

Re: Condensation and moisture simulation

Hello, I am not sure about this. There are some models involving condensation and moisture in the code, but those were developed in the context of specific models (such as cooling towers, or condensation on metal structures), but I am not sure there is a "high level" model, and documentati...
by Yvan Fournier
Wed May 01, 2024 6:45 pm
Forum: code_saturne usage
Topic: Neumann condition for temperature in only one direction
Replies: 12
Views: 294

Re: Neumann condition for temperature in only one direction

Hello, When behavior gets really strange like this, it probably means that there is some sort of error upstream of where the crash appears. When switching to v8.0, did you align the user-defined function ? There may be a change in the arguments (a tool such as meld can be useful for this). Otherwise...
by Yvan Fournier
Tue Apr 30, 2024 7:27 pm
Forum: code_saturne usage
Topic: user-defined functions
Replies: 7
Views: 92

Re: user-defined functions

Hello,

Yes the computation seems to diverge.
The code has a safety stop when velocity reaches 10000 m/s as that is out of physical bounds for incompressible flow, and stopping cleanly still allows for postprocessing.

Best regards,

Yvan
by Yvan Fournier
Mon Apr 29, 2024 10:26 am
Forum: code_saturne usage
Topic: Turbulent Channel Flow with Periodic Boundary Conditions
Replies: 1
Views: 38

Re: Turbulent Channel Flow with Periodic Boundary Conditions

Hello, Regarding 1), cs_meg* functions are not user-defined functions. They are generated by the code based on the definitions in the GUI, so your changes will be overwritten. Use cs_user_initialization instead. Regarding 2), how much fluctuations do you have ? I am not sure you can get something co...
by Yvan Fournier
Sun Apr 28, 2024 10:00 pm
Forum: code_saturne usage
Topic: Neumann condition for temperature in only one direction
Replies: 12
Views: 294

Re: Neumann condition for temperature in only one direction

Hello, Using v7.0, you do not have direct access to "bc_coeffs->rcodcl3[face_id]", as this was added in v8.0 for better readbility. In v7.0, the equivalent for this is rcodcl[2 * n_b_faces * nvar + var_id*n_b_faces + face_id] = flux; (See last example in cs_user_boundary_conditions-noteboo...
by Yvan Fournier
Fri Apr 26, 2024 7:23 pm
Forum: code_saturne usage
Topic: user-defined functions
Replies: 7
Views: 92

Re: user-defined functions

Hello,

Simply select the boundary forces output in the Postprocessing/Surface Solution control section.

Best regards,

Yvan
by Yvan Fournier
Thu Apr 25, 2024 7:20 pm
Forum: code_saturne usage
Topic: Neumann condition for temperature in only one direction
Replies: 12
Views: 294

Re: Neumann condition for temperature in only one direction

Hello, I did not notice any obvious mistake, so assuming you boundary zone is indeed named "BC_1", and you replace the correct expression for the flux value, it should work. Note also that if you are using a constant flux value, you can use the GUI. Even with a more complex expression, you...
by Yvan Fournier
Thu Apr 25, 2024 7:13 pm
Forum: code_saturne usage
Topic: user-defined functions
Replies: 7
Views: 92

Re: user-defined functions

Hello, If you are a beginner with the code, I recommend generating the boundary forces output simply by selecting it from the GUI. With user-defined functions, you can do additional filtering, summation, ... but you need to first have the matching field activated, which is not well documented (but c...
by Yvan Fournier
Thu Apr 18, 2024 9:20 pm
Forum: code_saturne usage
Topic: Steady-Compressible flow
Replies: 4
Views: 2160

Re: Steady-Compressible flow

Hello,

I do not think there has been any new development in this regard, though there has been work on another compressible model which may have different constraints.

Did you try forcing the pseudo-steady algorithm using a user-defined function (I.e. cs_user_parameters) ?

Best regards,

Yvan
by Yvan Fournier
Thu Apr 18, 2024 9:15 pm
Forum: code_saturne usage
Topic: Neumann condition for temperature in only one direction
Replies: 12
Views: 294

Re: Neumann condition for temperature in only one direction

Hello,

Yes, you can use the prescribed flux condition in this case.

Best regards,

Yvan