Rheolef  7.2
an efficient C++ finite element environment
 
Loading...
Searching...
No Matches
zalesak_show.cc
Go to the documentation of this file.
1
21#include "rheolef.h"
22using namespace rheolef;
23using namespace std;
24#include "zalesak.h"
25int main(int argc, char**argv) {
26 environment rheolef (argc, argv);
27 geo omega (argv[1]);
28 string approx = (argc > 2) ? argv[2] : "P1d";
29 size_t n_max = (argc > 3) ? atoi(argv[3]) : 24;
30 space Xh (omega, approx);
31 Float tf = 4*acos(Float(-1)), delta_t = tf/n_max;
32 branch event ("t","phi");
33 for (size_t n = 0; n <= n_max; n++) {
34 Float t = n*delta_t;
35 field pi_h_phi = lazy_interpolate (Xh, phi_exact(t));
36 dout << event (t, pi_h_phi);
37 }
38}
see the Float page for the full documentation
see the branch page for the full documentation
see the field page for the full documentation
see the geo page for the full documentation
see the environment page for the full documentation
see the space page for the full documentation
int main()
Definition field2bb.cc:58
This file is part of Rheolef.
field_basic< T, M > lazy_interpolate(const space_basic< T, M > &X2h, const field_basic< T, M > &u1h)
see the interpolate page for the full documentation
Definition field.h:871
STL namespace.
rheolef - reference manual
The Zalesak slotted disk benchmark – the exact solution.