Search found 9 matches

by philippks
Fri Oct 05, 2018 5:04 pm
Forum: code_saturne usage
Topic: [v5.0.4] Deactivate monitoring point output for user-defined time-averages
Replies: 1
Views: 1753

[v5.0.4] Deactivate monitoring point output for user-defined time-averages

Hi,

in version 5.0.4, how can I deactivate the monitoring output for specific user-defined time-averages, which I have defined before in cs_user_parameters.c? I have tried to set keyvis to POST_ON_LOCATION only (without POST_ON_MONITOR), but it didn't work.
Many thanks,
Philipp
by philippks
Fri Aug 26, 2016 3:45 pm
Forum: code_saturne usage
Topic: Time averaging with offset after restart
Replies: 1
Views: 1664

Re: Time averaging with offset after restart

I have found the solution in the meanwhile: cs_time_moment_define_by_field_ids("u_avg", n_fields, moment_f_id, moment_c_id, CS_TIME_MOMENT_MEAN, cs_glob_time_step->nt_prev + 1000, /* nt_start */ -1, /* t_start */ CS_TIME_MOMENT_RESTART_AUTO, NULL);
by philippks
Wed Aug 24, 2016 6:16 pm
Forum: code_saturne usage
Topic: Time averaging with offset after restart
Replies: 1
Views: 1664

Time averaging with offset after restart

Hi, In Code_Saturne version 4.0.4., I want to write out time averages of a number of variables, for which I aim on using cs_time_moment_define_by_field_ids() in cs_user_parameters.c like this example: int moment_f_id[] = {CS_F_(u)->id}; int moment_c_id[] = {-1}; int n_fields = 1; cs_time_moment_defi...
by philippks
Thu Jun 09, 2016 1:47 pm
Forum: code_saturne usage
Topic: Wall function in LES
Replies: 1
Views: 3915

Re: Wall function in LES

Hi,
I just wanted to bring this one up again; in the meantime I took a look into cs_wall_functions.c, where the variable iwallf is used. The values for iwallf do not match with the description in doxygen on that specific variable.

Thanks for consideration,
Philipp
by philippks
Wed Apr 06, 2016 11:57 am
Forum: code_saturne usage
Topic: Wall function in LES
Replies: 1
Views: 3915

Wall function in LES

Hi, In CS version 4.0.4, I want to force the wall function to be turned off in LES, even for a very coarse mesh (y+ >= 10.88). In clptur.f90, I would therefore just include itytur.eq.4 in line 696 as: ! No wall functions for low Reynolds models if (iturb.eq.0.or.itytur.eq.5.or.iturb.eq.32.or.itytur....
by philippks
Mon Feb 29, 2016 4:31 pm
Forum: code_saturne usage
Topic: Calculate gradient on user-created vector field
Replies: 2
Views: 2524

Re: Calculate gradient on user-created vector field

Hi Yvan, Again thank you for the fast reply. I worked around this issue, which originally came up in because I was coupling two code_saturne simulations (hybrid RANS/LES): The subroutine grdvec was called within cscpce, and it was described in grdvec that ivar = 0 would allow to calculate the gradie...
by philippks
Mon Feb 22, 2016 5:03 pm
Forum: code_saturne usage
Topic: Calculate gradient on user-created vector field
Replies: 2
Views: 2524

Calculate gradient on user-created vector field

Hi, I am using CS 4.0.4 and I would like to calculate the gradient of a vector field I have created in uspisu and initialized with cs_user_initialization, according to the given examples in the files. I tried field_gradient_vector on my created field in cs_user_extra_operations: call field_gradient_...
by philippks
Thu Feb 18, 2016 10:30 pm
Forum: code_saturne usage
Topic: LES: SGS Viscosity at previous timestep
Replies: 2
Views: 2192

Re: LES: SGS Viscosity at previous timestep

Hi Yvan, Many thanks for your fast reply! My CS version is 4.0.4. Both methods work, however, it seems that in LES mode, ivisla and ivista are not created somewhere else in the source code. (I grepped for ivista and only found it for RANS turbulence models.) Thus, I only used the parts call field_se...
by philippks
Thu Feb 18, 2016 8:07 pm
Forum: code_saturne usage
Topic: LES: SGS Viscosity at previous timestep
Replies: 2
Views: 2192

LES: SGS Viscosity at previous timestep

Hi,

I would like to retrieve the SGS viscosity from the previous timestep in LES mode. The variable ivista doesn't seem to be calculated in LES, and field_get_val_prev_s is also not working for ivisct. Do you have any hint how to solve my problem?

Many thanks in advance.