×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Are you an
Engineering professional?
Join Eng-Tips Forums!
• Talk With Other Members
• Be Notified Of Responses
• Keyword Search
Favorite Forums
• Automated Signatures
• Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

#### Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

# Plot Result In A Cylindrical Coordinate in COMSOL

## Plot Result In A Cylindrical Coordinate in COMSOL

(OP)
Hello, I want to visualize the stress tensor in the cylindrical coordinate. Currently, I have the output from a 3D solid mechanical model. The expression I choose is solid.sx, solid.sy, solid.sz and etc. However, these are all plotted in the global coordinate. I want to visualize the result in the cylindrical coordinate.

I also tried to define a cylindrical system and selected it in the linear elastic material (solid mechanics). And then visualize the result in solid.slxx, solid.slyy and etc. But the thing is: the stiffness matrix I input for anisotropic material is based on the global coordinate. So if I selected the cylindrical system in the linear elastic material (solid mechanics), the calculated result give me a wrong output.

SO I want to know whether there are some other ways to visualize the stress in the cylindrical coordinate.

Thanks.

### RE: Plot Result In A Cylindrical Coordinate in COMSOL

Try this:
- solve the simulation without local coordinate system
- define cylindrical CSYS and specify it in the Linear Elastic Material node
- instead of solving use "Update Solution"

### RE: Plot Result In A Cylindrical Coordinate in COMSOL

(OP)
Hello FEA way,

It is also not correct. When I update solution, the original solid.sz solution changes. However, this stress tensor shouldn't change since it's correspond to the global coordinate stress tensor. That being said, I still think that the comsol treated my stiffness matrix I input is based on the cylindrical csys after I update solution.
I defined the csys. Attached.
Do you have any ideas?

Thanks,
Wenjing

### RE: Plot Result In A Cylindrical Coordinate in COMSOL

This should work:
- set Linear Elastic Material --> Coordinate system: Global coordinate system
- run the analysis
- in the Expression field of the stress plot type: solid.sz*sys2.T33

Second term in this equation is coordinate transformation to local coordinate system named sys2 for the 3rd component. You can find it under Model --> Component 1 --> Definitions --> Cylindrical System 2 --> Coordinate transform to system (sys2).

### RE: Plot Result In A Cylindrical Coordinate in COMSOL

(OP)
Thanks FEA way, it works for z component!
I tried to use solid.sx*sys2.T11
But the result I got is incorrect.
Do you have any ideas where I did wrong?
Thanks a lot.

### RE: Plot Result In A Cylindrical Coordinate in COMSOL

It seems that for radial and tangential components this is more tricky. These formulas should work:

(x^2*solid.sx+2*x*y*solid.sxy+y^2*solid.sy)/(x^2+y^2)

- for tangential component:

(y^2*solid.sx-2*x*y*solid.sxy+x^2*solid.sy)/(x^2+y^2)

Axial component will be simply solid.sz

### RE: Plot Result In A Cylindrical Coordinate in COMSOL

(OP)
Hello FEA way,

Thanks a lot! It works~

Wenjing

#### Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

#### Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Close Box

# Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

• Talk To Other Members
• Notification Of Responses To Questions
• Favorite Forums One Click Access
• Keyword Search Of All Posts, And More...

Register now while it's still free!