@@ -111,8 +111,8 @@ Start by cloning the repository
111
111
.. code ::
112
112
113
113
git clone https://github.com/pyansys/pyDyna
114
-
115
- and copy the required files .
114
+ cd pyDyna
115
+ pip install -e .
116
116
117
117
Install in offline mode
118
118
^^^^^^^^^^^^^^^^^^^^^^^
@@ -123,17 +123,17 @@ archive from the `Releases Page <https://github.com/pyansys/pydyna/releases>`_ f
123
123
corresponding machine architecture.
124
124
125
125
Each wheelhouse archive contains all the Python wheels necessary to install PyDyna from scratch on Windows
126
- and Linux, from Python 3.6,3.8 and 3.9 . You can install this on an isolated system with a fresh Python
126
+ and Linux, from Python 3.7 to 3.10 . You can install this on an isolated system with a fresh Python
127
127
installation or on a virtual environment.
128
128
129
129
For example, on Linux with Python 3.8, unzip the wheelhouse archive and install it with:
130
130
131
131
.. code :: bash
132
132
133
- unzip ansys-dyna-core-v0.3.dev0-wheelhouse-Linux-3.8.zip wheelhouse
133
+ unzip ansys-dyna-core-v0.3.dev0-wheelhouse-Linux-3.8.zip -d wheelhouse
134
134
pip install ansys-dyna-core -f wheelhouse --no-index --upgrade --ignore-installed
135
135
136
- If you are on Windows with Python 3.9 , unzip the corresponding wheelhouse to a wheelhouse directory
136
+ If you are on Windows with Python 3.8 , unzip the corresponding wheelhouse to a wheelhouse directory
137
137
and install using the preceding command.
138
138
139
139
Consider installing using a `virtual environment <https://docs.python.org/3/library/venv.html >`_.
@@ -176,8 +176,8 @@ Here is a basic pre-processing example:
176
176
icfd_solution = DynaSolution(hostname)
177
177
# Import the initial mesh data(nodes and elements)
178
178
fns = []
179
- path = examples.cylinder_flow + os.sep
180
- fns.append(path + " cylinder_flow.k" )
179
+ path = os.getcwd() + os.sep
180
+ fns.append(path+ " cylinder_flow.k" )
181
181
icfd_solution.open_files(fns)
182
182
# Set total time of simulation
183
183
icfd_solution.set_termination(termination_time = 100 )
@@ -224,7 +224,13 @@ Here is a basic pre-processing example:
224
224
icfd.add(meshvol)
225
225
226
226
icfd_solution.create_database_binary(dt = 1 )
227
- icfd_solution.save_file()
227
+ serverpath = icfd_solution.save_file()
228
+ serveroutfile = ' /' .join((serverpath," cylinder_flow.k" ))
229
+ downloadpath = os.path.join(os.getcwd(), " output" )
230
+ if not os.path.exists(downloadpath):
231
+ os.makedirs(downloadpath)
232
+ downloadfile = os.path.join(downloadpath," cylinder_flow.k" )
233
+ icfd_solution.download(serveroutfile,downloadfile)
228
234
229
235
For more examples, visit https://dyna.docs.pyansys.com/version/stable/examples/index.html
230
236
0 commit comments