Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

How to access a variable value of a domain, not a point at a particular time in COMSOL during simulation

Please login with a confirmed email address before reporting spam

I have built a comsol model to simulate the thermal expansion, but when I want to introduce the external stress under the Linear Elastic Material, and it works well with a self-defined stress. However, I need the stress of a domain (domain 3) at certain time during simulation as the external stress (here in the model is stress1), I do not know how to do it.

Let me make it clear: For example, I need my model to get the value of solid.sz (Stress tensor, z component) of the domain 3, which is calculated by Surface Average of the domain, not a point, in Derived Values, at time t=999s, 1999s.... and define an external stress as a function of solid.sz(t=999s/1999s) and then use this function as the external stress for simulation. I tried the stress1=solid.sz(999)-solid.sz(999)*0.9 from 1000s to 2000s and it did not work.

Can you guys help me with this?, I would appreciate it if an example of such an external stress function of solid.sz of the domain 3(not just a point) is given at t=999s and a point value maybe also useful for me .


0 Replies Last Post 21 ott 2020, 20:51 GMT-4
COMSOL Moderator

Hello Kevin Wei

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.