Skip to content

Cylinder parameters #617

Answered by Kbourbat25
Kbourbat25 asked this question in Q&A
Jan 14, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi @jgostick , thank you for this reply, you found in what follow the difinition of cylinder under comsol :
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% The difinition of cylinder in Comsol
% name cyl1 , type Cylinder
model.component('comp1').geom('geom1').create('cyl1', 'Cylinder');
% radius r=0.01
model.component('comp1').geom('geom1').feature('cyl1').set('r', 0.01);
% position of the center of the base of cylinder
model.component('comp1').geom('geom1').feature('cyl1').set('pos', [0 0 0]);
% height of the cylinder h=2
model.component('comp1').geom('geom1').feature('cyl1').set('h', 2);
% coordinate system = spherical
model.component('comp1').geom('geom1').feature('cyl1').…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Kbourbat25
Comment options

Answer selected by Kbourbat25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants