[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ff3d-users] Min/Max & read a function
From: |
Stephane Del Pino |
Subject: |
Re: [ff3d-users] Min/Max & read a function |
Date: |
Mon, 19 Feb 2007 16:57:30 +0100 |
User-agent: |
KMail/1.9.5 |
Le lundi 19 février 2007 16:31, Cécile Giorla a écrit :
> Hello,
> I have some questions :
>
> 1) Is there a min, max function (min between 2 values and min of a
> function over the mesh) ?
I think this sample answers your questions
-----------8<-----------
vector b = <1,1,1>;
vector n = <5,5,5>;
mesh m = structured(n,a,b);
function f = x+y;
function g = z;
function h = min(f,g); // <- defines a new function
double fmin = min[m](f);
double gmax = max[m](g);
cout << "h(0.5,0.5,0.5)=" << h(0.5,0.5,0.5) << "\n";
cout << "fmin=" << fmin << "\n";
cout << "gmax=" << gmax << "\n";
-----------8<-----------
> 2) How can I read in ff3d a function save in a vtk/vtu file ?
I am afraid this is not implemented. I put it on my TODO list. This should be
done this week.
> 3) How can I read a vectoriel function save in a vtk/vtu or bb format?
> (when it was saved with save(vtk,"filename",[ux, uy, uz],M))
This is also not possible. I will try to had this soon. Up to now you can only
read *scalar* data using the 'medit' or the 'raw' formats. So, if you want to
continue a simulation save your data using medit.
Best regards,
Stéphane.