Adding a Mesh Grid and Colour to Structural Cylinder

조회 수: 1 (최근 30일)
Robert Staruch
Robert Staruch 2018년 12월 17일
편집: Cris LaPierre 2018년 12월 17일
Hello
I am trying to create 3 cylinders inside each other with different mechanical properties for each cyliner.
I would ideally like to have a cuboidal mesh grid placed over the whole thing so that each cyclinder is subdivided into cubes.
I'd also like the colour of the different cylinders to be different.
How would I need to edit this code to do this:
structuralModel = createpde('structural','static-solid');
gm = multicylinder([0.01,0.04,0.05],0.05);
surface(x,y,z, 'FaceColor','texturemap',...
'EdgeColor','none','Cdata', rand(10))
structuralModel.Geometry = gm;
pdegplot(structuralModel,'CellLabels','on','FaceAlpha',0.4)
structuralProperties(structuralModel,'Cell',1,'YoungsModulus',17E9, ...
'PoissonsRatio',0.3)
structuralProperties(structuralModel,'Cell',2,'YoungsModulus',0.0045, ...
'PoissonsRatio',0.3)
structuralProperties(structuralModel,'Cell',3,'YoungsModulus',0.0045, ...
'PoissonsRatio',0.47)
Thank you in advance!

답변 (0개)

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by