Page 2 of 2

Re: Doubts regarding cs_field_create

Posted: Fri Jun 10, 2022 5:51 pm
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
)

Re: Doubts regarding cs_field_create

Posted: Sun Jun 12, 2022 12:19 am
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