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


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.