zalesak_show.cc
Go to the documentation of this file.
#include "rheolef.h"
using namespace rheolef;
using namespace std;
#include "zalesak.h"
int main(int argc, char**argv) {
environment rheolef (argc, argv);
geo omega (argv[1]);
string approx = (argc > 2) ? argv[2] : "P1d";
size_t n_max = (argc > 3) ? atoi(argv[3]) : 24;
space Xh (omega, approx);
Float tf = 4*acos(Float(-1)), delta_t = tf/n_max;
branch event ("t","phi");
for (size_t n = 0; n <= n_max; n++) {
Float t = n*delta_t;
dout << event (t, interpolate(Xh, phi_exact(t)));
}
}
Float
see the Float page for the full documentation
branch
see the branch page for the full documentation
geo
see the geo page for the full documentation
rheolef::environment
see the environment page for the full documentation
Definition: environment.h:115
rheolef::std
Definition: vec_expr_v2.h:402
rheolef::Float
double Float
see the Float page for the full documentation
Definition: Float.h:143
rheolef::dout
odiststream dout(cout)
see the diststream page for the full documentation
Definition: diststream.h:430
space
see the space page for the full documentation
mkgeo_ball.n
int n
Definition: mkgeo_ball.sh:150
rheolef
This file is part of Rheolef.
Definition: compiler_eigen.h:37
rheolef::interpolate
field_basic< T, M > interpolate(const space_basic< T, M > &V2h, const field_basic< T, M > &u1h)
see the interpolate page for the full documentation
Definition: interpolate.cc:233
rheolef.h
rheolef - reference manual
phi_exact
Definition: transport_dg2.h:30
zalesak.h
The Zalesak slotted disk benchmark – the exact solution.
main
int main(int argc, char **argv)
Definition: zalesak_show.cc:25