Default format of probes

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
konst
Posts: 30
Joined: Sun Sep 17, 2017 7:41 pm

Default format of probes

Post by konst »

Hello!

I define a set of monitoring probes in the cs_user_postprocess.c:

Code: Select all

/* Define monitoring probes */

  /* A writer (id = CS_POST_WRITER_PROBES) using the format "time_plot" is
     associated by default to a set of monitoring probes.
     This is not the case for a profile. */
      {

     cs_coord_t a = 0.00333333;
     cs_coord_t base = 1.03;
     cs_coord_t x = 0.0;
     cs_coord_t y = 0.0;
     cs_coord_t z = 0.0;
     int N = 230;
     char y_str[128]; memset(y_str, '\0', sizeof(y_str));


     cs_probe_set_t  *pset = cs_probe_set_create("Monitoring");
     for(int i = 0; i<N; i++){
             y = a*pow(base,i)-a;
             sprintf(y_str,"%.6f", y);
             cs_probe_set_add_probe(pset, x, y, z, y_str);
     }

  }
I have a problem linked to the update of a CSv6.0. In the previous versions of CS the default format associated by default to a set of monitoring probes was .csv, but now it is .dat format. Is that correct?

Is that possible change the format of associated by default to a set of monitoring probes?

Thanks,
Konstantin
Yvan Fournier
Posts: 4077
Joined: Mon Feb 20, 2012 3:25 pm

Re: Default format of probes

Post by Yvan Fournier »

Hello Constantin,

It should not have changed but I think there was a bug fix related to the value set in the GUI not being handled correctly.

Which setting do you have In the GUI ?

Best regards,

Yvsn
Post Reply