-
Notifications
You must be signed in to change notification settings - Fork 0
Improvements from testing session #275
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
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
6b9353b
remove unused file
FedericoNegri 80f60a5
update quickstart
FedericoNegri 267983f
remove extra char
FedericoNegri 95a8e99
Use Client.url instead of the deprecated rep_url
FedericoNegri b9aa9a0
update rms models
FedericoNegri 1760d98
update installation instructions
FedericoNegri b08fb5d
update doc prep
FedericoNegri d16b32e
update workflow
FedericoNegri 6c60733
more debug
FedericoNegri 2f5feb0
fix
FedericoNegri f068e2f
description for resource requirements
FedericoNegri 0d40f24
set memory and disk space in MB in the examples
FedericoNegri 72ca0c2
remove ci changes
FedericoNegri 5fc651b
Merge branch 'main' into fnegri/test_feedback
FedericoNegri File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,79 @@ | ||
| # ---------------------------------------------------------- | ||
| # Copyright (C) 2019 by | ||
| # ANSYS Switzerland GmbH | ||
| # www.ansys.com | ||
| # | ||
| # Author(s): F.Negri | ||
| # ---------------------------------------------------------- | ||
|
|
||
| import os | ||
| from zipfile import ZipFile | ||
|
|
||
|
|
||
| def archive_examples(): | ||
| """Create a zip archive for each listed example included in the examples folder.""" | ||
|
|
||
| examples = { | ||
| "mapdl_motorbike_frame": [ | ||
| "project_setup.py", | ||
| "project_query.py", | ||
| "exec_mapdl.py", | ||
| "motorbike_frame_results.txt", | ||
| "motorbike_frame.mac", | ||
| ], | ||
| "mapdl_tyre_performance": [ | ||
| "project_setup.py", | ||
| "tire_performance_simulation.mac", | ||
| "2d_tire_geometry.iges", | ||
| ], | ||
| "mapdl_linked_analyses": [ | ||
| "project_setup.py", | ||
| "prestress.dat", | ||
| "modal.dat", | ||
| "harmonic.dat", | ||
| ], | ||
| "lsdyna_cylinder_plate": [ | ||
| "lsdyna_job.py", | ||
| "cylinder_plate.k", | ||
| "postprocess.cfile", | ||
| ], | ||
| "python_two_bar_truss_problem": [ | ||
| "project_setup.py", | ||
| "exec_python.py", | ||
| "evaluate.py", | ||
| "input_parameters.json", | ||
| ], | ||
| "fluent_2d_heat_exchanger": [ | ||
| "project_setup.py", | ||
| "heat_exchanger.jou", | ||
| "heat_exchanger.cas.h5", | ||
| ], | ||
| "fluent_nozzle": [ | ||
| "project_setup.py", | ||
| "exec_fluent.py", | ||
| "solve.jou", | ||
| "nozzle.cas", | ||
| ], | ||
| "cfx_static_mixer": [ | ||
| "project_setup.py", | ||
| "exec_cfx.py", | ||
| "runInput.ccl", | ||
| "StaticMixer_001.cfx", | ||
| "StaticMixer_001.def", | ||
| ], | ||
| } | ||
|
|
||
| os.makedirs("build", exist_ok=True) | ||
| for name, files in examples.items(): | ||
| with ZipFile(os.path.join("build", f"{name}.zip"), "w") as zip_archive: | ||
| for file in files: | ||
| zip_archive.write(os.path.join("examples", name, file), file) | ||
|
|
||
| with ZipFile(os.path.join("build", f"pyhps_examples.zip"), "w") as zip_archive: | ||
| for name, files in examples.items(): | ||
| for file in files: | ||
| zip_archive.write(os.path.join("examples", name, file), os.path.join(name, file)) | ||
|
|
||
|
|
||
| if __name__ == "__main__": | ||
| archive_examples() |
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
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
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.