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 Oct 9, 2023, 4:14 p.m. EDT 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?