Hi Freddie, I wrote a matlab function to generate sampler plugin in 
batches. Hope this can help those in need. Regards, Kiny. 

clear all; close all;clc
fid = fopen('PyFR_sample.dat', 'w');
x = linspace(0,30.64,200);
y = -30*ones(1,length(x));
nstep = 1 ;
format = 'primative';
header = 'true'; 

for i =1:length(x)
    fprintf (fid, '[soln-plugin-sampler-%d] \n', i);
    fprintf (fid, 'nsteps = %d \n', nstep);
    fprintf (fid, 'samp-pts = [( %f, %f)] \n', x(i),y(i));
    fprintf (fid, 'format = %s \n', format);
    fprintf (fid, 'file = ./data/pyfr_%d.csv \n', i);
    fprintf (fid, 'header = %s \n', header);
    fprintf (fid, '\n');
end
fclose(fid)

-- 
You received this message because you are subscribed to the Google Groups "PyFR 
Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/pyfrmailinglist/ebeece9f-cb89-4f89-ab57-d8e8f496b5bcn%40googlegroups.com.

Reply via email to