|
- - elem_prop (msgpi.sg.StructureGene attribute)
+
- elementids1d (msgpi.sg.StructureGene attribute)
+
+ - elementids2d (msgpi.sg.StructureGene attribute)
+
+ - elementids3d (msgpi.sg.StructureGene attribute)
- elements (msgpi.sg.StructureGene attribute)
@@ -199,6 +230,8 @@ E
F
|
@@ -243,12 +276,18 @@ I
M
|
+ - materials (msgpi.sg.StructureGene attribute)
+
+ - MaterialSection (class in msgpi.sg)
+
- mocombos (msgpi.sg.StructureGene attribute)
- model (msgpi.sg.StructureGene attribute)
@@ -259,10 +298,16 @@
M
N
|
+ - nodes (msgpi.sg.StructureGene attribute)
+
- nonuniform_temperature (msgpi.sg.StructureGene attribute)
- num_slavenodes (msgpi.sg.StructureGene attribute)
@@ -274,6 +319,10 @@
O
@@ -282,9 +331,13 @@ P
|
|
@@ -293,11 +346,15 @@ P
R
@@ -305,10 +362,28 @@ R
S
diff --git a/doc/build/html/index.html b/doc/build/html/index.html
index f23181a..663f3fe 100644
--- a/doc/build/html/index.html
+++ b/doc/build/html/index.html
@@ -84,6 +84,8 @@
- Class Module for MSM Structure Gene
- SG I/O Module for VABS
- I/O Utility Functions
+- presg Module
+- analysis Module
@@ -164,6 +166,8 @@ - presg Module
+- analysis Module
diff --git a/doc/build/html/ioutils.html b/doc/build/html/ioutils.html
index 8d39f7f..7e1197a 100644
--- a/doc/build/html/ioutils.html
+++ b/doc/build/html/ioutils.html
@@ -162,10 +162,10 @@ I/O Utility Functions
| Parameters: |
-- file (file) – The file object for writing
-- numbers (list) – The list of numbers that is going to be written
-- fmt (string) – The desired format for each number
-- newline (bool) – If append the character
\n after writting all numbers or not
+- file (file) – The file object for writing.
+- numbers (list(int)) – The list of numbers that is going to be written.
+- fmt (str) – The desired format for each number.
+- newline (bool) – If append the character
\n after writting all numbers or not.
|
@@ -182,10 +182,10 @@ I/O Utility Functions
| Parameters: |
-- file (file) – The file object for writing
-- numbers (list) – The list of numbers that is going to be written
-- fmt (string) – The desired format for each number
-- newline (bool) – If append the character
\n after writting all numbers or not
+- file (file) – The file object for writing.
+- numbers (list(float)) – The list of numbers that is going to be written.
+- fmt (str) – The desired format for each number.
+- newline (bool) – If append the character
\n after writting all numbers or not.
|
@@ -201,7 +201,20 @@ I/O Utility Functions
+Examples
>>> lines = ['1 2 3', '4 5 6', '7 8 9']
>>> utilities.textToMatrix(lines)
array([[1., 2., 3.],
diff --git a/doc/build/html/iovabs.html b/doc/build/html/iovabs.html
index ae7fd1e..7f6e4e6 100644
--- a/doc/build/html/iovabs.html
+++ b/doc/build/html/iovabs.html
@@ -182,7 +182,11 @@ Reading Functions
-| Parameters: | fn (str) – VABS output file name (e.g. example.sg.k) |
+
|---|
| Parameters: |
+- fn (str) – VABS output file name (e.g. example.sg.k).
+- scrnout (bool) – Whether to print message to screen.
+
+ |
|
@@ -194,7 +198,27 @@ Writing Functions
diff --git a/doc/build/html/searchindex.js b/doc/build/html/searchindex.js
index 81dca0f..2cb4329 100644
--- a/doc/build/html/searchindex.js
+++ b/doc/build/html/searchindex.js
@@ -1 +1 @@
-Search.setIndex({docnames:["index","ioutils","iovabs","sg"],envversion:{"sphinx.domains.c":1,"sphinx.domains.changeset":1,"sphinx.domains.cpp":1,"sphinx.domains.javascript":1,"sphinx.domains.math":2,"sphinx.domains.python":1,"sphinx.domains.rst":1,"sphinx.domains.std":1,sphinx:54},filenames:["index.rst","ioutils.rst","iovabs.rst","sg.rst"],objects:{"msgpi.io.iovabs":{readVABSIn:[2,0,1,""],readVABSOutHomo:[2,0,1,""],writeVABSElementOrientations:[2,0,1,""],writeVABSElements:[2,0,1,""],writeVABSIn:[2,0,1,""],writeVABSMOCombos:[2,0,1,""],writeVABSMacroData:[2,0,1,""],writeVABSMaterials:[2,0,1,""],writeVABSNodes:[2,0,1,""]},"msgpi.io.utils":{textToMatrix:[1,0,1,""],writeFormatFloats:[1,0,1,""],writeFormatFloatsMatrix:[1,0,1,""],writeFormatIntegers:[1,0,1,""],writeFormatIntegersMatrix:[1,0,1,""]},"msgpi.sg":{MaterialSection:[3,1,1,""],StructureGene:[3,1,1,""]},"msgpi.sg.StructureGene":{analysis:[3,2,1,""],degen_element:[3,2,1,""],elem_orient:[3,2,1,""],elem_prop:[3,2,1,""],elements:[3,2,1,""],findComboByMaterialOrientation:[3,3,1,""],findMaterialByName:[3,3,1,""],fn_gmsh_msh:[3,2,1,""],global_displacements:[3,2,1,""],global_loads:[3,2,1,""],global_loads_dist:[3,2,1,""],global_loads_type:[3,2,1,""],global_rotations:[3,2,1,""],initial_curvature:[3,2,1,""],initial_twist:[3,2,1,""],materials:[3,2,1,""],mocombos:[3,2,1,""],model:[3,2,1,""],nodes:[3,2,1,""],nonuniform_temperature:[3,2,1,""],num_slavenodes:[3,2,1,""],oblique:[3,2,1,""],physics:[3,2,1,""],prop_elem:[3,2,1,""],summary:[3,3,1,""],trans_element:[3,2,1,""]}},objnames:{"0":["py","function","Python function"],"1":["py","class","Python class"],"2":["py","attribute","Python attribute"],"3":["py","method","Python method"]},objtypes:{"0":"py:function","1":"py:class","2":"py:attribute","3":"py:method"},terms:{"2e12":3,"2k12":3,"class":0,"default":3,"float":[1,3],"function":0,"import":[1,2,3],"int":3,"return":1,"true":[1,2],The:1,after:1,all:1,analysi:3,angl:3,append:1,arrai:1,beam:3,bernoulli:3,block:[1,3],bool:1,brief:3,c11:3,c12:3,c13:3,c21:3,c22:3,c23:3,c31:3,c32:3,c33:3,calcctmkeypoint:[],calcul:[],charact:1,cid:3,classic:3,combin:3,conduct:3,configur:3,connect:3,constitut:[],content:0,convert:1,coordin:3,cross:[],curvatur:3,data:2,defualt:3,degen_el:3,dehomogen:3,desir:1,dimens:3,dimensiona:3,distribut:3,e11:3,e12:3,e13:3,e22:3,e23:3,e33:3,each:1,effect:3,eid:3,elast:3,elem_ori:3,elem_prop:3,element:3,euler:3,exampl:[1,2],failur:3,file:[1,2,3],find:3,findcombobymaterialorient:3,findmaterialbynam:3,finit:3,flag:3,flatten:[],fmt:[1,2],fn_gmsh_msh:3,fn_vabs_in:2,fobj:[1,2],format:1,from:2,g12:3,g13:3,g23:3,gene:0,gener:3,genom:[],global:3,global_displac:3,global_load:3,global_loads_dist:3,global_loads_typ:3,global_rot:3,gmsh:3,going:1,height:[],homogen:[2,3],includ:3,index:0,initi:3,initial_curvatur:3,initial_twist:3,input:2,integ:1,iovab:2,k11:3,k12:3,k13:3,k22:3,kei:[],kirchhoff:3,length:[],lenticular:[],level:3,line:1,list:1,load:3,local:3,love:3,m11:3,m12:3,m22:3,macroscop:3,materi:0,materialsect:3,matrix:1,mesh:3,microscop:[],mid:3,middl:[],mindlin:3,mocombo:3,model:3,modul:0,msg:3,msgpi:[1,2,3],msm:0,msmio:[],n11:3,n12:3,n13:3,n22:3,n23:3,name:[2,3],newlin:1,nid1:3,nid2:3,nid:3,nodal:3,node:3,none:3,nonuniform_temperatur:3,num_slavenod:3,number:[1,3],numpi:1,object:[1,3],obliqu:3,onli:3,option:3,orient:3,output:2,page:0,paramet:[1,2,3],physic:3,piezoelectr:3,piezoelectromagnet:3,piezomagnet:3,plate:3,point:[],print:3,prop_elem:3,properti:3,radian:[],radiu:[],read:0,readvabsin:2,readvabsouthomo:2,recov:3,refin:3,reissner:3,repres:1,result:2,s11:3,s12:3,s13:3,s22:3,s23:3,s33:3,scrnout:2,search:0,section:0,sff:2,sfi:2,sgdim:3,shell:3,side:[],slave:3,smdim:3,solid:3,store:3,str:[2,3],strain:3,stress:3,string:1,structur:0,structuregen:3,subtend:[],summari:3,swiftcomp:3,temperatur:3,tempscript:[],text:1,textlist:1,texttomatrix:1,theori:3,thermoelast:3,thermopiezoelectr:3,thermopiezoelectromagnet:3,thermopiezomagnet:3,timoshenko:3,trans_el:3,transform:3,trapez:3,twist:3,type:[1,3],uniform:3,util:0,vab:[0,3],vlasov:3,web:[],what:[],writ:1,write:[0,1],writeformatfloat:1,writeformatfloatsmatrix:1,writeformatinteg:1,writeformatintegersmatrix:1,writevabsel:2,writevabselementorient:2,writevabsin:2,writevabsmacrodata:2,writevabsmateri:2,writevabsmocombo:2,writevabsnod:2,written:1,zero:3},titles:["Welcome to Some scripts\u2019s documentation!","I/O Utility Functions","SG I/O Module for VABS","Class Module for MSM Structure Gene"],titleterms:{"class":3,"function":[1,2],beam:[],code:[],cross:[],document:0,gene:3,genom:[],indic:0,materi:3,modul:[2,3],msm:3,other:[],read:2,script:0,section:3,some:0,structur:3,tabl:0,util:1,vab:2,welcom:0,write:2}})
\ No newline at end of file
+Search.setIndex({docnames:["analysis","index","ioutils","iovabs","presg","sg"],envversion:{"sphinx.domains.c":1,"sphinx.domains.changeset":1,"sphinx.domains.cpp":1,"sphinx.domains.javascript":1,"sphinx.domains.math":2,"sphinx.domains.python":1,"sphinx.domains.rst":1,"sphinx.domains.std":1,sphinx:54},filenames:["analysis.rst","index.rst","ioutils.rst","iovabs.rst","presg.rst","sg.rst"],objects:{"msgpi.analysis":{run:[0,0,1,""],solve:[0,0,1,""]},"msgpi.io.iovabs":{readVABSIn:[3,0,1,""],readVABSOutHomo:[3,0,1,""],writeVABSElementOrientations:[3,0,1,""],writeVABSElements:[3,0,1,""],writeVABSIn:[3,0,1,""],writeVABSMOCombos:[3,0,1,""],writeVABSMacroData:[3,0,1,""],writeVABSMaterials:[3,0,1,""],writeVABSNodes:[3,0,1,""]},"msgpi.io.utils":{textToMatrix:[2,0,1,""],writeFormatFloats:[2,0,1,""],writeFormatFloatsMatrix:[2,0,1,""],writeFormatIntegers:[2,0,1,""],writeFormatIntegersMatrix:[2,0,1,""]},"msgpi.presg":{preSG1D:[4,0,1,""],preSG:[4,0,1,""],readMaterialFromXMLElement:[4,0,1,""]},"msgpi.sg":{MaterialSection:[5,1,1,""],StructureGene:[5,1,1,""]},"msgpi.sg.MaterialSection":{compliance:[5,2,1,""],compliance_refined:[5,2,1,""],constants:[5,2,1,""],density:[5,2,1,""],eff_props:[5,2,1,""],failure_criterion:[5,2,1,""],mass_center:[5,2,1,""],mass_mc:[5,2,1,""],mass_origin:[5,2,1,""],name:[5,2,1,""],shear_center:[5,2,1,""],smdim:[5,2,1,""],stiffness:[5,2,1,""],stiffness_refined:[5,2,1,""],strength:[5,2,1,""],type:[5,2,1,""]},"msgpi.sg.StructureGene":{analysis:[5,2,1,""],degen_element:[5,2,1,""],elem_orient:[5,2,1,""],elem_prop:[5,2,1,""],elementids1d:[5,2,1,""],elementids2d:[5,2,1,""],elementids3d:[5,2,1,""],elementids:[5,2,1,""],elements:[5,2,1,""],findComboByMaterialOrientation:[5,3,1,""],findMaterialByName:[5,3,1,""],fn_gmsh_msh:[5,2,1,""],global_displacements:[5,2,1,""],global_loads:[5,2,1,""],global_loads_dist:[5,2,1,""],global_loads_type:[5,2,1,""],global_rotations:[5,2,1,""],initial_curvature:[5,2,1,""],initial_twist:[5,2,1,""],materials:[5,2,1,""],mocombos:[5,2,1,""],model:[5,2,1,""],name:[5,2,1,""],nodes:[5,2,1,""],nonuniform_temperature:[5,2,1,""],num_slavenodes:[5,2,1,""],oblique:[5,2,1,""],omega:[5,2,1,""],physics:[5,2,1,""],prop_elem:[5,2,1,""],sgdim:[5,2,1,""],smdim:[5,2,1,""],summary:[5,3,1,""],trans_element:[5,2,1,""]}},objnames:{"0":["py","function","Python function"],"1":["py","class","Python class"],"2":["py","attribute","Python attribute"],"3":["py","method","Python method"]},objtypes:{"0":"py:function","1":"py:class","2":"py:attribute","3":"py:method"},terms:{"2e12":5,"2k12":5,"class":1,"default":5,"float":[2,5],"function":1,"import":[0,2,3,4,5],"int":[0,2,3,4,5],"return":[2,3,4,5],"true":[0,2,3,4],The:[2,4],after:[2,4],all:2,analysi:[1,4,5],angl:5,anisotrop:5,append:2,arrai:2,beam:5,bernoulli:5,block:2,bool:[0,2,3,4],brief:5,c11:5,c12:5,c13:5,c21:5,c22:5,c23:5,c31:5,c32:5,c33:5,calcctmkeypoint:[],calcul:[],carri:[0,4],center:5,charact:2,cid:5,classic:5,code:0,combin:5,command:0,complianc:5,compliance_refin:5,conduct:5,configur:5,connect:5,constant:5,constitut:[],content:1,continuum:5,convert:2,coordin:5,criterion:5,cross:[],curvatur:5,data:[3,4],defualt:5,degen_el:5,dehomogen:[0,4,5],densiti:5,deprec:5,design:[0,4],desir:2,dict:5,dimens:[0,4,5],dimensiona:[],displac:5,distribut:5,e11:5,e12:5,e13:5,e22:5,e23:5,e33:5,each:[2,5],eff_prop:5,effect:5,eid:5,elast:5,elem_ori:5,elem_prop:5,element:[4,5],elementid:5,elementids1d:5,elementids2d:5,elementids3d:5,elementtre:4,engin:5,envelop:[0,4],etre:4,euler:5,exampl:[2,3],excect:0,failur:[0,4,5],failure_criterion:5,fals:4,file:[0,2,3,4,5],find:5,findcombobymaterialorient:5,findmaterialbynam:5,finit:5,flag:5,flatten:[],fmt:[2,3],fn_gmsh_msh:5,fn_vabs_in:3,fobj:[2,3],format:[0,2,3,4],found:5,from:[3,4],g12:5,g13:5,g23:5,gene:[1,3,4],gener:[0,4,5],genom:[],global:5,global_displac:5,global_load:5,global_loads_dist:5,global_loads_typ:5,global_rot:5,gmsh:5,going:2,goint:2,height:[],homogen:[0,3,4,5],ids:5,includ:5,index:1,indic:[0,4],initi:[0,4,5],initial_curvatur:5,initial_twist:5,input:[0,3,4],input_nam:0,integ:2,iovab:3,isotrop:5,isotropi:5,k11:5,k12:5,k13:5,k22:5,kei:5,kirchhoff:5,length:[],lenticular:[],level:5,line:2,list:[2,5],load:5,local:[0,4,5],love:5,m11:5,m12:5,m22:5,macroscop:[0,5],manual:5,mass:5,mass_cent:5,mass_mc:5,mass_origin:5,materi:[1,4],materialsect:5,matrix:[2,5],mesh:5,messag:[0,3,4],microscop:[],mid:5,middl:[],mindlin:5,mocombo:5,model:[0,4,5],modul:1,msg:5,msgpi:[0,2,3,4,5],msm:1,msmio:[],n11:5,n12:5,n13:5,n22:5,n23:5,name:[0,3,4,5],newlin:2,nid1:5,nid2:5,nid:5,nodal:5,node:5,none:5,nonuniform_temperatur:5,nu12:5,nu13:5,nu23:5,num_slavenod:5,number:[2,5],numpi:2,object:[2,5],obliqu:5,omega:5,onli:5,option:[],orient:5,origin:5,orthotrop:5,out:[0,4],output:[2,3],page:1,paramet:[0,2,3,4,5],physic:5,piezoelectr:5,piezoelectromagnet:5,piezomagnet:5,plate:5,point:[],preprocessor:4,presg1d:4,presg:1,print:[0,3,4,5],prop_elem:5,properti:5,radian:[],radiu:[],ratio:[0,4],read:[1,4],readmaterialfromxmlel:4,readvabsin:3,readvabsouthomo:3,recov:[0,4,5],refin:5,reissner:5,repres:2,result:3,root:4,rotat:5,run:0,s11:5,s12:5,s13:5,s22:5,s23:5,s33:5,screen:[3,4],scrnout:[0,3,4],search:1,section:1,see:5,sff:3,sfi:3,sg_xml:[0,4],sgdim:5,shear:5,shear_cent:5,shell:5,side:[],slave:5,smdim:[0,4,5],solid:[],solv:0,solver:[0,4],stiff:5,stiffness_refin:5,store:5,str:[0,2,3,4,5],strain:5,strength:[0,4,5],stress:5,string:0,structur:[0,1,3,4],structuregen:[3,4,5],subtend:[],summari:5,swiftcomp:[0,4,5],temperatur:5,tempscript:[],text:2,textlist:2,texttomatrix:2,theori:5,thermoelast:5,thermopiezoelectr:5,thermopiezoelectromagnet:5,thermopiezomagnet:5,timoshenko:5,trans_el:5,transform:5,trapez:5,twist:5,type:[2,3,4,5],uniform:5,util:1,vab:[0,1,4,5],vlasov:5,web:[],what:[],whether:[3,4],writ:2,write:[1,2,4],write_input:4,writeformatfloat:2,writeformatfloatsmatrix:2,writeformatinteg:2,writeformatintegersmatrix:2,writevabsel:3,writevabselementorient:3,writevabsin:3,writevabsmacrodata:3,writevabsmateri:3,writevabsmocombo:3,writevabsnod:3,written:[2,3],xem:4,xml:[0,4],xr_sg:4,zero:5},titles:["analysis Module","Welcome to Some scripts\u2019s documentation!","I/O Utility Functions","SG I/O Module for VABS","presg Module","Class Module for MSM Structure Gene"],titleterms:{"class":5,"function":[2,3],analysi:0,beam:[],code:[],cross:[],document:1,gene:5,genom:[],indic:1,materi:5,modul:[0,3,4,5],msm:5,other:[],presg:4,read:3,script:1,section:5,some:1,structur:5,tabl:1,util:2,vab:3,welcom:1,write:3}})
\ No newline at end of file
diff --git a/doc/build/html/sg.html b/doc/build/html/sg.html
index 48e1277..403fb45 100644
--- a/doc/build/html/sg.html
+++ b/doc/build/html/sg.html
@@ -169,12 +169,240 @@ Material Section
-| Parameters: | smdim (int, optional) – Dimension of material/structure model. Defualt to 3. |
+
|---|
| Parameters: | smdim (int) – Dimension of material/structure model.
+Beam (1), plate/shell (2), or 3D continuum (3).
+Defualt to 3. |
+
+
+ |
+
+-
+
compliance = None
+Compliance matrix.
+
+
+
+
+| Type: | list(list(float)) |
+
+
+
+
+
+
+-
+
compliance_refined = None
+(beam/plate/shell models) Refined compliance matrix
+
+
+
+
+| Type: | list(list(float)) |
+
+
+
+
+
+
+-
+
constants = None
+Engineering constants.
+Keys: e1, e2, e3, nu12, nu13, nu23, g12, g13, g23
+
+
+
+
+-
+
density = None
+Density of the material/structure.
+
+
+-
+
eff_props = None
+(will be deprecated) Effective properties of the material/structure
+
+
+
+
+-
+
failure_criterion = None
+Failure criterion.
+
+
+
+
+-
+
mass_center = None
+Mass center.
+
+
+
+
+| Type: | list(float) |
+
+
+
+
+
+
+-
+
mass_mc = None
+Mass matrix at the mass center.
+
+
+
+
+| Type: | list(list(float)) |
+
+
+
+
+
+
+-
+
mass_origin = None
+Mass matrix at the origin.
+
+
+
+
+| Type: | list(list(float)) |
+
+
+
+
+
+
+-
+
name = None
+Name of the material/structure.
+
+
+
+
+-
+
shear_center = None
+(beam model) Shear center.
+
+
+
+
+| Type: | list(float) |
+
+
+
+
+
+
+-
+
smdim = None
+Dimension of material/structure model.
+
+
+
+
+-
+
stiffness = None
+Stiffness matrix.
+
+
+
+
+| Type: | list(list(float)) |
+
+
+
+
+
+
+-
+
stiffness_refined = None
+(beam/plate/shell models) Refined stiffness matrix
+
+
+
+
+| Type: | list(list(float)) |
+
+
+
+
+
+
+-
+
strength = None
+Strength properties.
+
+
+
+
+-
+
type = None
+(continuum model) Isotropy type.
+Isotropic (0), orthotropic (1), anisotropic (2).
+
+
+
+
+
Structure Gene
@@ -188,8 +416,9 @@ Structure Gene
-
degen_element = None
Flag of the type of elements (SC)
+
-
elem_orient = None
-{eid: [[a1, a2, a3], [b1, b2, b3], [c1, c2, c3]], …}
+Element local orientations.
+{eid: [[a1, a2, a3], [b1, b2, b3], [c1, c2, c3]], …}
+
+
+
+
+| Type: | dict(int, list(list(float))) |
+
+
+
-
elem_prop = None
-{eid: mid/cid, …}
+Material/Combination id for each element.
+{eid: mid/cid, …}
+
+
+
+
+| Type: | dict(int, int) |
+
+
+
+
+
+
+-
+
elementids = None
+Element ids
+
+
+
+
+| Type: | list(int) |
+
+
+
+
+
+
+-
+
elementids1d = None
+1D element ids
+
+
+
+
+| Type: | list(int) |
+
+
+
+
+
+
+-
+
elementids2d = None
+2D element ids
+
+
+
+
+| Type: | list(int) |
+
+
+
+
+
+
+-
+
elementids3d = None
+3D element ids
+
+
+
+
+| Type: | list(int) |
+
+
+
-
elements = None
-Elemental connectivities {eid: [nid1, nid2, …], …}, no zeros
+Elemental connectivities
+{eid: [nid1, nid2, …], …}, no zeros
+
+
+
+
+| Type: | dict(int, list(int)) |
+
+
+
@@ -238,12 +566,18 @@ Structure Gene
-| Parameters: | |
|