Merge pull request #12932 from marioalexis84/fem-ccx_force_format

Fem: Format force constraint in CalculiX writer - fixes #12805
This commit is contained in:
Chris Hennes
2024-03-13 18:17:11 -05:00
committed by GitHub
22 changed files with 3944 additions and 3944 deletions

View File

@@ -56,13 +56,13 @@ def write_meshdata_constraint(f, femobj, force_obj, ccxwriter):
node_load = ref_shape[1][n]
# the loads in ref_shape[1][n] are without unit
if abs(direction_vec.x) > dir_zero_tol:
v1 = "{}".format(direction_vec.x * node_load)
v1 = "{:.13G}".format((direction_vec.x * node_load).Value)
f.write("{},1,{}\n".format(n, v1))
if abs(direction_vec.y) > dir_zero_tol:
v2 = "{}".format(direction_vec.y * node_load)
v2 = "{:.13G}".format((direction_vec.y * node_load).Value)
f.write("{},2,{}\n".format(n, v2))
if abs(direction_vec.z) > dir_zero_tol:
v3 = "{}".format(direction_vec.z * node_load)
v3 = "{:.13G}".format((direction_vec.z * node_load).Value)
f.write("{},3,{}\n".format(n, v3))
f.write("\n")
f.write("\n")

View File

@@ -507,47 +507,47 @@ FemConstraintFixed,3
*CLOAD
** FemConstraintForce
** node loads on shape: Box:Face6
2,3,-0.0
4,3,-0.0
6,3,-0.0
8,3,-0.0
18,3,-0.0
19,3,-833.3333333333335
20,3,-833.3333333333335
30,3,-0.0
31,3,-833.3333333333335
32,3,-833.3333333333335
36,3,-0.0
37,3,-833.3333333333335
38,3,-833.3333333333335
42,3,-0.0
43,3,-833.3333333333335
44,3,-833.3333333333335
170,3,-0.0
171,3,-0.0
172,3,-0.0
173,3,-0.0
174,3,-0.0
175,3,-1666.666666666667
176,3,-1666.666666666667
177,3,-1666.666666666667
178,3,-1666.666666666667
179,3,-1666.666666666667
180,3,-1666.666666666667
181,3,-1666.666666666667
182,3,-1666.666666666667
183,3,-1666.666666666667
184,3,-1666.666666666667
185,3,-1666.666666666667
186,3,-1666.666666666667
187,3,-1666.666666666667
188,3,-1666.666666666667
189,3,-1666.666666666667
190,3,-1666.666666666667
191,3,-1666.666666666667
192,3,-1666.666666666667
193,3,-1666.666666666667
194,3,-1666.666666666667
2,3,-0
4,3,-0
6,3,-0
8,3,-0
18,3,-0
19,3,-833.3333333333
20,3,-833.3333333333
30,3,-0
31,3,-833.3333333333
32,3,-833.3333333333
36,3,-0
37,3,-833.3333333333
38,3,-833.3333333333
42,3,-0
43,3,-833.3333333333
44,3,-833.3333333333
170,3,-0
171,3,-0
172,3,-0
173,3,-0
174,3,-0
175,3,-1666.666666667
176,3,-1666.666666667
177,3,-1666.666666667
178,3,-1666.666666667
179,3,-1666.666666667
180,3,-1666.666666667
181,3,-1666.666666667
182,3,-1666.666666667
183,3,-1666.666666667
184,3,-1666.666666667
185,3,-1666.666666667
186,3,-1666.666666667
187,3,-1666.666666667
188,3,-1666.666666667
189,3,-1666.666666667
190,3,-1666.666666667
191,3,-1666.666666667
192,3,-1666.666666667
193,3,-1666.666666667
194,3,-1666.666666667

View File

@@ -83,7 +83,7 @@ ConstraintFixed,6
*CLOAD
** ConstraintForce
** node load on shape: CantileverLine:Vertex2
2,3,-9000000.0
2,3,-9000000

View File

@@ -83,7 +83,7 @@ ConstraintFixed,6
*CLOAD
** ConstraintForce
** node load on shape: CantileverLine:Vertex2
2,3,-9000000.0
2,3,-9000000

View File

@@ -83,7 +83,7 @@ ConstraintFixed,6
*CLOAD
** ConstraintForce
** node load on shape: CantileverLine:Vertex2
2,3,-9000000.0
2,3,-9000000

View File

@@ -403,27 +403,27 @@ ConstraintFixed,3
*CLOAD
** ConstraintForce
** node loads on shape: Box:Face2
5,3,187500.00000000003
6,3,187500.00000000003
7,3,187500.00000000003
8,3,187500.00000000003
21,3,-750000.0000000001
22,3,375000.00000000006
23,3,-750000.0000000001
24,3,-750000.0000000001
25,3,375000.00000000006
26,3,-750000.0000000001
27,3,-750000.0000000001
28,3,375000.00000000006
29,3,-750000.0000000001
30,3,-750000.0000000001
31,3,375000.00000000006
32,3,-750000.0000000001
98,3,-1500000.0000000002
99,3,-1500000.0000000002
100,3,750000.0000000001
101,3,-1500000.0000000002
102,3,-1500000.0000000002
5,3,187500
6,3,187500
7,3,187500
8,3,187500
21,3,-750000
22,3,375000
23,3,-750000
24,3,-750000
25,3,375000
26,3,-750000
27,3,-750000
28,3,375000
29,3,-750000
30,3,-750000
31,3,375000
32,3,-750000
98,3,-1500000
99,3,-1500000
100,3,750000
101,3,-1500000
102,3,-1500000

View File

@@ -107,9 +107,9 @@ ConstraintFixed,6
*CLOAD
** ConstraintForce
** node loads on shape: CanileverPlate:Edge3
3,3,-2250000.0
4,3,-2250000.0
13,3,-4500000.0
3,3,-2250000
4,3,-2250000
13,3,-4500000

View File

@@ -95,11 +95,11 @@ ConstraintFixed,6
*CLOAD
** ConstraintForce
** node loads on shape: CanileverPlate:Edge3
3,3,-750000.0
4,3,-750000.0
11,3,-1500000.0
12,3,-3000000.0
13,3,-3000000.0
3,3,-750000
4,3,-750000
11,3,-1500000
12,3,-3000000
13,3,-3000000

View File

@@ -225,7 +225,7 @@ ConstraintFixed,6
*CLOAD
** ConstraintForce
** node load on shape: CantileverLine:Vertex2
2,3,-9000000.0
2,3,-9000000

View File

@@ -83,7 +83,7 @@ ConstraintFixed,6
*CLOAD
** ConstraintForce
** node load on shape: CantileverLine:Vertex2
2,3,-9000000.0
2,3,-9000000

View File

@@ -1583,14 +1583,14 @@ ConstraintFixed,6
*CLOAD
** ConstraintForce
** node loads on shape: CanileverPlate:Edge3
3,3,-642857.1428571417
4,3,-642857.1428571455
64,3,-1285714.2857142843
65,3,-1285714.285714283
66,3,-1285714.28571428
67,3,-1285714.2857142847
68,3,-1285714.28571429
69,3,-1285714.2857142906
3,3,-642857.1428571
4,3,-642857.1428571
64,3,-1285714.285714
65,3,-1285714.285714
66,3,-1285714.285714
67,3,-1285714.285714
68,3,-1285714.285714
69,3,-1285714.285714

View File

@@ -313,11 +313,11 @@ ConstraintFixed,6
*CLOAD
** ConstraintForce
** node loads on shape: CanileverPlate:Edge3
3,3,-750000.0
4,3,-750000.0
39,3,-1500000.0
40,3,-3000000.0
41,3,-3000000.0
3,3,-750000
4,3,-750000
39,3,-1500000
40,3,-3000000
41,3,-3000000

View File

@@ -377,19 +377,19 @@ ConstraintFixed,3
*CLOAD
** ConstraintForce
** node loads on shape: Box:Face2
1,3,-0.0
2,3,-0.0
3,3,-0.0
4,3,-0.0
49,3,-0.0
64,3,-750000.0000000001
88,3,-750000.0000000001
100,3,-750000.0000000001
102,3,-750000.0000000001
188,3,-1500000.0000000002
189,3,-1500000.0000000002
190,3,-1500000.0000000002
191,3,-1500000.0000000002
1,3,-0
2,3,-0
3,3,-0
4,3,-0
49,3,-0
64,3,-750000
88,3,-750000
100,3,-750000
102,3,-750000
188,3,-1500000
189,3,-1500000
190,3,-1500000
191,3,-1500000

View File

@@ -377,16 +377,16 @@ ConstraintFixed,3
*CLOAD
** ConstraintForce
** node load on shape: Box:Vertex5
4,3,-2250000.0
4,3,-2250000
** node load on shape: Box:Vertex6
3,3,-2250000.0
3,3,-2250000
** node load on shape: Box:Vertex7
2,3,-2250000.0
2,3,-2250000
** node load on shape: Box:Vertex8
1,3,-2250000.0
1,3,-2250000

View File

@@ -38394,7 +38394,7 @@ ConstraintFixed,6
*CLOAD
** ConstraintForce
** node load on shape: Load_place_point:Vertex1
5,2,-5000.0
5,2,-5000

View File

@@ -18630,9 +18630,9 @@ ConstraintFixed,3
*CLOAD
** ConstraintForce
** node loads on shape: BooleanFragments:Edge2
2,2,1666.6666666666667
8,2,1666.6666666666667
385,2,6666.666666666667
2,2,1666.666666667
8,2,1666.666666667
385,2,6666.666666667

View File

@@ -2569,119 +2569,119 @@ ConstraintFixed,6
*CLOAD
** ConstraintForce
** node loads on shape: Face1:Edge4
9,2,-33.33333333333333
11,2,-33.33333333333333
118,2,-66.66666666666666
119,2,-66.66666666666666
120,2,-66.66666666666666
121,2,-66.66666666666666
122,2,-66.66666666666666
123,2,-66.66666666666666
124,2,-66.66666666666666
125,2,-66.66666666666666
126,2,-66.66666666666666
472,2,-133.33333333333331
473,2,-133.33333333333331
474,2,-133.33333333333331
475,2,-133.33333333333331
476,2,-133.33333333333331
477,2,-133.33333333333331
478,2,-133.33333333333331
479,2,-133.33333333333331
480,2,-133.33333333333331
481,2,-133.33333333333331
9,2,-33.33333333333
11,2,-33.33333333333
118,2,-66.66666666667
119,2,-66.66666666667
120,2,-66.66666666667
121,2,-66.66666666667
122,2,-66.66666666667
123,2,-66.66666666667
124,2,-66.66666666667
125,2,-66.66666666667
126,2,-66.66666666667
472,2,-133.3333333333
473,2,-133.3333333333
474,2,-133.3333333333
475,2,-133.3333333333
476,2,-133.3333333333
477,2,-133.3333333333
478,2,-133.3333333333
479,2,-133.3333333333
480,2,-133.3333333333
481,2,-133.3333333333
** node loads on shape: Face2:Edge4
7,2,-33.33333333333333
9,2,-33.33333333333333
96,2,-66.66666666666666
97,2,-66.66666666666666
98,2,-66.66666666666666
99,2,-66.66666666666666
100,2,-66.66666666666666
101,2,-66.66666666666666
102,2,-66.66666666666666
103,2,-66.66666666666666
104,2,-66.66666666666666
447,2,-133.33333333333331
448,2,-133.33333333333331
449,2,-133.33333333333331
450,2,-133.33333333333331
451,2,-133.33333333333331
452,2,-133.33333333333331
453,2,-133.33333333333331
454,2,-133.33333333333331
455,2,-133.33333333333331
456,2,-133.33333333333331
7,2,-33.33333333333
9,2,-33.33333333333
96,2,-66.66666666667
97,2,-66.66666666667
98,2,-66.66666666667
99,2,-66.66666666667
100,2,-66.66666666667
101,2,-66.66666666667
102,2,-66.66666666667
103,2,-66.66666666667
104,2,-66.66666666667
447,2,-133.3333333333
448,2,-133.3333333333
449,2,-133.3333333333
450,2,-133.3333333333
451,2,-133.3333333333
452,2,-133.3333333333
453,2,-133.3333333333
454,2,-133.3333333333
455,2,-133.3333333333
456,2,-133.3333333333
** node loads on shape: Face3:Edge4
5,2,-33.33333333333333
7,2,-33.33333333333333
74,2,-66.66666666666666
75,2,-66.66666666666666
76,2,-66.66666666666666
77,2,-66.66666666666666
78,2,-66.66666666666666
79,2,-66.66666666666666
80,2,-66.66666666666666
81,2,-66.66666666666666
82,2,-66.66666666666666
422,2,-133.33333333333331
423,2,-133.33333333333331
424,2,-133.33333333333331
425,2,-133.33333333333331
426,2,-133.33333333333331
427,2,-133.33333333333331
428,2,-133.33333333333331
429,2,-133.33333333333331
430,2,-133.33333333333331
431,2,-133.33333333333331
5,2,-33.33333333333
7,2,-33.33333333333
74,2,-66.66666666667
75,2,-66.66666666667
76,2,-66.66666666667
77,2,-66.66666666667
78,2,-66.66666666667
79,2,-66.66666666667
80,2,-66.66666666667
81,2,-66.66666666667
82,2,-66.66666666667
422,2,-133.3333333333
423,2,-133.3333333333
424,2,-133.3333333333
425,2,-133.3333333333
426,2,-133.3333333333
427,2,-133.3333333333
428,2,-133.3333333333
429,2,-133.3333333333
430,2,-133.3333333333
431,2,-133.3333333333
** node loads on shape: Face4:Edge4
3,2,-33.33333333333333
5,2,-33.33333333333333
52,2,-66.66666666666666
53,2,-66.66666666666666
54,2,-66.66666666666666
55,2,-66.66666666666666
56,2,-66.66666666666666
57,2,-66.66666666666666
58,2,-66.66666666666666
59,2,-66.66666666666666
60,2,-66.66666666666666
397,2,-133.33333333333331
398,2,-133.33333333333331
399,2,-133.33333333333331
400,2,-133.33333333333331
401,2,-133.33333333333331
402,2,-133.33333333333331
403,2,-133.33333333333331
404,2,-133.33333333333331
405,2,-133.33333333333331
406,2,-133.33333333333331
3,2,-33.33333333333
5,2,-33.33333333333
52,2,-66.66666666667
53,2,-66.66666666667
54,2,-66.66666666667
55,2,-66.66666666667
56,2,-66.66666666667
57,2,-66.66666666667
58,2,-66.66666666667
59,2,-66.66666666667
60,2,-66.66666666667
397,2,-133.3333333333
398,2,-133.3333333333
399,2,-133.3333333333
400,2,-133.3333333333
401,2,-133.3333333333
402,2,-133.3333333333
403,2,-133.3333333333
404,2,-133.3333333333
405,2,-133.3333333333
406,2,-133.3333333333
** node loads on shape: Face5:Edge4
1,2,-33.33333333333333
3,2,-33.33333333333333
26,2,-66.66666666666666
27,2,-66.66666666666666
28,2,-66.66666666666666
29,2,-66.66666666666666
30,2,-66.66666666666666
31,2,-66.66666666666666
32,2,-66.66666666666666
33,2,-66.66666666666666
34,2,-66.66666666666666
367,2,-133.33333333333331
368,2,-133.33333333333331
369,2,-133.33333333333331
370,2,-133.33333333333331
371,2,-133.33333333333331
372,2,-133.33333333333331
373,2,-133.33333333333331
374,2,-133.33333333333331
375,2,-133.33333333333331
376,2,-133.33333333333331
1,2,-33.33333333333
3,2,-33.33333333333
26,2,-66.66666666667
27,2,-66.66666666667
28,2,-66.66666666667
29,2,-66.66666666667
30,2,-66.66666666667
31,2,-66.66666666667
32,2,-66.66666666667
33,2,-66.66666666667
34,2,-66.66666666667
367,2,-133.3333333333
368,2,-133.3333333333
369,2,-133.3333333333
370,2,-133.3333333333
371,2,-133.3333333333
372,2,-133.3333333333
373,2,-133.3333333333
374,2,-133.3333333333
375,2,-133.3333333333
376,2,-133.3333333333

View File

@@ -2581,70 +2581,70 @@ ConstraintFixed,6
*CLOAD
** ConstraintForce1
** node loads on shape: SquareTube:Edge9
1,1,2777.7777777777783
236,1,2777.7777777777783
343,1,5555.555555555557
344,1,5555.555555555557
345,1,5555.555555555557
346,1,5555.555555555557
347,1,5555.555555555557
1376,1,11111.111111111113
1378,1,11111.111111111113
1380,1,11111.111111111113
1383,1,11111.111111111113
1386,1,11111.111111111113
1390,1,11111.111111111113
1,1,2777.777777778
236,1,2777.777777778
343,1,5555.555555556
344,1,5555.555555556
345,1,5555.555555556
346,1,5555.555555556
347,1,5555.555555556
1376,1,11111.11111111
1378,1,11111.11111111
1380,1,11111.11111111
1383,1,11111.11111111
1386,1,11111.11111111
1390,1,11111.11111111
** ConstraintForce2
** node loads on shape: SquareTube:Edge3
2,1,-2777.7777777777783
129,1,-2777.7777777777783
131,1,-5555.555555555557
132,1,-5555.555555555557
133,1,-5555.555555555557
134,1,-5555.555555555557
135,1,-5555.555555555557
758,1,-11111.111111111113
762,1,-11111.111111111113
764,1,-11111.111111111113
766,1,-11111.111111111113
769,1,-11111.111111111113
772,1,-11111.111111111113
2,1,-2777.777777778
129,1,-2777.777777778
131,1,-5555.555555556
132,1,-5555.555555556
133,1,-5555.555555556
134,1,-5555.555555556
135,1,-5555.555555556
758,1,-11111.11111111
762,1,-11111.11111111
764,1,-11111.11111111
766,1,-11111.11111111
769,1,-11111.11111111
772,1,-11111.11111111
** ConstraintForce3
** node loads on shape: SquareTube:Edge11
1,2,2777.7777777777783
2,2,2777.7777777777783
5,2,5555.555555555557
6,2,5555.555555555557
7,2,5555.555555555557
8,2,5555.555555555557
9,2,5555.555555555557
429,2,11111.111111111113
431,2,11111.111111111113
437,2,11111.111111111113
440,2,11111.111111111113
443,2,11111.111111111113
446,2,11111.111111111113
1,2,2777.777777778
2,2,2777.777777778
5,2,5555.555555556
6,2,5555.555555556
7,2,5555.555555556
8,2,5555.555555556
9,2,5555.555555556
429,2,11111.11111111
431,2,11111.11111111
437,2,11111.11111111
440,2,11111.11111111
443,2,11111.11111111
446,2,11111.11111111
** ConstraintForce4
** node loads on shape: SquareTube:Edge6
129,2,-2777.7777777777783
236,2,-2777.7777777777783
238,2,-5555.555555555557
239,2,-5555.555555555557
240,2,-5555.555555555557
241,2,-5555.555555555557
242,2,-5555.555555555557
1067,2,-11111.111111111113
1071,2,-11111.111111111113
1073,2,-11111.111111111113
1075,2,-11111.111111111113
1078,2,-11111.111111111113
1081,2,-11111.111111111113
129,2,-2777.777777778
236,2,-2777.777777778
238,2,-5555.555555556
239,2,-5555.555555556
240,2,-5555.555555556
241,2,-5555.555555556
242,2,-5555.555555556
1067,2,-11111.11111111
1071,2,-11111.11111111
1073,2,-11111.11111111
1075,2,-11111.11111111
1078,2,-11111.11111111
1081,2,-11111.11111111

View File

@@ -2631,42 +2631,42 @@ ConstraintFixed,6
** ConstraintForce5
** node load on shape: Forces:Vertex43
1376,1,-11111.111666666666
1376,1,-11111.11166667
** node load on shape: Forces:Vertex44
1378,1,-11111.111666666666
1378,1,-11111.11166667
** node load on shape: Forces:Vertex45
1380,1,-11111.111666666666
1380,1,-11111.11166667
** node load on shape: Forces:Vertex46
1383,1,-11111.111666666666
1383,1,-11111.11166667
** node load on shape: Forces:Vertex47
1386,1,-11111.111666666666
1386,1,-11111.11166667
** node load on shape: Forces:Vertex48
1390,1,-11111.111666666666
1390,1,-11111.11166667
** ConstraintForce6
** node load on shape: Forces:Vertex31
758,1,11111.111666666666
758,1,11111.11166667
** node load on shape: Forces:Vertex32
762,1,11111.111666666666
762,1,11111.11166667
** node load on shape: Forces:Vertex33
764,1,11111.111666666666
764,1,11111.11166667
** node load on shape: Forces:Vertex34
766,1,11111.111666666666
766,1,11111.11166667
** node load on shape: Forces:Vertex35
769,1,11111.111666666666
769,1,11111.11166667
** node load on shape: Forces:Vertex36
772,1,11111.111666666666
772,1,11111.11166667
** ConstraintForce7
@@ -2721,42 +2721,42 @@ ConstraintFixed,6
** ConstraintForce11
** node load on shape: Forces:Vertex25
429,2,-11111.111666666666
429,2,-11111.11166667
** node load on shape: Forces:Vertex26
431,2,-11111.111666666666
431,2,-11111.11166667
** node load on shape: Forces:Vertex27
437,2,-11111.111666666666
437,2,-11111.11166667
** node load on shape: Forces:Vertex28
440,2,-11111.111666666666
440,2,-11111.11166667
** node load on shape: Forces:Vertex29
443,2,-11111.111666666666
443,2,-11111.11166667
** node load on shape: Forces:Vertex30
446,2,-11111.111666666666
446,2,-11111.11166667
** ConstraintForce12
** node load on shape: Forces:Vertex37
1067,2,11111.111666666666
1067,2,11111.11166667
** node load on shape: Forces:Vertex38
1071,2,11111.111666666666
1071,2,11111.11166667
** node load on shape: Forces:Vertex39
1073,2,11111.111666666666
1073,2,11111.11166667
** node load on shape: Forces:Vertex40
1075,2,11111.111666666666
1075,2,11111.11166667
** node load on shape: Forces:Vertex41
1078,2,11111.111666666666
1078,2,11111.11166667
** node load on shape: Forces:Vertex42
1081,2,11111.111666666666
1081,2,11111.11166667