Usage
This section describes the usage of Paraqus, both with and without Abaqus. The functionality is demonstrated by the examples provided with the code.
Usage with Python alone
The general workflow for the usage of Paraqus always includes the following steps:
Create one or more
paraqus.ParaqusModelinstances, representing the geometry and data that will be exported to VTK.Create a writer for the desired file format (
paraqus.AsciiWriterorparaqus.BinaryWriter).Optional: create a
paraqus.CollectionWriterto connect VTK files based on multipleparaqus.ParaqusModelinstances, e.g. when they represent different time steps for the same model.Write the VTK files to disk.
Have a look at the pure Python examples (located in the subdirectory examples of Paraqus) to learn how to create a paraqus.ParaqusModel from scratch and how to write a VTK file based on it.
Example |
Contents |
|---|---|
|
|
|
|
|
|
|
|
|
Usage with Abaqus
When used to export models from Abaqus, the creation of the paraqus.ParaqusModel instances is handled by the paraqus.abaqus.OdbReader class. Subsequently, the steps described in Usage with Python alone are executed (writer creation and export). The following examples demonstrate how to use Paraqus with Abaqus, and need a working Abaqus installation to run.
In general, the Abaqus input files must be downloaded and an Abaqus analysis must be performed for each example. Detailed instructions can be found in the individual Python files. It is recommended to run the Abaqus analysis for each example, and then look at the output database to get a feel for the model. Only then, you should go through the Python code and try to understand what each line does, being able to reference e.g. part names with the output database.
At the end of each of the Abaqus tutorial descriptions within the example files, an exemplary pipeline for ParaView is described to visualize the results.
Example |
Contents |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|