Skip to content

Commit 4fab17c

Browse files
committed
update readme.rst
1 parent d002348 commit 4fab17c

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

README.rst

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ Start by cloning the repository
111111
.. code::
112112
113113
git clone https://github.com/pyansys/pyDyna
114-
115-
and copy the required files.
114+
cd pyDyna
115+
pip install -e .
116116
117117
Install in offline mode
118118
^^^^^^^^^^^^^^^^^^^^^^^
@@ -123,17 +123,17 @@ archive from the `Releases Page <https://github.com/pyansys/pydyna/releases>`_ f
123123
corresponding machine architecture.
124124

125125
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
127127
installation or on a virtual environment.
128128

129129
For example, on Linux with Python 3.8, unzip the wheelhouse archive and install it with:
130130

131131
.. code:: bash
132132
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
134134
pip install ansys-dyna-core -f wheelhouse --no-index --upgrade --ignore-installed
135135
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
137137
and install using the preceding command.
138138

139139
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:
176176
icfd_solution = DynaSolution(hostname)
177177
# Import the initial mesh data(nodes and elements)
178178
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")
181181
icfd_solution.open_files(fns)
182182
# Set total time of simulation
183183
icfd_solution.set_termination(termination_time=100)
@@ -224,7 +224,13 @@ Here is a basic pre-processing example:
224224
icfd.add(meshvol)
225225
226226
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)
228234
229235
For more examples, visit https://dyna.docs.pyansys.com/version/stable/examples/index.html
230236

docker/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Run the image as a container
5858

5959
.. code:: bash
6060
61-
docker run -d -p 50051:50051 ghcr.io/ansys/ls-pre .
61+
docker run -d -p 50051:50051 ghcr.io/ansys/ls-pre
6262
6363
* Check that the image has been created successfully.
6464

0 commit comments

Comments
 (0)