Use previous time step value for user-defined variable calculation

Please login with a confirmed email address before reporting spam

Hello everyone, I'm currently having some difficulties with an apparently simple task:

I have two user defined variables, A and B, one dependent on the other (circular dependency). I believe the best way to solve this is by calculating A using the value of B from the previous time step: A = prev(B,1). However, it is still flagging up a circular dependency issue. Is there any better way to do this? I am including 'previous solution' in the solver configuration.

Thanks, Javier


0 Replies Last Post 07.06.2024, 08:01 GMT-4
COMSOL Moderator

Hello Javier

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.

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.