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
)
Doubts regarding cs_field_create
Forum rules
Please read the forum usage recommendations before posting.
Please read the forum usage recommendations before posting.
-
- Posts: 4208
- Joined: Mon Feb 20, 2012 3:25 pm
Re: Doubts regarding cs_field_create
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
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