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

Units class takes units_dict for tigris or custom unit systems. #31

Merged
merged 1 commit into from
Feb 13, 2024

Conversation

jeonggyukim
Copy link
Owner

@jeonggyukim jeonggyukim commented Feb 8, 2024

For tigris simulations, the mass unit for "ism" unit system was set incorrectly (off by a factor 1.4).

  • Improved Units class so that it can take kind="custom" argument (used for tigris simulations). In this case, units_dict should be provided (same as <units> block in athinput).
  • Improved documentation.

Possible future improvements:

  • Can implement Units class as dataclass and make it immutable.

@jeonggyukim jeonggyukim added the bug Something isn't working label Feb 8, 2024
@jeonggyukim jeonggyukim self-assigned this Feb 8, 2024
@jeonggyukim jeonggyukim merged commit 3b569cc into master Feb 13, 2024
1 check passed
@jeonggyukim jeonggyukim deleted the unit-improve branch February 18, 2024 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant