Doubts regarding cs_field_create

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
sofenkumarjena
Posts: 35
Joined: Thu May 19, 2022 4:37 pm

Re: Doubts regarding cs_field_create

Post by sofenkumarjena »

Thanks Yvans,
I like to use the following function, but not sure about the value of "epsilon" and "clip_coeff". I do not find the send in any documentation. Kindly inform what is a good value to use for "epsilon" and "clip_coeff" ?

cs_gradient_tensor()
void cs_gradient_tensor ( const char * var_name,
cs_gradient_type_t gradient_type,
cs_halo_type_t halo_type,
int inc,
int n_r_sweeps,
int verbosity,
cs_gradient_limit_t clip_mode,
double epsilon,
double clip_coeff,
const cs_real_6_t bc_coeff_a[],
const cs_real_66_t bc_coeff_b[],
cs_real_6_t *restrict var,
cs_real_63_t *restrict grad
)
Yvan Fournier
Posts: 4070
Joined: Mon Feb 20, 2012 3:25 pm

Re: Doubts regarding cs_field_create

Post by Yvan Fournier »

Hello,

Epsilon is only used for the iterative gradient option. 10-5 is a usual default. As to clip_coeff, 1.5 is the default (see src/base/cs_parameters.c).

Best regards,

Yvan
Post Reply