Skip to content

Commit

Permalink
[analyticalproblems] better sign convention for Burgers flux
Browse files Browse the repository at this point in the history
  • Loading branch information
sdrave committed Jan 11, 2017
1 parent 4bbc2d3 commit fb8b505
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pymor/analyticalproblems/burgers.py
Expand Up @@ -53,10 +53,10 @@ def burgers_problem(v=1., circle=True, initial_data_type='sin', parameter_range=

rhs=None,

nonlinear_advection=ExpressionFunction('sign(x) * abs(x)**exponent * v',
nonlinear_advection=ExpressionFunction('abs(x)**exponent * v',
1, (1,), {'exponent': ()}, {'v': v}),

nonlinear_advection_derivative=ExpressionFunction('exponent * sign(x) * abs(x)**(exponent-1) * v',
nonlinear_advection_derivative=ExpressionFunction('exponent * abs(x)**(exponent-1) * sign(x) * v',
1, (1,), {'exponent': ()}, {'v': v}),
),

Expand Down Expand Up @@ -113,10 +113,10 @@ def burgers_problem_2d(vx=1., vy=1., torus=True, initial_data_type='sin', parame

rhs=None,

nonlinear_advection=ExpressionFunction("sign(x) * abs(x)**exponent * v",
nonlinear_advection=ExpressionFunction("abs(x)**exponent * v",
1, (2,), {'exponent': ()}, {'v': np.array([vx, vy])}),

nonlinear_advection_derivative=ExpressionFunction("exponent * sign(x) * abs(x)**(exponent-1) * v",
nonlinear_advection_derivative=ExpressionFunction("exponent * abs(x)**(exponent-1) * sign(x) * v",
1, (2,), {'exponent': ()}, {'v': np.array([vx, vy])}),
),

Expand Down
Binary file not shown.

0 comments on commit fb8b505

Please sign in to comment.