コード例 #1
0
 def _ccs_default(self):
     """default settings correspond to 
     setup '7u_MAG-07-03_PZ-0708-1'
     """
     fabric_layout_key = "MAG-07-03"
     #        fabric_layout_key = '2D-02-06a'
     concrete_mixture_key = "PZ-0708-1"
     #        concrete_mixture_key = 'FIL-10-09'
     #        orientation_fn_key = 'all0'
     orientation_fn_key = "90_0"
     n_layers = 10
     s_tex_z = 0.030 / (n_layers + 1)
     ccs = CompositeCrossSection(
         fabric_layup_list=[
             plain_concrete(s_tex_z * 0.5),
             FabricLayUp(
                 n_layers=n_layers,
                 orientation_fn_key=orientation_fn_key,
                 s_tex_z=s_tex_z,
                 fabric_layout_key=fabric_layout_key,
             ),
             plain_concrete(s_tex_z * 0.5),
         ],
         concrete_mixture_key=concrete_mixture_key,
     )
     return ccs
コード例 #2
0
 def _ccs_default(self):
     """default settings correspond to 
     setup '9u_MAG-07-03_PZ-0708-1'
     """
     #        fabric_layout_key = 'MAG-07-03'
     #        fabric_layout_key = '2D-02-06a'
     #        fabric_layout_key = '2D-14-10'
     #        fabric_layout_key = '2D-18-10'
     fabric_layout_key = "2D-04-11"
     #        concrete_mixture_key = 'PZ-0708-1'
     concrete_mixture_key = "FIL-10-09"
     orientation_fn_key = "all0"
     #        orientation_fn_key = '90_0'
     n_layers = 6
     s_tex_z = 0.060 / (n_layers + 1)
     ccs = CompositeCrossSection(
         fabric_layup_list=[
             plain_concrete(s_tex_z * 0.5),
             FabricLayUp(
                 n_layers=n_layers,
                 orientation_fn_key=orientation_fn_key,
                 s_tex_z=s_tex_z,
                 fabric_layout_key=fabric_layout_key,
             ),
             plain_concrete(s_tex_z * 0.5),
         ],
         concrete_mixture_key=concrete_mixture_key,
     )
     return ccs
コード例 #3
0
ファイル: __test__.py プロジェクト: axelvonderheide/scratch
 def change_flu_list( self ):
     print 'XXX Append ccs.flu_list --------------------'
     self.exrv.model.ex_type.ccs.fabric_layup_list.append( plain_concrete( 0.01 ) )
     flu_list_new = self.exrv.model.ex_type.ccs.fabric_layup_list
     print '--- SET: ccs.fabric_layup_list (new)= ', flu_list_new , '---'
     print '--- GET: unsaved = ', self.exrv.unsaved, '---'
     return flu_list_new
コード例 #4
0
ファイル: test.py プロジェクト: axelvonderheide/scratch
print '--- GET: unsaved = ', exrv.unsaved, '---'

#----------------------------------------------------------
# change data file to another file and then change it back 
#----------------------------------------------------------
print 'XXX Change data file to another file and then change it back--------------------'
exrv.data_file = ex_path_TT_7a_V2
print '--- SET: data file (new): ', exrv.data_file
exrv.data_file = ex_path_TT_7a_V1
print '--- SET: data file (back to old): ', exrv.data_file

#----------------------------------------------------------
# change attribute in 'ccs.fabric_layup_list' 
#----------------------------------------------------------
print 'XXX change attribute in ccs.fabric_layup_list --------------------'
exrv.model.ex_type.ccs.fabric_layup_list.append( plain_concrete( 0.01 ) )
print '--- SET: ccs.fabric_layup_list = ', exrv.model.ex_type.ccs.fabric_layup_list, '---'
print '--- GET: unsaved = ', exrv.unsaved, '---'
exrv.save_run()

#----------------------------------------------------------
# change data file to another file and then change it back 
#----------------------------------------------------------
print 'XXX Change data file to another file and then change it back--------------------'
exrv.data_file = ex_path_TT_7a_V2
print '--- SET: data file (new): ', exrv.data_file
exrv.data_file = ex_path_TT_7a_V1
print '--- SET: data file (back to old): ', exrv.data_file

#----------------------------------------------------------
# change attribute in 'ccs.fabric_layup_list[0].s_tex_z'