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 option to export to cub5 #111

Closed
wants to merge 5 commits into from
Closed

Conversation

Edgar-21
Copy link
Contributor

@Edgar-21 Edgar-21 commented Jun 1, 2024

added an option to export to cub5 as an optional arg for the stellarator.export_dagmc() method. Added a test for this method as well, not sure if it is necessary or not since this is sort of an internal cubit thing and if the DAGMC file gets generated I would expect that the .cub5 file will also be written, though I suppose this test would catch if coreform ever changes that syntax on us.

Also added a small change to config.yaml to allow it to work from the command line, I tested both from the command line and from the python interface and things seem to work as expected. Tests are passing locally as well.

closes #93
works with yaml, and has the same filename as specified for the DAGMC file

@Edgar-21
Copy link
Contributor Author

Edgar-21 commented Jun 1, 2024

I see I am not passing CI tests I'll try to get to the bottom of it

Copy link
Member

@gonuke gonuke left a comment

Choose a reason for hiding this comment

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

One quick comment here.

I think all PRs need to be on branches on the upstream repo and not on forks for CI to work/have access to secrets.

@@ -63,6 +63,7 @@ invessel_build:
mat_tag: vac_vessel
plasma_mat_tag: Vacuum
sol_mat_tag: Vacuum
split_chamber: True
Copy link
Member

Choose a reason for hiding this comment

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

Is this a necessary part of this PR? or just left over from your testing?

Copy link
Member

Choose a reason for hiding this comment

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

Just saw #110...

@Edgar-21
Copy link
Contributor Author

Edgar-21 commented Jun 1, 2024

I'll try from a branch on the upstream

@Edgar-21 Edgar-21 closed this Jun 1, 2024
@Edgar-21 Edgar-21 deleted the export_cub5 branch June 3, 2024 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add an option to save a Cubit cub file
2 participants