Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bulk magnetic field energy postprocessing #131

Merged
merged 6 commits into from
Nov 21, 2023

Conversation

sebastiangrimberg
Copy link
Contributor

@sebastiangrimberg sebastiangrimberg commented Nov 14, 2023

config["Domains"]["Postprocessing"]["Dielectric"] is replaced by config["Domains"]["Postprocessing"]["Energy"] to output both the electric and magnetic field energies in certain parts of the domain. The previous functionality (electric field participation ratios, loss factors) are all still available using the data in domain-E.csv.

TODO: Depends on #129

@sebastiangrimberg sebastiangrimberg added enhancement New feature or request postprocessing Related to simulation postprocessing labels Nov 14, 2023
@sebastiangrimberg sebastiangrimberg changed the base branch from main to sjg/eigenmode-port-postpro November 14, 2023 18:31
@sebastiangrimberg sebastiangrimberg force-pushed the sjg/eigenmode-port-postpro branch 3 times, most recently from e313a33 to 59bd14f Compare November 14, 2023 22:55
@sebastiangrimberg sebastiangrimberg marked this pull request as ready for review November 14, 2023 23:09
Base automatically changed from sjg/eigenmode-port-postpro to main November 16, 2023 20:07
@sebastiangrimberg sebastiangrimberg force-pushed the sjg/domain-postpro-energy branch 2 times, most recently from db6f96e to 5256ace Compare November 16, 2023 21:10
Copy link
Collaborator

@hughcars hughcars left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only things I could see are comments/documentation, the code looks great.

// Access underlying bulk loss postprocessing data structures (for keys).
const auto &GetEps() const { return M_NDi; }
auto SizeEps() const { return M_NDi.size(); }
// Access data structures for the postprocessing the domain with the given type.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think one of those "the" is an error.

@@ -91,13 +91,10 @@ class SurfacePostOperator
SurfacePostOperator(const IoData &iodata, const MaterialOperator &mat_op,
mfem::ParFiniteElementSpace &h1_fespace);

// Access data structures for the postprocessing surface with the given type.
// Access data structures for the postprocessing the surface with the given type.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think one of those "the" is an error.

Comment on lines 77 to 78
[`config["Domains"]["Postprocessing"]["Bulk]"`]
(../config/domains.md#domains["Postprocessing"]["Energy"]) object is used to extract the
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The link there is from Bulk to Energy, whereas they were previously both Dielectric, is the name mismatch on purpose?


`"Attributes" [None]` : Integer array of mesh domain attributes for this lossy domain.
`"Attributes" [None]` : Integer array of mesh domain attributes for this bulk domain.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it need bulk here? Is this differentiating from a non-bulk (I guess a surface?) domain?

Comment on lines 46 to 48
// Get volume integrals for bulk electric or magnetic field energy in a portion of the
// domain.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"for the electric or magnetic" to match above? Or is there an extra meaning to bulk I am missing?

@sebastiangrimberg sebastiangrimberg merged commit 2ff4d48 into main Nov 21, 2023
17 checks passed
@sebastiangrimberg sebastiangrimberg deleted the sjg/domain-postpro-energy branch November 21, 2023 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request postprocessing Related to simulation postprocessing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants