-
Notifications
You must be signed in to change notification settings - Fork 56
Adding an example demonstrating Fluent using Python: Fluid flow and … #199
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
Conversation
...at_transfer_in_a_mixing_elbow/fluid_flow_and_heat_transfer_in_a_mixing_elbow_settings_api.py
Outdated
Show resolved
Hide resolved
...at_transfer_in_a_mixing_elbow/fluid_flow_and_heat_transfer_in_a_mixing_elbow_settings_api.py
Show resolved
Hide resolved
…heat transfer in a mixing elbow
fc52e42 to
f704699
Compare
| else: | ||
| s.workflow.TaskObject["Import Geometry"].Arguments = dict( | ||
| FileName="mixing_elbow.pmdb", LengthUnit="in" | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
another option is to create a string variable and assign it different values depending on the platform (or even just the extension part). Can also insert that conditional inline inside the dict instantiation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@seanpearsonuk Thank you. I will make the change,
if os.name == "nt":
Part_Name = "mixing_elbow.scdoc"
else:
Part_Name = "mixing_elbow.pmdb"
s.workflow.TaskObject["Import Geometry"].Arguments = dict(
FileName=Part_Name, LengthUnit="in"
)
|
The binary/large files uploaded in this example and contained within this directory will not be easily downloaded when users attempt to download the example as in the mapdl examples: The solution for these "extra" files is to use a "downloads" module within this library. See: https://github.com/pyansys/pymapdl/blob/main/src/ansys/mapdl/core/examples/downloads.py This approach is used by DPF and PyAEDT as well. You can store your "example-data" in the https://github.com/pyansys/example-data repository. I'd recommend creating a When implemented, this downloads/examples module will look like from ansys.fluent.core import examples
# note that this method just returns a file path
file_name = examples.download_some_file()
# ... load file |
Hi Alex, yup, we are planning to do that but for this example we are just trying to get it running at all at the moment. |
|
@ypatel-qa The example scripts have been merged with PR #222. You may close this PR. |

…heat transfer in a mixing elbow