Plot one variable without reevaluation in different plots

Please login with a confirmed email address before reporting spam

I calculate average values using several non local couplings. I use these values in different plots in different summations. Each of these plots takes quite a while to create because all of the averages are reevaluated, even if it is the same result data set and they don't change.

Can I somehow evaluate the averages once and then reuse them in the different plots to save computation time? I have tried to use derived values, but can not access the resulting table to do the necessary summations...


1 Reply Last Post 28 nov. 2024, 04:13 UTC−5
Edgar J. Kaiser Certified Consultant

Please login with a confirmed email address before reporting spam

Posted: 4 hours ago 28 nov. 2024, 04:13 UTC−5

Hi Finn,

yes, post processing with nonlocal couplings can be pretty time consuming. The ordinary variables are not part of the solution and thus need to be calculated again and again whenever they are called. A method that worked for me in the past is to write the result from the nonlocal coupling into a global state variable. State variables ARE part of the solution and no recalculation is needed when they get called in the post processing. The state variables do not carry a unit, so you must take care of correct units by yourself.

Cheers Edgar

-------------------
Edgar J. Kaiser
emPhys Physical Technology
www.emphys.com
Hi Finn, yes, post processing with nonlocal couplings can be pretty time consuming. The ordinary variables are not part of the solution and thus need to be calculated again and again whenever they are called. A method that worked for me in the past is to write the result from the nonlocal coupling into a global state variable. State variables ARE part of the solution and no recalculation is needed when they get called in the post processing. The state variables do not carry a unit, so you must take care of correct units by yourself. Cheers Edgar

Reply

Please read the discussion forum rules before posting.

Please log in to post a reply.

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.