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.
Operators not Allowed in User Defined Functions
Posted 2023年10月9日 GMT-4 16:14 General, Equation-Based Modeling Version 5.6 2 Replies
Please login with a confirmed email address before reporting spam
I am trying to solve a multidimensional time-dependent problem in Comsol using the Coefficient Form PDE framework. My question is related to defining the initial condition, however. I would like to set: When I try to do this using the sum() operator as described in this article, I get the error "Operators not allowed in user defined functions". My question is how else can I achieve this? Of course I know I could write this function out term-by-term but I would ideally like to take N to be quite large which makes that infeasible (or at least very tedious). Is there anyway around this?