lsdyna-mesh-reader 0.1.0__tar.gz → 0.1.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {lsdyna-mesh-reader-0.1.0 → lsdyna-mesh-reader-0.1.2}/PKG-INFO +5 -3
- {lsdyna-mesh-reader-0.1.0 → lsdyna-mesh-reader-0.1.2}/README.md +3 -2
- {lsdyna-mesh-reader-0.1.0 → lsdyna-mesh-reader-0.1.2}/docs/source/api.rst +9 -0
- {lsdyna-mesh-reader-0.1.0 → lsdyna-mesh-reader-0.1.2}/pyproject.toml +3 -2
- {lsdyna-mesh-reader-0.1.0 → lsdyna-mesh-reader-0.1.2}/src/deck.cpp +145 -27
- {lsdyna-mesh-reader-0.1.0 → lsdyna-mesh-reader-0.1.2}/src/lsdyna_mesh_reader/_deck.pyi +4 -0
- {lsdyna-mesh-reader-0.1.0 → lsdyna-mesh-reader-0.1.2}/src/lsdyna_mesh_reader/deck.py +63 -4
- lsdyna-mesh-reader-0.1.2/src/lsdyna_mesh_reader/examples/__init__.py +133 -0
- lsdyna-mesh-reader-0.1.2/src/lsdyna_mesh_reader/examples/ex_13_thick_shell_elform_2.k +566 -0
- lsdyna-mesh-reader-0.1.0/src/lsdyna_mesh_reader/examples/__init__.py +0 -37
- {lsdyna-mesh-reader-0.1.0 → lsdyna-mesh-reader-0.1.2}/CMakeLists.txt +0 -0
- {lsdyna-mesh-reader-0.1.0 → lsdyna-mesh-reader-0.1.2}/LICENSE +0 -0
- {lsdyna-mesh-reader-0.1.0 → lsdyna-mesh-reader-0.1.2}/docs/source/_templates/autosummary/base.rst +0 -0
- {lsdyna-mesh-reader-0.1.0 → lsdyna-mesh-reader-0.1.2}/docs/source/_templates/autosummary/class.rst +0 -0
- {lsdyna-mesh-reader-0.1.0 → lsdyna-mesh-reader-0.1.2}/docs/source/_templates/autosummary/module.rst +0 -0
- {lsdyna-mesh-reader-0.1.0 → lsdyna-mesh-reader-0.1.2}/docs/source/_templates/custom-class-template.rst +0 -0
- {lsdyna-mesh-reader-0.1.0 → lsdyna-mesh-reader-0.1.2}/docs/source/_templates/custom-module-template.rst +0 -0
- {lsdyna-mesh-reader-0.1.0 → lsdyna-mesh-reader-0.1.2}/docs/source/conf.py +0 -0
- {lsdyna-mesh-reader-0.1.0 → lsdyna-mesh-reader-0.1.2}/docs/source/index.md +0 -0
- {lsdyna-mesh-reader-0.1.0 → lsdyna-mesh-reader-0.1.2}/src/array_support.h +0 -0
- {lsdyna-mesh-reader-0.1.0 → lsdyna-mesh-reader-0.1.2}/src/lsdyna_mesh_reader/__init__.py +0 -0
- {lsdyna-mesh-reader-0.1.0 → lsdyna-mesh-reader-0.1.2}/src/lsdyna_mesh_reader/examples/EXP_SC_JOINT_SCREW.key +0 -0
- {lsdyna-mesh-reader-0.1.0 → lsdyna-mesh-reader-0.1.2}/src/lsdyna_mesh_reader/examples/bird.k +0 -0
- {lsdyna-mesh-reader-0.1.0 → lsdyna-mesh-reader-0.1.2}/src/lsdyna_mesh_reader/examples/birdball.k +0 -0
- {lsdyna-mesh-reader-0.1.0 → lsdyna-mesh-reader-0.1.2}/src/lsdyna_mesh_reader/examples/bracket.k +0 -0
- {lsdyna-mesh-reader-0.1.0 → lsdyna-mesh-reader-0.1.2}/src/lsdyna_mesh_reader/examples/wheel.k +0 -0
- {lsdyna-mesh-reader-0.1.0 → lsdyna-mesh-reader-0.1.2}/src/lsdyna_mesh_reader/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: lsdyna-mesh-reader
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: Read nodes and elements from LS-DYNA decks.
|
|
5
5
|
Author-Email: Alex Kaszynski <akascap@gmail.com>
|
|
6
6
|
Classifier: Development Status :: 4 - Beta
|
|
@@ -14,6 +14,7 @@ Classifier: Programming Language :: Python :: 3.9
|
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.10
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.11
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Project-URL: Documentation, https://akaszynski.github.io/lsdyna-mesh-reader/
|
|
17
18
|
Project-URL: Repository, https://github.com/akaszynski/lsdyna-mesh-reader
|
|
18
19
|
Requires-Python: >=3.9
|
|
19
20
|
Requires-Dist: numpy>=1.22.4
|
|
@@ -29,7 +30,7 @@ Description-Content-Type: text/markdown
|
|
|
29
30
|
|
|
30
31
|
This library can be used to read in LS-DYNA meshes stored within keyword
|
|
31
32
|
(`*.k`, `*.key`, `*.dyn`) files, also known as keyword format "input
|
|
32
|
-
decks".
|
|
33
|
+
decks". Full documentation for this repository can be found at [lsdyna-mesh-reader Documentation](https://akaszynski.github.io/lsdyna-mesh-reader/).
|
|
33
34
|
|
|
34
35
|
Many of these example files were obtained from the excellent documentation at
|
|
35
36
|
[LS-DYNA Examples](https://www.dynaexamples.com/).
|
|
@@ -196,7 +197,7 @@ PyVista. For example, you could plot the resulting mesh. Here's a full example u
|
|
|
196
197
|
>>> grid.plot(color="w", smooth_shading=True, show_edges=True)
|
|
197
198
|
```
|
|
198
199
|
|
|
199
|
-

|
|
200
201
|
|
|
201
202
|
### Caveats and Limitations
|
|
202
203
|
|
|
@@ -208,6 +209,7 @@ Additionally, this reader only supports the following keywords:
|
|
|
208
209
|
* `*NODE`
|
|
209
210
|
* `*ELEMENT_SHELL`
|
|
210
211
|
* `*ELEMENT_SOLID`
|
|
212
|
+
* `*ELEMENT_TSHELL` (note: sections encoded as solid sections)
|
|
211
213
|
|
|
212
214
|
The VTK UnstructuredGrid contains only the linear element conversion of the
|
|
213
215
|
underlying LS-DYNA elements, and only supports `VTK_QUAD`, `VTK_TRIANGLE`,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
This library can be used to read in LS-DYNA meshes stored within keyword
|
|
4
4
|
(`*.k`, `*.key`, `*.dyn`) files, also known as keyword format "input
|
|
5
|
-
decks".
|
|
5
|
+
decks". Full documentation for this repository can be found at [lsdyna-mesh-reader Documentation](https://akaszynski.github.io/lsdyna-mesh-reader/).
|
|
6
6
|
|
|
7
7
|
Many of these example files were obtained from the excellent documentation at
|
|
8
8
|
[LS-DYNA Examples](https://www.dynaexamples.com/).
|
|
@@ -169,7 +169,7 @@ PyVista. For example, you could plot the resulting mesh. Here's a full example u
|
|
|
169
169
|
>>> grid.plot(color="w", smooth_shading=True, show_edges=True)
|
|
170
170
|
```
|
|
171
171
|
|
|
172
|
-

|
|
173
173
|
|
|
174
174
|
### Caveats and Limitations
|
|
175
175
|
|
|
@@ -181,6 +181,7 @@ Additionally, this reader only supports the following keywords:
|
|
|
181
181
|
* `*NODE`
|
|
182
182
|
* `*ELEMENT_SHELL`
|
|
183
183
|
* `*ELEMENT_SOLID`
|
|
184
|
+
* `*ELEMENT_TSHELL` (note: sections encoded as solid sections)
|
|
184
185
|
|
|
185
186
|
The VTK UnstructuredGrid contains only the linear element conversion of the
|
|
186
187
|
underlying LS-DYNA elements, and only supports `VTK_QUAD`, `VTK_TRIANGLE`,
|
|
@@ -3,6 +3,8 @@ API Reference
|
|
|
3
3
|
|
|
4
4
|
The following section contains the API reference for ``lsdyna-mesh-reader``.
|
|
5
5
|
|
|
6
|
+
**Reader**
|
|
7
|
+
|
|
6
8
|
.. autosummary::
|
|
7
9
|
:toctree: _autosummary
|
|
8
10
|
:template: custom-class-template.rst
|
|
@@ -11,3 +13,10 @@ The following section contains the API reference for ``lsdyna-mesh-reader``.
|
|
|
11
13
|
lsdyna_mesh_reader._deck.NodeSection
|
|
12
14
|
lsdyna_mesh_reader._deck.ElementShellSection
|
|
13
15
|
lsdyna_mesh_reader._deck.ElementSolidSection
|
|
16
|
+
|
|
17
|
+
**Examples**
|
|
18
|
+
|
|
19
|
+
.. autosummary::
|
|
20
|
+
:toctree: _autosummary
|
|
21
|
+
|
|
22
|
+
lsdyna_mesh_reader.examples
|
|
@@ -26,18 +26,19 @@ description = "Read nodes and elements from LS-DYNA decks."
|
|
|
26
26
|
name = "lsdyna-mesh-reader"
|
|
27
27
|
readme = "README.md"
|
|
28
28
|
requires-python = ">=3.9"
|
|
29
|
-
version = "0.1.
|
|
29
|
+
version = "0.1.2"
|
|
30
30
|
|
|
31
31
|
[project.optional-dependencies]
|
|
32
32
|
docs = ["pydata-sphinx-theme", "numpydoc", "sphinx", "sphinx-copybutton", "myst-parser"]
|
|
33
33
|
|
|
34
34
|
[project.urls]
|
|
35
|
+
Documentation = "https://akaszynski.github.io/lsdyna-mesh-reader/"
|
|
35
36
|
Repository = "https://github.com/akaszynski/lsdyna-mesh-reader"
|
|
36
37
|
|
|
37
38
|
[tool.cibuildwheel]
|
|
38
39
|
archs = ["auto64"] # 64-bit only
|
|
39
40
|
skip = "cp38-* cp313-* pp* *musllinux*" # 3.9-3.12 and no PyPy and musl-based wheels
|
|
40
|
-
test-command = "pytest {project}/tests"
|
|
41
|
+
test-command = "pytest {project}/tests -v"
|
|
41
42
|
test-requires = "pytest pyvista"
|
|
42
43
|
|
|
43
44
|
[tool.cibuildwheel.macos]
|
|
@@ -201,8 +201,12 @@ public:
|
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
+
// True when at end of file
|
|
204
205
|
bool eof() { return current >= start + size; }
|
|
205
206
|
|
|
207
|
+
// True when at end of line (DOS and UNIX EOF)
|
|
208
|
+
bool eol() { return *current == '\n' || *current == '\r'; }
|
|
209
|
+
|
|
206
210
|
bool read_line() {
|
|
207
211
|
line.clear();
|
|
208
212
|
if (current >= start + size) {
|
|
@@ -349,32 +353,60 @@ static inline void ans_strtod(char *raw, int fltsz,
|
|
|
349
353
|
#endif
|
|
350
354
|
}
|
|
351
355
|
|
|
356
|
+
// FORTRAN-like scientific notation string formatting
|
|
357
|
+
void FormatWithExp(char *buffer, size_t buffer_size, double value, int width,
|
|
358
|
+
int precision, int num_exp) {
|
|
359
|
+
// Format the value using snprintf with given width and precision
|
|
360
|
+
snprintf(buffer, buffer_size, "% *.*E", width, precision, value);
|
|
361
|
+
|
|
362
|
+
// Find the 'E' in the output, which marks the beginning of the exponent.
|
|
363
|
+
char *exponent_pos = strchr(buffer, 'E');
|
|
364
|
+
|
|
365
|
+
// Check the current length of the exponent (after 'E+')
|
|
366
|
+
int exp_length = strlen(exponent_pos + 2);
|
|
367
|
+
|
|
368
|
+
// If the exponent is shorter than the desired number of digits
|
|
369
|
+
if (exp_length < num_exp) {
|
|
370
|
+
// Shift the exponent one place to the right and prepend a '0'
|
|
371
|
+
for (int i = exp_length + 1; i > 0; i--) {
|
|
372
|
+
exponent_pos[2 + i] = exponent_pos[1 + i];
|
|
373
|
+
}
|
|
374
|
+
exponent_pos[2] = '0';
|
|
375
|
+
|
|
376
|
+
// Shift the entire buffer to the left to remove the space added by snprintf
|
|
377
|
+
memmove(
|
|
378
|
+
buffer, buffer + 1,
|
|
379
|
+
strlen(
|
|
380
|
+
buffer)); // length of buffer not recalculated, using previous value
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
|
|
352
384
|
struct NodeSection {
|
|
353
385
|
NDArray<int, 1> nid;
|
|
354
386
|
NDArray<double, 2> coord;
|
|
355
387
|
NDArray<int, 1> tc;
|
|
356
388
|
NDArray<int, 1> rc;
|
|
357
389
|
int n_nodes = 0;
|
|
358
|
-
|
|
390
|
+
int fpos = 0;
|
|
359
391
|
|
|
360
392
|
// Default constructor
|
|
361
393
|
NodeSection() {}
|
|
362
394
|
|
|
363
395
|
NodeSection(std::vector<int> nid_vec, std::vector<double> nodes_vec,
|
|
364
396
|
std::vector<int> tc_vec, std::vector<int> rc_vec,
|
|
365
|
-
|
|
366
|
-
_has_constraints = has_constraints;
|
|
397
|
+
int file_position) {
|
|
367
398
|
n_nodes = nid_vec.size();
|
|
368
399
|
std::array<int, 1> nid_shape = {static_cast<int>(n_nodes)};
|
|
369
400
|
std::array<int, 2> coord_shape = {static_cast<int>(n_nodes), 3};
|
|
370
401
|
|
|
402
|
+
// store file position where node block began
|
|
403
|
+
fpos = file_position;
|
|
404
|
+
|
|
371
405
|
// Wrap vectors as NDArrays
|
|
372
406
|
nid = WrapVectorAsNDArray(std::move(nid_vec), nid_shape);
|
|
373
407
|
coord = WrapVectorAsNDArray(std::move(nodes_vec), coord_shape);
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
rc = WrapVectorAsNDArray(std::move(rc_vec), nid_shape);
|
|
377
|
-
}
|
|
408
|
+
tc = WrapVectorAsNDArray(std::move(tc_vec), nid_shape);
|
|
409
|
+
rc = WrapVectorAsNDArray(std::move(rc_vec), nid_shape);
|
|
378
410
|
}
|
|
379
411
|
|
|
380
412
|
int Length() { return n_nodes; }
|
|
@@ -403,10 +435,9 @@ struct NodeSection {
|
|
|
403
435
|
<< std::setw(15) << std::scientific << std::setprecision(8)
|
|
404
436
|
<< coord(i, 2) << " "; // Z
|
|
405
437
|
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
}
|
|
438
|
+
// constraints
|
|
439
|
+
oss << std::setw(8) << tc(i) << " " // tc
|
|
440
|
+
<< std::setw(8) << rc(i); // rc
|
|
410
441
|
|
|
411
442
|
oss << "\n";
|
|
412
443
|
}
|
|
@@ -669,8 +700,6 @@ public:
|
|
|
669
700
|
std::cout << "Reading node section" << std::endl;
|
|
670
701
|
#endif
|
|
671
702
|
|
|
672
|
-
bool has_constraints = true; // assume true
|
|
673
|
-
|
|
674
703
|
// Since we don't know the total number of nodes, we'll use vectors here,
|
|
675
704
|
// even though a malloc would be more efficient. Seems they don't store the
|
|
676
705
|
// total number of nodes per section.
|
|
@@ -685,6 +714,8 @@ public:
|
|
|
685
714
|
std::vector<int> rc;
|
|
686
715
|
rc.reserve(NNUM_RESERVE);
|
|
687
716
|
|
|
717
|
+
int start_pos = memmap.tellg();
|
|
718
|
+
|
|
688
719
|
int index = 0;
|
|
689
720
|
while (memmap[0] != '*') {
|
|
690
721
|
|
|
@@ -722,24 +753,32 @@ public:
|
|
|
722
753
|
std::cout << "Done reading coordinates " << std::endl;
|
|
723
754
|
#endif
|
|
724
755
|
|
|
725
|
-
// constraints
|
|
726
|
-
if
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
756
|
+
// Populate constraints. These may be missing from the node section, and
|
|
757
|
+
// if they are, populate a zero.
|
|
758
|
+
if (memmap.eol()) {
|
|
759
|
+
#ifdef DEBUG
|
|
760
|
+
std::cout << "EOL on tc" << std::endl;
|
|
761
|
+
#endif
|
|
762
|
+
tc.push_back(0);
|
|
763
|
+
} else {
|
|
731
764
|
tc.push_back(fast_atoi(memmap.current, 8));
|
|
732
765
|
memmap += 8;
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
if (memmap.eol()) {
|
|
769
|
+
#ifdef DEBUG
|
|
770
|
+
std::cout << "EOL on rc" << std::endl;
|
|
771
|
+
#endif
|
|
772
|
+
rc.push_back(0);
|
|
773
|
+
} else {
|
|
733
774
|
rc.push_back(fast_atoi(memmap.current, 8));
|
|
734
|
-
memmap += 8;
|
|
735
775
|
}
|
|
736
776
|
|
|
737
777
|
// skip remainder of the line
|
|
738
778
|
memmap.seek_eol();
|
|
739
779
|
}
|
|
740
780
|
|
|
741
|
-
NodeSection *node_section =
|
|
742
|
-
new NodeSection(nid, coord, tc, rc, has_constraints);
|
|
781
|
+
NodeSection *node_section = new NodeSection(nid, coord, tc, rc, start_pos);
|
|
743
782
|
node_sections.push_back(*node_section);
|
|
744
783
|
|
|
745
784
|
return;
|
|
@@ -831,10 +870,11 @@ public:
|
|
|
831
870
|
}
|
|
832
871
|
|
|
833
872
|
first_char = memmap[0];
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
873
|
+
#ifdef DEBUG
|
|
874
|
+
std::cout << "Read character: " << static_cast<char>(first_char)
|
|
875
|
+
<< std::endl;
|
|
876
|
+
#endif
|
|
877
|
+
|
|
838
878
|
// Check if line contains a keyword
|
|
839
879
|
if (first_char != '*') {
|
|
840
880
|
memmap.seek_eol();
|
|
@@ -848,6 +888,8 @@ public:
|
|
|
848
888
|
ReadElementSolidSection();
|
|
849
889
|
} else if (memmap.line.compare(0, 14, "*ELEMENT_SHELL") == 0) {
|
|
850
890
|
ReadElementShellSection();
|
|
891
|
+
} else if (memmap.line.compare(0, 15, "*ELEMENT_TSHELL") == 0) {
|
|
892
|
+
ReadElementSolidSection();
|
|
851
893
|
}
|
|
852
894
|
}
|
|
853
895
|
}
|
|
@@ -855,6 +897,79 @@ public:
|
|
|
855
897
|
int ReadLine() { return memmap.read_line(); }
|
|
856
898
|
};
|
|
857
899
|
|
|
900
|
+
void OverwriteNodeSection(const char *filename, int fpos,
|
|
901
|
+
const NDArray<const double, 2> coord_arr) {
|
|
902
|
+
|
|
903
|
+
// Open the file with read and write permissions
|
|
904
|
+
FILE *fp = fopen(filename, "rb+");
|
|
905
|
+
if (!fp) {
|
|
906
|
+
throw std::runtime_error("Cannot open file for reading and writing.");
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
// Seek to the start position of the node section
|
|
910
|
+
if (fseek(fp, fpos, SEEK_SET) != 0) {
|
|
911
|
+
fclose(fp);
|
|
912
|
+
throw std::runtime_error(
|
|
913
|
+
"Cannot seek to the start position of the node section.");
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
int node_idx = 0;
|
|
917
|
+
off_t line_start_pos;
|
|
918
|
+
char line[256];
|
|
919
|
+
|
|
920
|
+
int n_coord = coord_arr.shape(0);
|
|
921
|
+
const double *coord = coord_arr.data();
|
|
922
|
+
|
|
923
|
+
// Prepare buffers for formatted coordinates
|
|
924
|
+
char coord_str[17] = {0};
|
|
925
|
+
|
|
926
|
+
while (fgets(line, sizeof(line), fp)) {
|
|
927
|
+
// Record the position of the beginning of the line
|
|
928
|
+
int line_end_pos = ftell(fp);
|
|
929
|
+
line_start_pos = line_end_pos - strlen(line);
|
|
930
|
+
|
|
931
|
+
// Skip comment lines
|
|
932
|
+
if (line[0] == '$') {
|
|
933
|
+
continue;
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
// Check for end of node section
|
|
937
|
+
if (line[0] == '*') {
|
|
938
|
+
break;
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
// Check if we have more nodes to process
|
|
942
|
+
if (node_idx >= n_coord) {
|
|
943
|
+
break;
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
// Ensure the line is long enough
|
|
947
|
+
size_t line_length = strlen(line);
|
|
948
|
+
if (line_length < 56) {
|
|
949
|
+
throw std::runtime_error("Insufficient line length.");
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
// Format the coordinates
|
|
953
|
+
for (int ii = 0; ii < 3; ii++) {
|
|
954
|
+
// Generate the formatted string
|
|
955
|
+
FormatWithExp(coord_str, 17, coord[node_idx * 3 + ii], 16, 9, 2);
|
|
956
|
+
memcpy(&line[8 + ii * 16], coord_str, 16); // coordinate field
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
// Seek back to the beginning of the line and write the updated line
|
|
960
|
+
fseek(fp, line_start_pos, SEEK_SET);
|
|
961
|
+
fwrite(line, 1, line_length, fp);
|
|
962
|
+
#if defined(_WIN32) || defined(_WIN64)
|
|
963
|
+
fseek(fp, line_end_pos, SEEK_SET);
|
|
964
|
+
#endif
|
|
965
|
+
|
|
966
|
+
// Move to the next node
|
|
967
|
+
node_idx++;
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
fclose(fp);
|
|
971
|
+
}
|
|
972
|
+
|
|
858
973
|
NB_MODULE(_deck, m) {
|
|
859
974
|
nb::class_<NodeSection>(m, "NodeSection")
|
|
860
975
|
.def(nb::init())
|
|
@@ -863,7 +978,8 @@ NB_MODULE(_deck, m) {
|
|
|
863
978
|
.def_ro("coordinates", &NodeSection::coord, nb::rv_policy::automatic)
|
|
864
979
|
.def_ro("nid", &NodeSection::nid, nb::rv_policy::automatic)
|
|
865
980
|
.def_ro("tc", &NodeSection::tc, nb::rv_policy::automatic)
|
|
866
|
-
.def_ro("rc", &NodeSection::rc, nb::rv_policy::automatic)
|
|
981
|
+
.def_ro("rc", &NodeSection::rc, nb::rv_policy::automatic)
|
|
982
|
+
.def_ro("fpos", &NodeSection::fpos);
|
|
867
983
|
|
|
868
984
|
nb::class_<ElementSolidSection>(m, "ElementSolidSection")
|
|
869
985
|
.def(nb::init())
|
|
@@ -899,4 +1015,6 @@ NB_MODULE(_deck, m) {
|
|
|
899
1015
|
.def("read_element_solid_section", &Deck::ReadElementSolidSection)
|
|
900
1016
|
.def("read_element_shell_section", &Deck::ReadElementShellSection)
|
|
901
1017
|
.def("read_node_section", &Deck::ReadNodeSection);
|
|
1018
|
+
|
|
1019
|
+
m.def("overwrite_node_section", &OverwriteNodeSection);
|
|
902
1020
|
}
|
|
@@ -21,6 +21,8 @@ class NodeSection:
|
|
|
21
21
|
@property
|
|
22
22
|
def rc(self) -> IntArray: ...
|
|
23
23
|
def __len__(self) -> int: ...
|
|
24
|
+
@property
|
|
25
|
+
def fpos(self) -> int: ...
|
|
24
26
|
|
|
25
27
|
class ElementSection:
|
|
26
28
|
def __init__(self) -> None: ...
|
|
@@ -51,3 +53,5 @@ class _Deck:
|
|
|
51
53
|
def read_element_shell_section(self) -> None: ...
|
|
52
54
|
def read_node_section(self) -> None: ...
|
|
53
55
|
def read(self) -> None: ...
|
|
56
|
+
|
|
57
|
+
def overwrite_node_section(filename: str, fpos: int, nodes: FloatArray2D) -> None: ...
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import shutil
|
|
1
3
|
from pathlib import Path
|
|
2
4
|
from typing import TYPE_CHECKING, List, Union
|
|
3
5
|
|
|
4
6
|
import numpy as np
|
|
5
7
|
from numpy.typing import NDArray
|
|
6
8
|
|
|
7
|
-
from lsdyna_mesh_reader._deck import
|
|
9
|
+
from lsdyna_mesh_reader._deck import (
|
|
10
|
+
ElementShellSection,
|
|
11
|
+
ElementSolidSection,
|
|
12
|
+
NodeSection,
|
|
13
|
+
_Deck,
|
|
14
|
+
overwrite_node_section,
|
|
15
|
+
)
|
|
8
16
|
|
|
9
17
|
if TYPE_CHECKING:
|
|
10
18
|
try:
|
|
@@ -14,12 +22,12 @@ if TYPE_CHECKING:
|
|
|
14
22
|
|
|
15
23
|
|
|
16
24
|
class Deck:
|
|
17
|
-
"""LS-DYNA deck.
|
|
25
|
+
r"""LS-DYNA deck.
|
|
18
26
|
|
|
19
27
|
Parameters
|
|
20
28
|
----------
|
|
21
29
|
filename : str | pathlib.Path
|
|
22
|
-
Path to the keyword file (
|
|
30
|
+
Path to the keyword file (``*.k``, ``*.key``, ``*.dyn``).
|
|
23
31
|
|
|
24
32
|
Examples
|
|
25
33
|
--------
|
|
@@ -35,8 +43,12 @@ class Deck:
|
|
|
35
43
|
|
|
36
44
|
def __init__(self, filename: Union[str, Path]) -> None:
|
|
37
45
|
"""Initialize the deck object."""
|
|
38
|
-
|
|
46
|
+
filename = str(filename)
|
|
47
|
+
if not os.path.isfile(filename):
|
|
48
|
+
raise FileNotFoundError(f"Invalid file or unable to locate {filename}")
|
|
49
|
+
self._deck = _Deck(filename)
|
|
39
50
|
self._deck.read()
|
|
51
|
+
self._filename = filename
|
|
40
52
|
|
|
41
53
|
@property
|
|
42
54
|
def element_solid_sections(self) -> List[ElementSolidSection]:
|
|
@@ -235,6 +247,53 @@ class Deck:
|
|
|
235
247
|
|
|
236
248
|
return grid
|
|
237
249
|
|
|
250
|
+
def overwrite_node_section(
|
|
251
|
+
self, filename: Union[str, Path], nodes: NDArray[np.float64]
|
|
252
|
+
) -> None:
|
|
253
|
+
"""
|
|
254
|
+
Create a new deck file with the same content but overwritten node section.
|
|
255
|
+
|
|
256
|
+
Parameters
|
|
257
|
+
----------
|
|
258
|
+
filename : str | pathlib.Path
|
|
259
|
+
Path to the new file.
|
|
260
|
+
nodes : np.ndarray[float]
|
|
261
|
+
New node coordinates to write. Number of nodes must match the
|
|
262
|
+
number of nodes in the node section.
|
|
263
|
+
|
|
264
|
+
Notes
|
|
265
|
+
-----
|
|
266
|
+
Overwrites the first node section.
|
|
267
|
+
|
|
268
|
+
Examples
|
|
269
|
+
--------
|
|
270
|
+
Load an existing LS-DYNA deck and write new nodes to it in a new file.
|
|
271
|
+
|
|
272
|
+
>>> import numpy as np
|
|
273
|
+
>>> import lsdyna_mesh_reader
|
|
274
|
+
>>> from lsdyna_mesh_reader import examples
|
|
275
|
+
>>> deck = lsdyna_mesh_reader.Deck(examples.birdball)
|
|
276
|
+
>>> nodes = deck.node_sections[0].coordinates
|
|
277
|
+
>>> new_nodes = nodes + np.random.random(nodes.shape)
|
|
278
|
+
>>> deck.overwrite_node_section("new_deck.k", new_nodes)
|
|
279
|
+
|
|
280
|
+
"""
|
|
281
|
+
if not self.node_sections:
|
|
282
|
+
raise RuntimeError("This deck is missing a node section")
|
|
283
|
+
nsec = self.node_sections[0]
|
|
284
|
+
|
|
285
|
+
if nodes.ndim != 2 or nodes.shape[1] != 3:
|
|
286
|
+
raise ValueError(f"Expected `nodes` to contain 3D coordinates, not {nodes.shape}")
|
|
287
|
+
elif nodes.shape[0] != nsec.nid.size:
|
|
288
|
+
raise RuntimeError(
|
|
289
|
+
f"Number of coordinates in `nodes` ({nodes.shape[0]}) must match number of "
|
|
290
|
+
f"nodes in the node section ({nsec.nid.size})"
|
|
291
|
+
)
|
|
292
|
+
|
|
293
|
+
filename = str(filename)
|
|
294
|
+
shutil.copy(self._filename, filename)
|
|
295
|
+
overwrite_node_section(filename, nsec.fpos, nodes)
|
|
296
|
+
|
|
238
297
|
def __repr__(self) -> str:
|
|
239
298
|
lines = ["LSDYNA Deck with:"]
|
|
240
299
|
lines.append(f" Node sections: {len(self.node_sections)}")
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
"""LS-DYNA Mesh Reader examples module.
|
|
2
|
+
|
|
3
|
+
Content reused based on the following implicit open to use license from
|
|
4
|
+
`LS-DYNA Examples <https://www.dynaexamples.com/>`_.
|
|
5
|
+
|
|
6
|
+
**Usage Notice from LS-DYNA**
|
|
7
|
+
|
|
8
|
+
The input files and several class notes are available for download. The
|
|
9
|
+
download is free of charge, a login is not required. All examples are
|
|
10
|
+
presented with a brief description. You may find an example by checking a
|
|
11
|
+
specific class or by using the search functionality of the site.
|
|
12
|
+
|
|
13
|
+
The content is prepared for educational purposes. Hence, material
|
|
14
|
+
properties and other parameters might be non-physic for simplification.
|
|
15
|
+
|
|
16
|
+
Copyright (c) 2014 DYNAmore GmbH (www.dynamore.de)
|
|
17
|
+
Copying for non-commercial usage allowed, if this notice is included.
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
Example Files
|
|
21
|
+
^^^^^^^^^^^^^
|
|
22
|
+
|
|
23
|
+
.. py:data:: lsdyna_mesh_reader.examples.birdball
|
|
24
|
+
:annotation: = str
|
|
25
|
+
|
|
26
|
+
Path to the `Contact Eroding I <https://www.dynaexamples.com/introduction/intro-by-a.-tabiei/contact/contact-eroding-i>`_ example file. Usage:
|
|
27
|
+
|
|
28
|
+
.. code:: pycon
|
|
29
|
+
|
|
30
|
+
>>> from lsdyna_mesh_reader import examples
|
|
31
|
+
>>> import lsdyna_mesh_reader
|
|
32
|
+
>>> deck = lsdyna_mesh_reader.Deck(examples.birdball)
|
|
33
|
+
>>> deck
|
|
34
|
+
LSDYNA Deck with:
|
|
35
|
+
Node sections: 1
|
|
36
|
+
Element Solid sections: 1
|
|
37
|
+
Element Shell sections: 1
|
|
38
|
+
|
|
39
|
+
.. py:data:: lsdyna_mesh_reader.examples.joint_screw
|
|
40
|
+
:annotation: = str
|
|
41
|
+
|
|
42
|
+
Path to the `Joint Screw <https://www.dynaexamples.com/show-cases/joint-screw/>`_ example file. Usage:
|
|
43
|
+
|
|
44
|
+
.. code:: pycon
|
|
45
|
+
|
|
46
|
+
>>> from lsdyna_mesh_reader import examples
|
|
47
|
+
>>> import lsdyna_mesh_reader
|
|
48
|
+
>>> deck = lsdyna_mesh_reader.Deck(examples.joint_screw)
|
|
49
|
+
>>> deck
|
|
50
|
+
LSDYNA Deck with:
|
|
51
|
+
Node sections: 1
|
|
52
|
+
Element Solid sections: 1
|
|
53
|
+
Element Shell sections: 1
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
.. py:data:: lsdyna_mesh_reader.examples.wheel
|
|
57
|
+
:annotation: = str
|
|
58
|
+
|
|
59
|
+
Path to the `SSD with a wheel rim <https://www.dynaexamples.com/nvh/example-05-03>`_ example file. Usage:
|
|
60
|
+
|
|
61
|
+
.. code:: pycon
|
|
62
|
+
|
|
63
|
+
>>> from lsdyna_mesh_reader import examples
|
|
64
|
+
>>> import lsdyna_mesh_reader
|
|
65
|
+
>>> deck = lsdyna_mesh_reader.Deck(examples.wheel)
|
|
66
|
+
>>> deck
|
|
67
|
+
LSDYNA Deck with:
|
|
68
|
+
Node sections: 1
|
|
69
|
+
Element Solid sections: 0
|
|
70
|
+
Element Shell sections: 1
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
.. py:data:: lsdyna_mesh_reader.examples.bracket
|
|
74
|
+
:annotation: = str
|
|
75
|
+
|
|
76
|
+
Path to `An aluminium bracket <https://www.dynaexamples.com/nvh/example-05-03>`_ example file. Usage:
|
|
77
|
+
|
|
78
|
+
.. code:: pycon
|
|
79
|
+
|
|
80
|
+
>>> from lsdyna_mesh_reader import examples
|
|
81
|
+
>>> import lsdyna_mesh_reader
|
|
82
|
+
>>> deck = lsdyna_mesh_reader.Deck(examples.bracket)
|
|
83
|
+
>>> deck
|
|
84
|
+
LSDYNA Deck with:
|
|
85
|
+
Node sections: 1
|
|
86
|
+
Element Solid sections: 0
|
|
87
|
+
Element Shell sections: 1
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
.. py:data:: lsdyna_mesh_reader.examples.simple_plate
|
|
91
|
+
:annotation: = str
|
|
92
|
+
|
|
93
|
+
Path to the `Square Plate Out-of-Plane Vibration (thick shell mesh) <https://www.dynaexamples.com/nvh/example-05-03>`_ example file. Usage:
|
|
94
|
+
|
|
95
|
+
.. code:: pycon
|
|
96
|
+
|
|
97
|
+
>>> from lsdyna_mesh_reader import examples
|
|
98
|
+
>>> import lsdyna_mesh_reader
|
|
99
|
+
>>> deck = lsdyna_mesh_reader.Deck(examples.simple_plate)
|
|
100
|
+
>>> deck
|
|
101
|
+
LSDYNA Deck with:
|
|
102
|
+
Node sections: 1
|
|
103
|
+
Element Solid sections: 0
|
|
104
|
+
Element Shell sections: 1
|
|
105
|
+
|
|
106
|
+
"""
|
|
107
|
+
|
|
108
|
+
import os
|
|
109
|
+
|
|
110
|
+
dir_path = os.path.dirname(os.path.realpath(__file__))
|
|
111
|
+
|
|
112
|
+
# https://www.dynaexamples.com/introduction/intro-by-a.-tabiei/contact/contact-eroding-i
|
|
113
|
+
birdball = os.path.join(dir_path, "birdball.k")
|
|
114
|
+
|
|
115
|
+
# https://www.dynaexamples.com/show-cases/joint-screw/
|
|
116
|
+
joint_screw = os.path.join(dir_path, "EXP_SC_JOINT_SCREW.key")
|
|
117
|
+
|
|
118
|
+
# https://www.dynaexamples.com/nvh/example-05-03
|
|
119
|
+
wheel = os.path.join(dir_path, "wheel.k")
|
|
120
|
+
|
|
121
|
+
# https://www.dynaexamples.com/nvh/example-07-01
|
|
122
|
+
bracket = os.path.join(dir_path, "bracket.k")
|
|
123
|
+
|
|
124
|
+
# https://www.dynaexamples.com/introduction/Introduction/example-13
|
|
125
|
+
simple_plate = os.path.join(dir_path, "ex_13_thick_shell_elform_2.k")
|
|
126
|
+
|
|
127
|
+
__all__ = [
|
|
128
|
+
"birdball",
|
|
129
|
+
"joint_screw",
|
|
130
|
+
"wheel",
|
|
131
|
+
"bracket",
|
|
132
|
+
"simple_plate",
|
|
133
|
+
]
|
|
@@ -0,0 +1,566 @@
|
|
|
1
|
+
*KEYWORD
|
|
2
|
+
*TITLE
|
|
3
|
+
Simply Supported Square Plate: Out-of-Plane Vibration (thick shell mesh)
|
|
4
|
+
*CONTROL_IMPLICIT_EIGENVALUE
|
|
5
|
+
$# neig center lflag lftend rflag rhtend eigmth shfscl
|
|
6
|
+
20 0.0 0 0.0 0 0.0 0 0.0
|
|
7
|
+
*CONTROL_IMPLICIT_GENERAL
|
|
8
|
+
$# imflag dt0 imform nsbs igs cnstn form
|
|
9
|
+
1 0.0
|
|
10
|
+
*CONTROL_SHELL
|
|
11
|
+
$# wrpang esort irnxx istupd theory bwc miter proj
|
|
12
|
+
20.00000 0 0 0 2 2 1
|
|
13
|
+
$# rotascl intgrd lamsht cstyp6 tshell nfail1 nfail4
|
|
14
|
+
0.0 1
|
|
15
|
+
*CONTROL_TERMINATION
|
|
16
|
+
$# endtim endcyc dtmin endeng endmas
|
|
17
|
+
1.000000 0 0.0 0.0 0.0
|
|
18
|
+
*DATABASE_BINARY_D3PLOT
|
|
19
|
+
$# dt/cycl lcdt/nr beam npltc psetid
|
|
20
|
+
1.000000
|
|
21
|
+
*ELEMENT_TSHELL
|
|
22
|
+
$# eid pid n1 n2 n3 n4 n5 n6 n7 n8
|
|
23
|
+
1 1 1 37 41 5 2 38 42 6
|
|
24
|
+
2 1 37 73 77 41 38 74 78 42
|
|
25
|
+
3 1 73 109 113 77 74 110 114 78
|
|
26
|
+
4 1 109 145 149 113 110 146 150 114
|
|
27
|
+
5 1 145 181 185 149 146 182 186 150
|
|
28
|
+
6 1 181 217 221 185 182 218 222 186
|
|
29
|
+
7 1 217 253 257 221 218 254 258 222
|
|
30
|
+
8 1 253 289 293 257 254 290 294 258
|
|
31
|
+
9 1 5 41 45 9 6 42 46 10
|
|
32
|
+
10 1 41 77 81 45 42 78 82 46
|
|
33
|
+
11 1 77 113 117 81 78 114 118 82
|
|
34
|
+
12 1 113 149 153 117 114 150 154 118
|
|
35
|
+
13 1 149 185 189 153 150 186 190 154
|
|
36
|
+
14 1 185 221 225 189 186 222 226 190
|
|
37
|
+
15 1 221 257 261 225 222 258 262 226
|
|
38
|
+
16 1 257 293 297 261 258 294 298 262
|
|
39
|
+
17 1 9 45 49 13 10 46 50 14
|
|
40
|
+
18 1 45 81 85 49 46 82 86 50
|
|
41
|
+
19 1 81 117 121 85 82 118 122 86
|
|
42
|
+
20 1 117 153 157 121 118 154 158 122
|
|
43
|
+
21 1 153 189 193 157 154 190 194 158
|
|
44
|
+
22 1 189 225 229 193 190 226 230 194
|
|
45
|
+
23 1 225 261 265 229 226 262 266 230
|
|
46
|
+
24 1 261 297 301 265 262 298 302 266
|
|
47
|
+
25 1 13 49 53 17 14 50 54 18
|
|
48
|
+
26 1 49 85 89 53 50 86 90 54
|
|
49
|
+
27 1 85 121 125 89 86 122 126 90
|
|
50
|
+
28 1 121 157 161 125 122 158 162 126
|
|
51
|
+
29 1 157 193 197 161 158 194 198 162
|
|
52
|
+
30 1 193 229 233 197 194 230 234 198
|
|
53
|
+
31 1 229 265 269 233 230 266 270 234
|
|
54
|
+
32 1 265 301 305 269 266 302 306 270
|
|
55
|
+
33 1 17 53 57 21 18 54 58 22
|
|
56
|
+
34 1 53 89 93 57 54 90 94 58
|
|
57
|
+
35 1 89 125 129 93 90 126 130 94
|
|
58
|
+
36 1 125 161 165 129 126 162 166 130
|
|
59
|
+
37 1 161 197 201 165 162 198 202 166
|
|
60
|
+
38 1 197 233 237 201 198 234 238 202
|
|
61
|
+
39 1 233 269 273 237 234 270 274 238
|
|
62
|
+
40 1 269 305 309 273 270 306 310 274
|
|
63
|
+
41 1 21 57 61 25 22 58 62 26
|
|
64
|
+
42 1 57 93 97 61 58 94 98 62
|
|
65
|
+
43 1 93 129 133 97 94 130 134 98
|
|
66
|
+
44 1 129 165 169 133 130 166 170 134
|
|
67
|
+
45 1 165 201 205 169 166 202 206 170
|
|
68
|
+
46 1 201 237 241 205 202 238 242 206
|
|
69
|
+
47 1 237 273 277 241 238 274 278 242
|
|
70
|
+
48 1 273 309 313 277 274 310 314 278
|
|
71
|
+
49 1 25 61 65 29 26 62 66 30
|
|
72
|
+
50 1 61 97 101 65 62 98 102 66
|
|
73
|
+
51 1 97 133 137 101 98 134 138 102
|
|
74
|
+
52 1 133 169 173 137 134 170 174 138
|
|
75
|
+
53 1 169 205 209 173 170 206 210 174
|
|
76
|
+
54 1 205 241 245 209 206 242 246 210
|
|
77
|
+
55 1 241 277 281 245 242 278 282 246
|
|
78
|
+
56 1 277 313 317 281 278 314 318 282
|
|
79
|
+
57 1 29 65 69 33 30 66 70 34
|
|
80
|
+
58 1 65 101 105 69 66 102 106 70
|
|
81
|
+
59 1 101 137 141 105 102 138 142 106
|
|
82
|
+
60 1 137 173 177 141 138 174 178 142
|
|
83
|
+
61 1 173 209 213 177 174 210 214 178
|
|
84
|
+
62 1 209 245 249 213 210 246 250 214
|
|
85
|
+
63 1 245 281 285 249 246 282 286 250
|
|
86
|
+
64 1 281 317 321 285 282 318 322 286
|
|
87
|
+
65 1 2 38 42 6 3 39 43 7
|
|
88
|
+
66 1 38 74 78 42 39 75 79 43
|
|
89
|
+
67 1 74 110 114 78 75 111 115 79
|
|
90
|
+
68 1 110 146 150 114 111 147 151 115
|
|
91
|
+
69 1 146 182 186 150 147 183 187 151
|
|
92
|
+
70 1 182 218 222 186 183 219 223 187
|
|
93
|
+
71 1 218 254 258 222 219 255 259 223
|
|
94
|
+
72 1 254 290 294 258 255 291 295 259
|
|
95
|
+
73 1 6 42 46 10 7 43 47 11
|
|
96
|
+
74 1 42 78 82 46 43 79 83 47
|
|
97
|
+
75 1 78 114 118 82 79 115 119 83
|
|
98
|
+
76 1 114 150 154 118 115 151 155 119
|
|
99
|
+
77 1 150 186 190 154 151 187 191 155
|
|
100
|
+
78 1 186 222 226 190 187 223 227 191
|
|
101
|
+
79 1 222 258 262 226 223 259 263 227
|
|
102
|
+
80 1 258 294 298 262 259 295 299 263
|
|
103
|
+
81 1 10 46 50 14 11 47 51 15
|
|
104
|
+
82 1 46 82 86 50 47 83 87 51
|
|
105
|
+
83 1 82 118 122 86 83 119 123 87
|
|
106
|
+
84 1 118 154 158 122 119 155 159 123
|
|
107
|
+
85 1 154 190 194 158 155 191 195 159
|
|
108
|
+
86 1 190 226 230 194 191 227 231 195
|
|
109
|
+
87 1 226 262 266 230 227 263 267 231
|
|
110
|
+
88 1 262 298 302 266 263 299 303 267
|
|
111
|
+
89 1 14 50 54 18 15 51 55 19
|
|
112
|
+
90 1 50 86 90 54 51 87 91 55
|
|
113
|
+
91 1 86 122 126 90 87 123 127 91
|
|
114
|
+
92 1 122 158 162 126 123 159 163 127
|
|
115
|
+
93 1 158 194 198 162 159 195 199 163
|
|
116
|
+
94 1 194 230 234 198 195 231 235 199
|
|
117
|
+
95 1 230 266 270 234 231 267 271 235
|
|
118
|
+
96 1 266 302 306 270 267 303 307 271
|
|
119
|
+
97 1 18 54 58 22 19 55 59 23
|
|
120
|
+
98 1 54 90 94 58 55 91 95 59
|
|
121
|
+
99 1 90 126 130 94 91 127 131 95
|
|
122
|
+
100 1 126 162 166 130 127 163 167 131
|
|
123
|
+
101 1 162 198 202 166 163 199 203 167
|
|
124
|
+
102 1 198 234 238 202 199 235 239 203
|
|
125
|
+
103 1 234 270 274 238 235 271 275 239
|
|
126
|
+
104 1 270 306 310 274 271 307 311 275
|
|
127
|
+
105 1 22 58 62 26 23 59 63 27
|
|
128
|
+
106 1 58 94 98 62 59 95 99 63
|
|
129
|
+
107 1 94 130 134 98 95 131 135 99
|
|
130
|
+
108 1 130 166 170 134 131 167 171 135
|
|
131
|
+
109 1 166 202 206 170 167 203 207 171
|
|
132
|
+
110 1 202 238 242 206 203 239 243 207
|
|
133
|
+
111 1 238 274 278 242 239 275 279 243
|
|
134
|
+
112 1 274 310 314 278 275 311 315 279
|
|
135
|
+
113 1 26 62 66 30 27 63 67 31
|
|
136
|
+
114 1 62 98 102 66 63 99 103 67
|
|
137
|
+
115 1 98 134 138 102 99 135 139 103
|
|
138
|
+
116 1 134 170 174 138 135 171 175 139
|
|
139
|
+
117 1 170 206 210 174 171 207 211 175
|
|
140
|
+
118 1 206 242 246 210 207 243 247 211
|
|
141
|
+
119 1 242 278 282 246 243 279 283 247
|
|
142
|
+
120 1 278 314 318 282 279 315 319 283
|
|
143
|
+
121 1 30 66 70 34 31 67 71 35
|
|
144
|
+
122 1 66 102 106 70 67 103 107 71
|
|
145
|
+
123 1 102 138 142 106 103 139 143 107
|
|
146
|
+
124 1 138 174 178 142 139 175 179 143
|
|
147
|
+
125 1 174 210 214 178 175 211 215 179
|
|
148
|
+
126 1 210 246 250 214 211 247 251 215
|
|
149
|
+
127 1 246 282 286 250 247 283 287 251
|
|
150
|
+
128 1 282 318 322 286 283 319 323 287
|
|
151
|
+
129 1 3 39 43 7 4 40 44 8
|
|
152
|
+
130 1 39 75 79 43 40 76 80 44
|
|
153
|
+
131 1 75 111 115 79 76 112 116 80
|
|
154
|
+
132 1 111 147 151 115 112 148 152 116
|
|
155
|
+
133 1 147 183 187 151 148 184 188 152
|
|
156
|
+
134 1 183 219 223 187 184 220 224 188
|
|
157
|
+
135 1 219 255 259 223 220 256 260 224
|
|
158
|
+
136 1 255 291 295 259 256 292 296 260
|
|
159
|
+
137 1 7 43 47 11 8 44 48 12
|
|
160
|
+
138 1 43 79 83 47 44 80 84 48
|
|
161
|
+
139 1 79 115 119 83 80 116 120 84
|
|
162
|
+
140 1 115 151 155 119 116 152 156 120
|
|
163
|
+
141 1 151 187 191 155 152 188 192 156
|
|
164
|
+
142 1 187 223 227 191 188 224 228 192
|
|
165
|
+
143 1 223 259 263 227 224 260 264 228
|
|
166
|
+
144 1 259 295 299 263 260 296 300 264
|
|
167
|
+
145 1 11 47 51 15 12 48 52 16
|
|
168
|
+
146 1 47 83 87 51 48 84 88 52
|
|
169
|
+
147 1 83 119 123 87 84 120 124 88
|
|
170
|
+
148 1 119 155 159 123 120 156 160 124
|
|
171
|
+
149 1 155 191 195 159 156 192 196 160
|
|
172
|
+
150 1 191 227 231 195 192 228 232 196
|
|
173
|
+
151 1 227 263 267 231 228 264 268 232
|
|
174
|
+
152 1 263 299 303 267 264 300 304 268
|
|
175
|
+
153 1 15 51 55 19 16 52 56 20
|
|
176
|
+
154 1 51 87 91 55 52 88 92 56
|
|
177
|
+
155 1 87 123 127 91 88 124 128 92
|
|
178
|
+
156 1 123 159 163 127 124 160 164 128
|
|
179
|
+
157 1 159 195 199 163 160 196 200 164
|
|
180
|
+
158 1 195 231 235 199 196 232 236 200
|
|
181
|
+
159 1 231 267 271 235 232 268 272 236
|
|
182
|
+
160 1 267 303 307 271 268 304 308 272
|
|
183
|
+
161 1 19 55 59 23 20 56 60 24
|
|
184
|
+
162 1 55 91 95 59 56 92 96 60
|
|
185
|
+
163 1 91 127 131 95 92 128 132 96
|
|
186
|
+
164 1 127 163 167 131 128 164 168 132
|
|
187
|
+
165 1 163 199 203 167 164 200 204 168
|
|
188
|
+
166 1 199 235 239 203 200 236 240 204
|
|
189
|
+
167 1 235 271 275 239 236 272 276 240
|
|
190
|
+
168 1 271 307 311 275 272 308 312 276
|
|
191
|
+
169 1 23 59 63 27 24 60 64 28
|
|
192
|
+
170 1 59 95 99 63 60 96 100 64
|
|
193
|
+
171 1 95 131 135 99 96 132 136 100
|
|
194
|
+
172 1 131 167 171 135 132 168 172 136
|
|
195
|
+
173 1 167 203 207 171 168 204 208 172
|
|
196
|
+
174 1 203 239 243 207 204 240 244 208
|
|
197
|
+
175 1 239 275 279 243 240 276 280 244
|
|
198
|
+
176 1 275 311 315 279 276 312 316 280
|
|
199
|
+
177 1 27 63 67 31 28 64 68 32
|
|
200
|
+
178 1 63 99 103 67 64 100 104 68
|
|
201
|
+
179 1 99 135 139 103 100 136 140 104
|
|
202
|
+
180 1 135 171 175 139 136 172 176 140
|
|
203
|
+
181 1 171 207 211 175 172 208 212 176
|
|
204
|
+
182 1 207 243 247 211 208 244 248 212
|
|
205
|
+
183 1 243 279 283 247 244 280 284 248
|
|
206
|
+
184 1 279 315 319 283 280 316 320 284
|
|
207
|
+
185 1 31 67 71 35 32 68 72 36
|
|
208
|
+
186 1 67 103 107 71 68 104 108 72
|
|
209
|
+
187 1 103 139 143 107 104 140 144 108
|
|
210
|
+
188 1 139 175 179 143 140 176 180 144
|
|
211
|
+
189 1 175 211 215 179 176 212 216 180
|
|
212
|
+
190 1 211 247 251 215 212 248 252 216
|
|
213
|
+
191 1 247 283 287 251 248 284 288 252
|
|
214
|
+
192 1 283 319 323 287 284 320 324 288
|
|
215
|
+
*NODE
|
|
216
|
+
$# nid x y z tc rc
|
|
217
|
+
1 0.0 0.0 0.0 3
|
|
218
|
+
2 0.0 0.0 0.33333334
|
|
219
|
+
3 0.0 0.0 0.66666669
|
|
220
|
+
4 0.0 0.0 1.00000000
|
|
221
|
+
5 0.0 1.25000000 0.0 3
|
|
222
|
+
6 0.0 1.25000000 0.33333334
|
|
223
|
+
7 0.0 1.25000000 0.66666669
|
|
224
|
+
8 0.0 1.25000000 1.00000000
|
|
225
|
+
9 0.0 2.50000000 0.0 3
|
|
226
|
+
10 0.0 2.50000000 0.33333334
|
|
227
|
+
11 0.0 2.50000000 0.66666669
|
|
228
|
+
12 0.0 2.50000000 1.00000000
|
|
229
|
+
13 0.0 3.75000000 0.0 3
|
|
230
|
+
14 0.0 3.75000000 0.33333334
|
|
231
|
+
15 0.0 3.75000000 0.66666669
|
|
232
|
+
16 0.0 3.75000000 1.00000000
|
|
233
|
+
17 0.0 5.00000000 0.0 3
|
|
234
|
+
18 0.0 5.00000000 0.33333334
|
|
235
|
+
19 0.0 5.00000000 0.66666669
|
|
236
|
+
20 0.0 5.00000000 1.00000000
|
|
237
|
+
21 0.0 6.25000000 0.0 3
|
|
238
|
+
22 0.0 6.25000000 0.33333334
|
|
239
|
+
23 0.0 6.25000000 0.66666669
|
|
240
|
+
24 0.0 6.25000000 1.00000000
|
|
241
|
+
25 0.0 7.50000000 0.0 3
|
|
242
|
+
26 0.0 7.50000000 0.33333334
|
|
243
|
+
27 0.0 7.50000000 0.66666669
|
|
244
|
+
28 0.0 7.50000000 1.00000000
|
|
245
|
+
29 0.0 8.75000000 0.0 3
|
|
246
|
+
30 0.0 8.75000000 0.33333334
|
|
247
|
+
31 0.0 8.75000000 0.66666669
|
|
248
|
+
32 0.0 8.75000000 1.00000000
|
|
249
|
+
33 0.0 10.00000000 0.0 3
|
|
250
|
+
34 0.0 10.00000000 0.33333334
|
|
251
|
+
35 0.0 10.00000000 0.66666669
|
|
252
|
+
36 0.0 10.00000000 1.00000000
|
|
253
|
+
37 1.25000000 0.0 0.0 3
|
|
254
|
+
38 1.25000000 0.0 0.33333334
|
|
255
|
+
39 1.25000000 0.0 0.66666669
|
|
256
|
+
40 1.25000000 0.0 1.00000000
|
|
257
|
+
41 1.25000000 1.25000000 0.0
|
|
258
|
+
42 1.25000000 1.25000000 0.33333334
|
|
259
|
+
43 1.25000000 1.25000000 0.66666669
|
|
260
|
+
44 1.25000000 1.25000000 1.00000000
|
|
261
|
+
45 1.25000000 2.50000000 0.0
|
|
262
|
+
46 1.25000000 2.50000000 0.33333334
|
|
263
|
+
47 1.25000000 2.50000000 0.66666669
|
|
264
|
+
48 1.25000000 2.50000000 1.00000000
|
|
265
|
+
49 1.25000000 3.75000000 0.0
|
|
266
|
+
50 1.25000000 3.75000000 0.33333334
|
|
267
|
+
51 1.25000000 3.75000000 0.66666669
|
|
268
|
+
52 1.25000000 3.75000000 1.00000000
|
|
269
|
+
53 1.25000000 5.00000000 0.0
|
|
270
|
+
54 1.25000000 5.00000000 0.33333334
|
|
271
|
+
55 1.25000000 5.00000000 0.66666669
|
|
272
|
+
56 1.25000000 5.00000000 1.00000000
|
|
273
|
+
57 1.25000000 6.25000000 0.0
|
|
274
|
+
58 1.25000000 6.25000000 0.33333334
|
|
275
|
+
59 1.25000000 6.25000000 0.66666669
|
|
276
|
+
60 1.25000000 6.25000000 1.00000000
|
|
277
|
+
61 1.25000000 7.50000000 0.0
|
|
278
|
+
62 1.25000000 7.50000000 0.33333334
|
|
279
|
+
63 1.25000000 7.50000000 0.66666669
|
|
280
|
+
64 1.25000000 7.50000000 1.00000000
|
|
281
|
+
65 1.25000000 8.75000000 0.0
|
|
282
|
+
66 1.25000000 8.75000000 0.33333334
|
|
283
|
+
67 1.25000000 8.75000000 0.66666669
|
|
284
|
+
68 1.25000000 8.75000000 1.00000000
|
|
285
|
+
69 1.25000000 10.00000000 0.0 3
|
|
286
|
+
70 1.25000000 10.00000000 0.33333334
|
|
287
|
+
71 1.25000000 10.00000000 0.66666669
|
|
288
|
+
72 1.25000000 10.00000000 1.00000000
|
|
289
|
+
73 2.50000000 0.0 0.0 3
|
|
290
|
+
74 2.50000000 0.0 0.33333334
|
|
291
|
+
75 2.50000000 0.0 0.66666669
|
|
292
|
+
76 2.50000000 0.0 1.00000000
|
|
293
|
+
77 2.50000000 1.25000000 0.0
|
|
294
|
+
78 2.50000000 1.25000000 0.33333334
|
|
295
|
+
79 2.50000000 1.25000000 0.66666669
|
|
296
|
+
80 2.50000000 1.25000000 1.00000000
|
|
297
|
+
81 2.50000000 2.50000000 0.0
|
|
298
|
+
82 2.50000000 2.50000000 0.33333334
|
|
299
|
+
83 2.50000000 2.50000000 0.66666669
|
|
300
|
+
84 2.50000000 2.50000000 1.00000000
|
|
301
|
+
85 2.50000000 3.75000000 0.0
|
|
302
|
+
86 2.50000000 3.75000000 0.33333334
|
|
303
|
+
87 2.50000000 3.75000000 0.66666669
|
|
304
|
+
88 2.50000000 3.75000000 1.00000000
|
|
305
|
+
89 2.50000000 5.00000000 0.0
|
|
306
|
+
90 2.50000000 5.00000000 0.33333334
|
|
307
|
+
91 2.50000000 5.00000000 0.66666669
|
|
308
|
+
92 2.50000000 5.00000000 1.00000000
|
|
309
|
+
93 2.50000000 6.25000000 0.0
|
|
310
|
+
94 2.50000000 6.25000000 0.33333334
|
|
311
|
+
95 2.50000000 6.25000000 0.66666669
|
|
312
|
+
96 2.50000000 6.25000000 1.00000000
|
|
313
|
+
97 2.50000000 7.50000000 0.0
|
|
314
|
+
98 2.50000000 7.50000000 0.33333334
|
|
315
|
+
99 2.50000000 7.50000000 0.66666669
|
|
316
|
+
100 2.50000000 7.50000000 1.00000000
|
|
317
|
+
101 2.50000000 8.75000000 0.0
|
|
318
|
+
102 2.50000000 8.75000000 0.33333334
|
|
319
|
+
103 2.50000000 8.75000000 0.66666669
|
|
320
|
+
104 2.50000000 8.75000000 1.00000000
|
|
321
|
+
105 2.50000000 10.00000000 0.0 3
|
|
322
|
+
106 2.50000000 10.00000000 0.33333334
|
|
323
|
+
107 2.50000000 10.00000000 0.66666669
|
|
324
|
+
108 2.50000000 10.00000000 1.00000000
|
|
325
|
+
109 3.75000000 0.0 0.0 3
|
|
326
|
+
110 3.75000000 0.0 0.33333334
|
|
327
|
+
111 3.75000000 0.0 0.66666669
|
|
328
|
+
112 3.75000000 0.0 1.00000000
|
|
329
|
+
113 3.75000000 1.25000000 0.0
|
|
330
|
+
114 3.75000000 1.25000000 0.33333334
|
|
331
|
+
115 3.75000000 1.25000000 0.66666669
|
|
332
|
+
116 3.75000000 1.25000000 1.00000000
|
|
333
|
+
117 3.75000000 2.50000000 0.0
|
|
334
|
+
118 3.75000000 2.50000000 0.33333334
|
|
335
|
+
119 3.75000000 2.50000000 0.66666669
|
|
336
|
+
120 3.75000000 2.50000000 1.00000000
|
|
337
|
+
121 3.75000000 3.75000000 0.0
|
|
338
|
+
122 3.75000000 3.75000000 0.33333334
|
|
339
|
+
123 3.75000000 3.75000000 0.66666669
|
|
340
|
+
124 3.75000000 3.75000000 1.00000000
|
|
341
|
+
125 3.75000000 5.00000000 0.0
|
|
342
|
+
126 3.75000000 5.00000000 0.33333334
|
|
343
|
+
127 3.75000000 5.00000000 0.66666669
|
|
344
|
+
128 3.75000000 5.00000000 1.00000000
|
|
345
|
+
129 3.75000000 6.25000000 0.0
|
|
346
|
+
130 3.75000000 6.25000000 0.33333334
|
|
347
|
+
131 3.75000000 6.25000000 0.66666669
|
|
348
|
+
132 3.75000000 6.25000000 1.00000000
|
|
349
|
+
133 3.75000000 7.50000000 0.0
|
|
350
|
+
134 3.75000000 7.50000000 0.33333334
|
|
351
|
+
135 3.75000000 7.50000000 0.66666669
|
|
352
|
+
136 3.75000000 7.50000000 1.00000000
|
|
353
|
+
137 3.75000000 8.75000000 0.0
|
|
354
|
+
138 3.75000000 8.75000000 0.33333334
|
|
355
|
+
139 3.75000000 8.75000000 0.66666669
|
|
356
|
+
140 3.75000000 8.75000000 1.00000000
|
|
357
|
+
141 3.75000000 10.00000000 0.0 3
|
|
358
|
+
142 3.75000000 10.00000000 0.33333334
|
|
359
|
+
143 3.75000000 10.00000000 0.66666669
|
|
360
|
+
144 3.75000000 10.00000000 1.00000000
|
|
361
|
+
145 5.00000000 0.0 0.0 3
|
|
362
|
+
146 5.00000000 0.0 0.33333334
|
|
363
|
+
147 5.00000000 0.0 0.66666669
|
|
364
|
+
148 5.00000000 0.0 1.00000000
|
|
365
|
+
149 5.00000000 1.25000000 0.0
|
|
366
|
+
150 5.00000000 1.25000000 0.33333334
|
|
367
|
+
151 5.00000000 1.25000000 0.66666669
|
|
368
|
+
152 5.00000000 1.25000000 1.00000000
|
|
369
|
+
153 5.00000000 2.50000000 0.0
|
|
370
|
+
154 5.00000000 2.50000000 0.33333334
|
|
371
|
+
155 5.00000000 2.50000000 0.66666669
|
|
372
|
+
156 5.00000000 2.50000000 1.00000000
|
|
373
|
+
157 5.00000000 3.75000000 0.0
|
|
374
|
+
158 5.00000000 3.75000000 0.33333334
|
|
375
|
+
159 5.00000000 3.75000000 0.66666669
|
|
376
|
+
160 5.00000000 3.75000000 1.00000000
|
|
377
|
+
161 5.00000000 5.00000000 0.0
|
|
378
|
+
162 5.00000000 5.00000000 0.33333334
|
|
379
|
+
163 5.00000000 5.00000000 0.66666669
|
|
380
|
+
164 5.00000000 5.00000000 1.00000000
|
|
381
|
+
165 5.00000000 6.25000000 0.0
|
|
382
|
+
166 5.00000000 6.25000000 0.33333334
|
|
383
|
+
167 5.00000000 6.25000000 0.66666669
|
|
384
|
+
168 5.00000000 6.25000000 1.00000000
|
|
385
|
+
169 5.00000000 7.50000000 0.0
|
|
386
|
+
170 5.00000000 7.50000000 0.33333334
|
|
387
|
+
171 5.00000000 7.50000000 0.66666669
|
|
388
|
+
172 5.00000000 7.50000000 1.00000000
|
|
389
|
+
173 5.00000000 8.75000000 0.0
|
|
390
|
+
174 5.00000000 8.75000000 0.33333334
|
|
391
|
+
175 5.00000000 8.75000000 0.66666669
|
|
392
|
+
176 5.00000000 8.75000000 1.00000000
|
|
393
|
+
177 5.00000000 10.00000000 0.0 3
|
|
394
|
+
178 5.00000000 10.00000000 0.33333334
|
|
395
|
+
179 5.00000000 10.00000000 0.66666669
|
|
396
|
+
180 5.00000000 10.00000000 1.00000000
|
|
397
|
+
181 6.25000000 0.0 0.0 3
|
|
398
|
+
182 6.25000000 0.0 0.33333334
|
|
399
|
+
183 6.25000000 0.0 0.66666669
|
|
400
|
+
184 6.25000000 0.0 1.00000000
|
|
401
|
+
185 6.25000000 1.25000000 0.0
|
|
402
|
+
186 6.25000000 1.25000000 0.33333334
|
|
403
|
+
187 6.25000000 1.25000000 0.66666669
|
|
404
|
+
188 6.25000000 1.25000000 1.00000000
|
|
405
|
+
189 6.25000000 2.50000000 0.0
|
|
406
|
+
190 6.25000000 2.50000000 0.33333334
|
|
407
|
+
191 6.25000000 2.50000000 0.66666669
|
|
408
|
+
192 6.25000000 2.50000000 1.00000000
|
|
409
|
+
193 6.25000000 3.75000000 0.0
|
|
410
|
+
194 6.25000000 3.75000000 0.33333334
|
|
411
|
+
195 6.25000000 3.75000000 0.66666669
|
|
412
|
+
196 6.25000000 3.75000000 1.00000000
|
|
413
|
+
197 6.25000000 5.00000000 0.0
|
|
414
|
+
198 6.25000000 5.00000000 0.33333334
|
|
415
|
+
199 6.25000000 5.00000000 0.66666669
|
|
416
|
+
200 6.25000000 5.00000000 1.00000000
|
|
417
|
+
201 6.25000000 6.25000000 0.0
|
|
418
|
+
202 6.25000000 6.25000000 0.33333334
|
|
419
|
+
203 6.25000000 6.25000000 0.66666669
|
|
420
|
+
204 6.25000000 6.25000000 1.00000000
|
|
421
|
+
205 6.25000000 7.50000000 0.0
|
|
422
|
+
206 6.25000000 7.50000000 0.33333334
|
|
423
|
+
207 6.25000000 7.50000000 0.66666669
|
|
424
|
+
208 6.25000000 7.50000000 1.00000000
|
|
425
|
+
209 6.25000000 8.75000000 0.0
|
|
426
|
+
210 6.25000000 8.75000000 0.33333334
|
|
427
|
+
211 6.25000000 8.75000000 0.66666669
|
|
428
|
+
212 6.25000000 8.75000000 1.00000000
|
|
429
|
+
213 6.25000000 10.00000000 0.0 3
|
|
430
|
+
214 6.25000000 10.00000000 0.33333334
|
|
431
|
+
215 6.25000000 10.00000000 0.66666669
|
|
432
|
+
216 6.25000000 10.00000000 1.00000000
|
|
433
|
+
217 7.50000000 0.0 0.0 3
|
|
434
|
+
218 7.50000000 0.0 0.33333334
|
|
435
|
+
219 7.50000000 0.0 0.66666669
|
|
436
|
+
220 7.50000000 0.0 1.00000000
|
|
437
|
+
221 7.50000000 1.25000000 0.0
|
|
438
|
+
222 7.50000000 1.25000000 0.33333334
|
|
439
|
+
223 7.50000000 1.25000000 0.66666669
|
|
440
|
+
224 7.50000000 1.25000000 1.00000000
|
|
441
|
+
225 7.50000000 2.50000000 0.0
|
|
442
|
+
226 7.50000000 2.50000000 0.33333334
|
|
443
|
+
227 7.50000000 2.50000000 0.66666669
|
|
444
|
+
228 7.50000000 2.50000000 1.00000000
|
|
445
|
+
229 7.50000000 3.75000000 0.0
|
|
446
|
+
230 7.50000000 3.75000000 0.33333334
|
|
447
|
+
231 7.50000000 3.75000000 0.66666669
|
|
448
|
+
232 7.50000000 3.75000000 1.00000000
|
|
449
|
+
233 7.50000000 5.00000000 0.0
|
|
450
|
+
234 7.50000000 5.00000000 0.33333334
|
|
451
|
+
235 7.50000000 5.00000000 0.66666669
|
|
452
|
+
236 7.50000000 5.00000000 1.00000000
|
|
453
|
+
237 7.50000000 6.25000000 0.0
|
|
454
|
+
238 7.50000000 6.25000000 0.33333334
|
|
455
|
+
239 7.50000000 6.25000000 0.66666669
|
|
456
|
+
240 7.50000000 6.25000000 1.00000000
|
|
457
|
+
241 7.50000000 7.50000000 0.0
|
|
458
|
+
242 7.50000000 7.50000000 0.33333334
|
|
459
|
+
243 7.50000000 7.50000000 0.66666669
|
|
460
|
+
244 7.50000000 7.50000000 1.00000000
|
|
461
|
+
245 7.50000000 8.75000000 0.0
|
|
462
|
+
246 7.50000000 8.75000000 0.33333334
|
|
463
|
+
247 7.50000000 8.75000000 0.66666669
|
|
464
|
+
248 7.50000000 8.75000000 1.00000000
|
|
465
|
+
249 7.50000000 10.00000000 0.0 3
|
|
466
|
+
250 7.50000000 10.00000000 0.33333334
|
|
467
|
+
251 7.50000000 10.00000000 0.66666669
|
|
468
|
+
252 7.50000000 10.00000000 1.00000000
|
|
469
|
+
253 8.75000000 0.0 0.0 3
|
|
470
|
+
254 8.75000000 0.0 0.33333334
|
|
471
|
+
255 8.75000000 0.0 0.66666669
|
|
472
|
+
256 8.75000000 0.0 1.00000000
|
|
473
|
+
257 8.75000000 1.25000000 0.0
|
|
474
|
+
258 8.75000000 1.25000000 0.33333334
|
|
475
|
+
259 8.75000000 1.25000000 0.66666669
|
|
476
|
+
260 8.75000000 1.25000000 1.00000000
|
|
477
|
+
261 8.75000000 2.50000000 0.0
|
|
478
|
+
262 8.75000000 2.50000000 0.33333334
|
|
479
|
+
263 8.75000000 2.50000000 0.66666669
|
|
480
|
+
264 8.75000000 2.50000000 1.00000000
|
|
481
|
+
265 8.75000000 3.75000000 0.0
|
|
482
|
+
266 8.75000000 3.75000000 0.33333334
|
|
483
|
+
267 8.75000000 3.75000000 0.66666669
|
|
484
|
+
268 8.75000000 3.75000000 1.00000000
|
|
485
|
+
269 8.75000000 5.00000000 0.0
|
|
486
|
+
270 8.75000000 5.00000000 0.33333334
|
|
487
|
+
271 8.75000000 5.00000000 0.66666669
|
|
488
|
+
272 8.75000000 5.00000000 1.00000000
|
|
489
|
+
273 8.75000000 6.25000000 0.0
|
|
490
|
+
274 8.75000000 6.25000000 0.33333334
|
|
491
|
+
275 8.75000000 6.25000000 0.66666669
|
|
492
|
+
276 8.75000000 6.25000000 1.00000000
|
|
493
|
+
277 8.75000000 7.50000000 0.0
|
|
494
|
+
278 8.75000000 7.50000000 0.33333334
|
|
495
|
+
279 8.75000000 7.50000000 0.66666669
|
|
496
|
+
280 8.75000000 7.50000000 1.00000000
|
|
497
|
+
281 8.75000000 8.75000000 0.0
|
|
498
|
+
282 8.75000000 8.75000000 0.33333334
|
|
499
|
+
283 8.75000000 8.75000000 0.66666669
|
|
500
|
+
284 8.75000000 8.75000000 1.00000000
|
|
501
|
+
285 8.75000000 10.00000000 0.0 3
|
|
502
|
+
286 8.75000000 10.00000000 0.33333334
|
|
503
|
+
287 8.75000000 10.00000000 0.66666669
|
|
504
|
+
288 8.75000000 10.00000000 1.00000000
|
|
505
|
+
289 10.00000000 0.0 0.0 3
|
|
506
|
+
290 10.00000000 0.0 0.33333334
|
|
507
|
+
291 10.00000000 0.0 0.66666669
|
|
508
|
+
292 10.00000000 0.0 1.00000000
|
|
509
|
+
293 10.00000000 1.25000000 0.0 3
|
|
510
|
+
294 10.00000000 1.25000000 0.33333334
|
|
511
|
+
295 10.00000000 1.25000000 0.66666669
|
|
512
|
+
296 10.00000000 1.25000000 1.00000000
|
|
513
|
+
297 10.00000000 2.50000000 0.0 3
|
|
514
|
+
298 10.00000000 2.50000000 0.33333334
|
|
515
|
+
299 10.00000000 2.50000000 0.66666669
|
|
516
|
+
300 10.00000000 2.50000000 1.00000000
|
|
517
|
+
301 10.00000000 3.75000000 0.0 3
|
|
518
|
+
302 10.00000000 3.75000000 0.33333334
|
|
519
|
+
303 10.00000000 3.75000000 0.66666669
|
|
520
|
+
304 10.00000000 3.75000000 1.00000000
|
|
521
|
+
305 10.00000000 5.00000000 0.0 3
|
|
522
|
+
306 10.00000000 5.00000000 0.33333334
|
|
523
|
+
307 10.00000000 5.00000000 0.66666669
|
|
524
|
+
308 10.00000000 5.00000000 1.00000000
|
|
525
|
+
309 10.00000000 6.25000000 0.0 3
|
|
526
|
+
310 10.00000000 6.25000000 0.33333334
|
|
527
|
+
311 10.00000000 6.25000000 0.66666669
|
|
528
|
+
312 10.00000000 6.25000000 1.00000000
|
|
529
|
+
313 10.00000000 7.50000000 0.0 3
|
|
530
|
+
314 10.00000000 7.50000000 0.33333334
|
|
531
|
+
315 10.00000000 7.50000000 0.66666669
|
|
532
|
+
316 10.00000000 7.50000000 1.00000000
|
|
533
|
+
317 10.00000000 8.75000000 0.0 3
|
|
534
|
+
318 10.00000000 8.75000000 0.33333334
|
|
535
|
+
319 10.00000000 8.75000000 0.66666669
|
|
536
|
+
320 10.00000000 8.75000000 1.00000000
|
|
537
|
+
321 10.00000000 10.00000000 0.0 3
|
|
538
|
+
322 10.00000000 10.00000000 0.33333334
|
|
539
|
+
323 10.00000000 10.00000000 0.66666669
|
|
540
|
+
324 10.00000000 10.00000000 1.00000000
|
|
541
|
+
*BOUNDARY_SPC_SET
|
|
542
|
+
$#nid/nsid cid dofx dofy dofz dofrx dofry dofrz
|
|
543
|
+
1 0 0 0 1
|
|
544
|
+
*PART
|
|
545
|
+
$# title
|
|
546
|
+
material type # 1 (Elastic)
|
|
547
|
+
$# pid secid mid eosid hgid grav adpopt tmid
|
|
548
|
+
1 1 1 0 1
|
|
549
|
+
*SECTION_TSHELL
|
|
550
|
+
$# secid elform shrf nip propt qr/irid icomp tshear
|
|
551
|
+
1 2 0.0 5 0 0.0
|
|
552
|
+
*MAT_ELASTIC
|
|
553
|
+
$# mid ro e pr da db not used
|
|
554
|
+
1 8000.0002.0000e+11 0.300000 0.0 0.0 0.0
|
|
555
|
+
*HOURGLASS
|
|
556
|
+
$# hgid ihq qm ibq q1 q2 qb qw
|
|
557
|
+
1 4 0.1 0 0.0 0.0 0.0 0.0
|
|
558
|
+
*SET_NODE_LIST
|
|
559
|
+
$# sid da1 da2 da3 da4 solver
|
|
560
|
+
1 0.0 0.0 0.0 0.0
|
|
561
|
+
$# nid1 nid2 nid3 nid4 nid5 nid6 nid7 nid8
|
|
562
|
+
1 37 73 109 145 181 217 253
|
|
563
|
+
289 293 297 301 305 309 313 317
|
|
564
|
+
321 285 249 213 177 141 105 69
|
|
565
|
+
33 29 25 21 17 13 9 5
|
|
566
|
+
*END
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"""LS-DYNA examples module.
|
|
2
|
-
|
|
3
|
-
Content reused based on the following implicit open to use license from
|
|
4
|
-
https://www.dynaexamples.com/
|
|
5
|
-
|
|
6
|
-
The input files and several class notes are available for download. The
|
|
7
|
-
download is free of charge, a login is not required. All examples are
|
|
8
|
-
presented with a brief description. You may find an example by checking a
|
|
9
|
-
specific class or by using the search functionality of the site.
|
|
10
|
-
|
|
11
|
-
The content is prepared for educational purposes. Hence, material
|
|
12
|
-
properties and other parameters might be non-physic for simplification.
|
|
13
|
-
|
|
14
|
-
"""
|
|
15
|
-
|
|
16
|
-
import os
|
|
17
|
-
|
|
18
|
-
dir_path = os.path.dirname(os.path.realpath(__file__))
|
|
19
|
-
|
|
20
|
-
# https://www.dynaexamples.com/introduction/intro-by-a.-tabiei/contact/contact-eroding-i
|
|
21
|
-
birdball = os.path.join(dir_path, "birdball.k")
|
|
22
|
-
|
|
23
|
-
# https://www.dynaexamples.com/show-cases/joint-screw/
|
|
24
|
-
joint_screw = os.path.join(dir_path, "EXP_SC_JOINT_SCREW.key")
|
|
25
|
-
|
|
26
|
-
# https://www.dynaexamples.com/nvh/example-05-03
|
|
27
|
-
wheel = os.path.join(dir_path, "wheel.k")
|
|
28
|
-
|
|
29
|
-
# https://www.dynaexamples.com/nvh/example-07-01
|
|
30
|
-
bracket = os.path.join(dir_path, "bracket.k")
|
|
31
|
-
|
|
32
|
-
__all__ = [
|
|
33
|
-
"birdball",
|
|
34
|
-
"joint_screw",
|
|
35
|
-
"wheel",
|
|
36
|
-
"bracket",
|
|
37
|
-
]
|
|
File without changes
|
|
File without changes
|
{lsdyna-mesh-reader-0.1.0 → lsdyna-mesh-reader-0.1.2}/docs/source/_templates/autosummary/base.rst
RENAMED
|
File without changes
|
{lsdyna-mesh-reader-0.1.0 → lsdyna-mesh-reader-0.1.2}/docs/source/_templates/autosummary/class.rst
RENAMED
|
File without changes
|
{lsdyna-mesh-reader-0.1.0 → lsdyna-mesh-reader-0.1.2}/docs/source/_templates/autosummary/module.rst
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{lsdyna-mesh-reader-0.1.0 → lsdyna-mesh-reader-0.1.2}/src/lsdyna_mesh_reader/examples/bird.k
RENAMED
|
File without changes
|
{lsdyna-mesh-reader-0.1.0 → lsdyna-mesh-reader-0.1.2}/src/lsdyna_mesh_reader/examples/birdball.k
RENAMED
|
File without changes
|
{lsdyna-mesh-reader-0.1.0 → lsdyna-mesh-reader-0.1.2}/src/lsdyna_mesh_reader/examples/bracket.k
RENAMED
|
File without changes
|
{lsdyna-mesh-reader-0.1.0 → lsdyna-mesh-reader-0.1.2}/src/lsdyna_mesh_reader/examples/wheel.k
RENAMED
|
File without changes
|
|
File without changes
|