You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-4Lines changed: 11 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,19 +16,26 @@ Install requirements with
16
16
17
17
## Usage
18
18
19
+
Step2gmsh requires two diferent files:
20
+
- A json file where material properties are described for each geometry
21
+
- A step file with all the geometry info
22
+
23
+
Both files must have the same label and share folder path.
24
+
An example of those files can be found in [Five wires case](testData/five_wires/)
25
+
19
26
Launch from command line as
20
27
21
28
```shell
22
29
python src/step2gmsh.py <-i path_to_step_file>
23
30
```
24
31
25
-
The tested input step files have been generated with [FreeCAD](https://www.freecad.org/). The geometrical entities within the step file must be separated in layers. The operations which are performed of the different layers depend on their name.
32
+
The tested input step files have been generated with [FreeCAD](https://www.freecad.org/). The geometrical entities within the step file must be separated in layers. The operations performed on the different layers depend on their material asignment registered in the json file.
26
33
27
-
- A layer named `Conductor_N` with `N` being an integer represents a perfect conductor. `Conductor_0` is a special case of which represents the ground and defines the global domain. For layers named `Conductor_N` with `N`different to zero their areas will be substracted from the computational domain and removed.
28
-
- Layers named as `Dielectric_N` are used to identify regions which will have a material assigned.
34
+
- A layer with a `PEC material`, represent a perfect conductor. In case one of the layers surrounds the rest of elements, it will be asigned as ground and defines the global domain for the rest of conductors. Internally, this will be represented as Conductor_0. The areas of the rest of conductors different to zero will be substracted from the computational domain and removed. In open cases, Conductor_0 is just another conductor and the domain is defined using the bounding box of the layers.
35
+
- Layers registered as `Dielectric` are used to identify regions which will have a material assigned.
29
36
- Open and semi-open problems can be defined using a single layer called `OpenBoundary`.
30
37
31
-
Below is shown an example of a closed case with 6 conductors and 5 dielectrics, the external boundary corresponds to `Conductor_0`. The case is modeled with FreeCAD and can be found in the `testData/five_wires` folder together with the exported as a step file. The resulting mesh after applying `step2gmsh` is shown below.
38
+
Below is shown an example of a closed case with 6 conductors and 5 dielectrics, the external boundary corresponds to `Conductor_0`. The case is modeled with FreeCAD and can be found in the [testData/five_wires](testData/five_wires/) folder together with the exported as a step file. The resulting mesh after applying `step2gmsh` is shown below.
32
39
33
40

34
41

0 commit comments