Add new CurlCurlSolve() to propagators#244
Closed
Monoclod wants to merge 4 commits into
Closed
Conversation
Add curl-curl solver to propagators
Member
|
@Monoclod well done! Please add some tests that prove that the new propagator works. For the convergence of higher degrees, I suggest you take a function with more variations, so that the error is larger, and set |
The file contains a 1d test and a 2d test; both can be performed in different directions with different spline degrees and mesh fineness
Author
|
Added a test for the propagator (and fixed a few comments). They seem to converge fine even for tolerances of 1e-10, oddly better than my previous attempt |
Member
|
@Monoclod can you merge with devel to see if the tests pass? |
Member
|
will be merged from another branch. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a new propagator called
CurlCurlSolve()to find weak solutions to the curl-curl problem.Find$\mathbf{E} \in H(\textnormal{curl},\Omega)$ such that
where$\mathbf J _i:\Omega \to \mathbb R^3$ is a real-valued vector field and $\sigma \in \mathbb R$ is a scalar.
Boundary terms from integration by parts are assumed to vanish.
The equation is discretized as
where$M^1$ and $M^2$ are objects of the $\mathbb P^1$ is the projector into the space $V^1_h$ .
struphy.feec.mass.WeightedMassOperatorsclass, andThe method does not converge properly for sufficiently high spline degrees and sufficiently fine mesh grids due to the inherent ill-conditionedness of the curl-curl problem; this should be solved by proper initial conditioning.