midas-civil 0.2.0__tar.gz → 0.2.1__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.

Potentially problematic release.


This version of midas-civil might be problematic. Click here for more details.

Files changed (32) hide show
  1. {midas_civil-0.2.0 → midas_civil-0.2.1}/PKG-INFO +1 -1
  2. {midas_civil-0.2.0 → midas_civil-0.2.1}/midas_civil/_element.py +21 -4
  3. {midas_civil-0.2.0 → midas_civil-0.2.1}/midas_civil/_tendon.py +9 -10
  4. {midas_civil-0.2.0 → midas_civil-0.2.1}/midas_civil.egg-info/PKG-INFO +1 -1
  5. {midas_civil-0.2.0 → midas_civil-0.2.1}/setup.py +1 -1
  6. {midas_civil-0.2.0 → midas_civil-0.2.1}/LICENSE +0 -0
  7. {midas_civil-0.2.0 → midas_civil-0.2.1}/README.md +0 -0
  8. {midas_civil-0.2.0 → midas_civil-0.2.1}/midas_civil/__init__.py +0 -0
  9. {midas_civil-0.2.0 → midas_civil-0.2.1}/midas_civil/_boundary.py +0 -0
  10. {midas_civil-0.2.0 → midas_civil-0.2.1}/midas_civil/_construction.py +0 -0
  11. {midas_civil-0.2.0 → midas_civil-0.2.1}/midas_civil/_construction_backup.py +0 -0
  12. {midas_civil-0.2.0 → midas_civil-0.2.1}/midas_civil/_group.py +0 -0
  13. {midas_civil-0.2.0 → midas_civil-0.2.1}/midas_civil/_load.py +0 -0
  14. {midas_civil-0.2.0 → midas_civil-0.2.1}/midas_civil/_mapi.py +0 -0
  15. {midas_civil-0.2.0 → midas_civil-0.2.1}/midas_civil/_material.py +0 -0
  16. {midas_civil-0.2.0 → midas_civil-0.2.1}/midas_civil/_model.py +0 -0
  17. {midas_civil-0.2.0 → midas_civil-0.2.1}/midas_civil/_movingload.py +0 -0
  18. {midas_civil-0.2.0 → midas_civil-0.2.1}/midas_civil/_node.py +0 -0
  19. {midas_civil-0.2.0 → midas_civil-0.2.1}/midas_civil/_result copy.py +0 -0
  20. {midas_civil-0.2.0 → midas_civil-0.2.1}/midas_civil/_result.py +0 -0
  21. {midas_civil-0.2.0 → midas_civil-0.2.1}/midas_civil/_result_extract.py +0 -0
  22. {midas_civil-0.2.0 → midas_civil-0.2.1}/midas_civil/_section.py +0 -0
  23. {midas_civil-0.2.0 → midas_civil-0.2.1}/midas_civil/_settlement.py +0 -0
  24. {midas_civil-0.2.0 → midas_civil-0.2.1}/midas_civil/_temperature.py +0 -0
  25. {midas_civil-0.2.0 → midas_civil-0.2.1}/midas_civil/_thickness.py +0 -0
  26. {midas_civil-0.2.0 → midas_civil-0.2.1}/midas_civil/_utils.py +0 -0
  27. {midas_civil-0.2.0 → midas_civil-0.2.1}/midas_civil/_view.py +0 -0
  28. {midas_civil-0.2.0 → midas_civil-0.2.1}/midas_civil.egg-info/SOURCES.txt +0 -0
  29. {midas_civil-0.2.0 → midas_civil-0.2.1}/midas_civil.egg-info/dependency_links.txt +0 -0
  30. {midas_civil-0.2.0 → midas_civil-0.2.1}/midas_civil.egg-info/requires.txt +0 -0
  31. {midas_civil-0.2.0 → midas_civil-0.2.1}/midas_civil.egg-info/top_level.txt +0 -0
  32. {midas_civil-0.2.0 → midas_civil-0.2.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: midas_civil
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Python library for MIDAS Civil NX
5
5
  Author: Sumit Shekhar
6
6
  Author-email: sumit.midasit@gmail.com
@@ -231,7 +231,10 @@ class Element:
231
231
  _ADD(self)
232
232
 
233
233
  @staticmethod
234
- def SDL(s_loc:list,dir:list,l:float,n:int=1,mat:int=1,sect:int=1,angle:float=0, group = "" , id: int = 0): #CHANGE TO TUPLE
234
+ def SDL(s_loc:list|Node,dir:list,l:float,n:int=1,mat:int=1,sect:int=1,angle:float=0, group = "" , id: int = 0): #CHANGE TO TUPLE
235
+ if isinstance(s_loc,Node):
236
+ s_loc = (s_loc.X,s_loc.Y,s_loc.Z)
237
+
235
238
  beam_nodes =[]
236
239
  beam_obj = []
237
240
  s_locc = np.array(s_loc)
@@ -251,7 +254,12 @@ class Element:
251
254
 
252
255
 
253
256
  @staticmethod
254
- def SE(s_loc:list,e_loc:list,n:int=1,mat:int=1,sect:int=1,angle:float=0, group = "" , id: int = 0):
257
+ def SE(s_loc:list|Node,e_loc:list|Node,n:int=1,mat:int=1,sect:int=1,angle:float=0, group = "" , id: int = 0):
258
+ if isinstance(s_loc,Node):
259
+ s_loc = (s_loc.X,s_loc.Y,s_loc.Z)
260
+ if isinstance(e_loc,Node):
261
+ s_loc = (e_loc.X,e_loc.Y,e_loc.Z)
262
+
255
263
  beam_nodes =[]
256
264
  beam_obj = []
257
265
  i_loc = np.linspace(s_loc,e_loc,n+1)
@@ -302,7 +310,10 @@ class Element:
302
310
  _ADD(self)
303
311
 
304
312
  @staticmethod
305
- def SDL(s_loc:list,dir:list,l:float,n:int=1,mat:int=1,sect:int=1,angle:float=0, group = "" , id: int = 0):
313
+ def SDL(s_loc:list|Node,dir:list,l:float,n:int=1,mat:int=1,sect:int=1,angle:float=0, group = "" , id: int = 0):
314
+ if isinstance(s_loc,Node):
315
+ s_loc = (s_loc.X,s_loc.Y,s_loc.Z)
316
+
306
317
  beam_nodes =[]
307
318
  beam_obj =[]
308
319
  s_locc = np.array(s_loc)
@@ -322,7 +333,13 @@ class Element:
322
333
 
323
334
 
324
335
  @staticmethod
325
- def SE(s_loc:list,e_loc:list,n:int=1,mat:int=1,sect:int=1,angle:float=0, group = "" , id: int = 0):
336
+ def SE(s_loc:list|Node,e_loc:list|Node,n:int=1,mat:int=1,sect:int=1,angle:float=0, group = "" , id: int = 0):
337
+
338
+ if isinstance(s_loc,Node):
339
+ s_loc = (s_loc.X,s_loc.Y,s_loc.Z)
340
+ if isinstance(e_loc,Node):
341
+ s_loc = (e_loc.X,e_loc.Y,e_loc.Z)
342
+
326
343
  beam_nodes =[]
327
344
  beam_obj = []
328
345
  i_loc = np.linspace(s_loc,e_loc,n+1)
@@ -201,7 +201,7 @@ class Tendon:
201
201
  Tendon.Property.create()
202
202
  if Tendon.Profile.profiles !=[]:
203
203
  Tendon.Profile.create()
204
- if Tendon.Prestress.load !=[]:
204
+ if Tendon.Prestress.loads !=[]:
205
205
  Tendon.Prestress.create()
206
206
 
207
207
  class Relaxation:
@@ -880,10 +880,9 @@ class Tendon:
880
880
 
881
881
 
882
882
  class Prestress:
883
- """Creates node loads and converts to JSON format.
884
- Example: Load_Node(101, "LC1", "Group1", FZ = 10)
883
+ """Prestress Loading for Tendons.
885
884
  """
886
- load = []
885
+ loads = []
887
886
  ids = []
888
887
  def __init__(self, profile_name, load_case, load_group = "", prestress_type = "STRESS", jack_step = "BEGIN", jack_begin = 0, jack_end=0, grouting_stage = 0, id = 0):
889
888
 
@@ -904,7 +903,7 @@ class Tendon:
904
903
  if jack_step not in ['BEGIN' , 'END' , 'BOTH']: jack_step = 'BEGIN'
905
904
 
906
905
  self.TDN_ID = 0
907
- if id == 0: id = len(Tendon.Prestress.load) + 1
906
+ if id == 0: id = len(Tendon.Prestress.loads) + 1
908
907
  self.ID = id
909
908
  else:
910
909
  self.TDN_ID = -id//100000
@@ -924,14 +923,14 @@ class Tendon:
924
923
 
925
924
 
926
925
 
927
- Tendon.Prestress.load.append(self)
926
+ Tendon.Prestress.loads.append(self)
928
927
  Tendon.Prestress.ids.append(self.ID)
929
928
 
930
929
 
931
930
  @classmethod
932
931
  def json(cls):
933
932
  json = {"Assign": {}}
934
- for self in cls.load:
933
+ for self in cls.loads:
935
934
 
936
935
  # Finding Tendon ID
937
936
  tdn_id = self.TDN_ID
@@ -943,7 +942,7 @@ class Tendon:
943
942
  tdn_check=1
944
943
  break
945
944
  if not tdn_check:
946
- print(f'⚠️ "{self.TDN_NAME}" tendon name is not found for Prestress load application. Prestress load skipped.\n📑 Try Tendon.Profile.sync() to retrieve Profile Names first')
945
+ print(f'⚠️ "{self.TDN_NAME}" Tendon name is not found for Prestress load application. Prestress load skipped.\n📑 Try Tendon.Profile.sync() to retrieve Profile Names first')
947
946
  continue
948
947
 
949
948
 
@@ -973,12 +972,12 @@ class Tendon:
973
972
 
974
973
  @classmethod
975
974
  def delete(cls):
976
- cls.load=[]
975
+ cls.loads=[]
977
976
  return MidasAPI("DELETE", "/db/TDPL")
978
977
 
979
978
  @classmethod
980
979
  def sync(cls):
981
- cls.load = []
980
+ cls.loads = []
982
981
  a = cls.get()
983
982
  if a != {'message': ''}:
984
983
  for i in a['TDPL'].keys():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: midas_civil
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Python library for MIDAS Civil NX
5
5
  Author: Sumit Shekhar
6
6
  Author-email: sumit.midasit@gmail.com
@@ -5,7 +5,7 @@ with open('README.md','r') as f:
5
5
 
6
6
 
7
7
  setup(name='midas_civil',
8
- version='0.2.0',
8
+ version='0.2.1',
9
9
  description='Python library for MIDAS Civil NX',
10
10
  author='Sumit Shekhar',
11
11
  author_email='sumit.midasit@gmail.com',
File without changes
File without changes
File without changes