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.

Combining Derived Values

Hendrik Mechanical Engineering

Please login with a confirmed email address before reporting spam

I would like to use the result of a certain Derived Value in the calculation of another Derived value.

For my problem, I need to compute two surface integrations and figure out their ratio. I have done this by computing two derived values, and exporting the values to MATLAB.

Is there a way to directly do this in COMSOL? So finding a global evaluation as a function of other "derived values"?


3 Replies Last Post 2023年3月23日 GMT-4 06:32
Gunnar Andersson COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 2 years ago 2023年3月22日 GMT-4 08:39
Updated: 2 years ago 2023年3月22日 GMT-4 08:39

You can do this using evaluation groups:

  • Create an evaluation group that contains two surface integrations.

  • The Transformation section in the evaluation group contains a Transformation type drop-down list. Choose General in the list. Set Expression to int1/int2 (the tags of the integration features).

  • Evaluate: The result is the element-wise ratio between the integrals in the two surfaces integrations.

You can do this using evaluation groups: * Create an evaluation group that contains two surface integrations. * The **Transformation** section in the evaluation group contains a **Transformation type** drop-down list. Choose **General** in the list. Set **Expression** to int1/int2 (the tags of the integration features). * Evaluate: The result is the element-wise ratio between the integrals in the two surfaces integrations.

Please login with a confirmed email address before reporting spam

Posted: 2 years ago 2023年3月22日 GMT-4 11:56

You can do this using evaluation groups:

  • Create an evaluation group that contains two surface integrations.

  • The Transformation section in the evaluation group contains a Transformation type drop-down list. Choose General in the list. Set Expression to int1/int2 (the tags of the integration features).

  • Evaluate: The result is the element-wise ratio between the integrals in the two surfaces integrations.

Interesting, I did not know about this. Learn something every day.

Another (more obscure) way to do this is to define two integration coupling variables, and do a global evaluation of the ratio.

>You can do this using evaluation groups: > >* Create an evaluation group that contains two surface integrations. > >* The **Transformation** section in the evaluation group contains a **Transformation type** drop-down list. Choose **General** in the list. Set **Expression** to int1/int2 (the tags of the integration features). > >* Evaluate: The result is the element-wise ratio between the integrals in the two surfaces integrations. Interesting, I did not know about this. Learn something every day. Another (more obscure) way to do this is to define two integration coupling variables, and do a global evaluation of the ratio.

Hendrik Mechanical Engineering

Please login with a confirmed email address before reporting spam

Posted: 2 years ago 2023年3月23日 GMT-4 06:32

You can do this using evaluation groups:

  • Create an evaluation group that contains two surface integrations.

  • The Transformation section in the evaluation group contains a Transformation type drop-down list. Choose General in the list. Set Expression to int1/int2 (the tags of the integration features).

  • Evaluate: The result is the element-wise ratio between the integrals in the two surfaces integrations.

Hello Gunnar,

Thanks for your helpful reply! It works like a charm.

>You can do this using evaluation groups: > >* Create an evaluation group that contains two surface integrations. > >* The **Transformation** section in the evaluation group contains a **Transformation type** drop-down list. Choose **General** in the list. Set **Expression** to int1/int2 (the tags of the integration features). > >* Evaluate: The result is the element-wise ratio between the integrals in the two surfaces integrations. Hello Gunnar, Thanks for your helpful reply! It works like a charm.

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.