Search found 149 matches

by daniele
Tue Jun 18, 2019 4:30 pm
Forum: code_saturne usage
Topic: ALE calculation suddenly stopping with no error
Replies: 3
Views: 2694

Re: ALE calculation suddenly stopping with no error

Dear Luciano, Thank you very much for your help. Actually, looking more in detail to the listing, I found the message "Abort due to the detection of a negative control volume.". Do you know how to visualize negative volumes in Paraview? I cannot manage to do it. Thank you very much in adva...
by daniele
Wed Jun 12, 2019 11:26 am
Forum: code_saturne usage
Topic: ALE calculation suddenly stopping with no error
Replies: 3
Views: 2694

ALE calculation suddenly stopping with no error

Hello, I am performing an ALE simulation. The simulation stops after a few iterations (much less than the ones specified), but no error is displayed in the listing nor in the other files. In the listing, after the last iteration, the "Final stage of the calculation" and "End of calcul...
by daniele
Wed May 29, 2019 9:26 am
Forum: code_saturne usage
Topic: ALE simulations: GUI vs subroutines
Replies: 0
Views: 36686

ALE simulations: GUI vs subroutines

Hello, I am trying to setting up an ALE simulation. I have tried it both through the GUI and through user routines. I have a few questions if someone has time to answer: 1) When I use the GUI, where can I specify the analogous as the "ihistr=1" one sets inside the "usstr1" to hav...
by daniele
Thu May 02, 2019 9:59 am
Forum: code_saturne usage
Topic: Issues with creation of periodic boundaries
Replies: 5
Views: 2952

Re: Issues with creation of periodic boundaries

Hello Yvan, Thank you very much for your reply. I am still struggling with correctly creating the periodicity. Actually everything seems to be ok, but looking at the results the periodic boundary behaves as a wall (zero cross velocity). One question: I guess I need to manually remove the periodic bo...
by daniele
Mon Apr 15, 2019 1:11 pm
Forum: code_saturne usage
Topic: Issues with creation of periodic boundaries
Replies: 5
Views: 2952

Issues with creation of periodic boundaries

Hello, I would like to create tranlastion periodicity between two parallel boundary faces. I am using the GUI, v5.0.3. Looking at the listing, the creation of the periodic "interior" boundary seems successful, since it states: Global number of boundary faces selected for joining: 79656 Ele...
by daniele
Wed Apr 25, 2018 2:21 pm
Forum: code_saturne usage
Topic: derive residual exact calculation
Replies: 0
Views: 34688

derive residual exact calculation

Hello, I looked for the posts on this subject, but could not find a precise answer: what is the actual meaning of the "derive" residual and how is it calculated? Is it the lhs minus rhs of the equation? More exactly max(lhs - rhs) among all cells? I have a converged calculation, with deriv...
by daniele
Wed Mar 28, 2018 10:19 am
Forum: code_saturne usage
Topic: field_gradient_scalar error
Replies: 4
Views: 3167

Re: field_gradient_scalar error

Thank you Yvan!

I see that the gradient_s routine requires a lot of arguments, and I am not sure to understand them completely...
We can maybe discuss more in detail at the User Meeting...

Best regards,

Daniele
by daniele
Mon Mar 26, 2018 11:28 am
Forum: code_saturne usage
Topic: field_gradient_scalar error
Replies: 4
Views: 3167

Re: field_gradient_scalar error

Dear Yvan, Thank you very much! Nevertheless, I still have a problem in my set-up, since I get the following error in the listing: Field "term_grad" with type flag 17 has no value associated with key 37 ("var_cal_opt"). The "use optcal" is present at the begin of the su...
by daniele
Fri Mar 23, 2018 12:08 pm
Forum: code_saturne usage
Topic: field_gradient_scalar error
Replies: 4
Views: 3167

field_gradient_scalar error

Hello, I would like to add a source term (to a user defined scalar) being the gradient of a given quantity. In the cs_user_source_terms.f90, I wrote: allocate(grad(3,ncelet)) allocate(wtest(ncel)) allocate(term(ncel)) do iel = 1, ncel wtest(iel) = 0.1d0 term(iel) = cpro_crom(iel)*wtest(iel) enddo ca...
by daniele
Fri Feb 02, 2018 2:42 pm
Forum: code_saturne usage
Topic: adding drift velocity to scalar
Replies: 1
Views: 1828

Re: adding drift velocity to scalar

Dear all, I am still stuck with drift velocity definition for scalars. I activated all the required flags in the cs_user_parameters.f90. The drift velocity vector is available in the post treatment variables, which confirms that drift has been activated. Nevertheless, how do I specifiy the drift vel...