Skip to content
Snippets Groups Projects
Unverified Commit a2911a65 authored by orestis.malaspin's avatar orestis.malaspin
Browse files

added example with filtering

parent c48d67ec
No related branches found
No related tags found
No related merge requests found
Pipeline #12205 passed
......@@ -29,10 +29,11 @@ int main(int argc, char *argv[]) {
}
v = v_ini = 1.0;
double omega = 10.0;
double omega_low = 1.0;
double omega = 100.0;
int i = 0;
for (double t = 0.0; t < max_t; t += dt) {
rc.eps = v_ini * (1.0 + cos(omega * t));
rc.eps = v_ini * (1.0 + cos(omega * t) + cos(omega_low * t));
double ve = exact_solution(t, v_ini, &rc);
printf("t = %f, v = %f, v_e = %f, diff = %f\n", t, v, ve, ve - v);
x[i] = t;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment