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.
Conditional nodes
Posted 29 déc. 2021, 05:27 UTC−5 General Version 6.0 1 Reply
Please login with a confirmed email address before reporting spam
Hello, Under Geometry it is possible to execute nodes conditionally, depending on the value of a parameter for example. Is it possible elsewhere somehow? For example, I have a problem where I calculate the points of an interpolated function by an external code and write it to different files, for different configurations of the model. Within the comsol model, these different configurations are selected by a parameter. I would like to import the interpolated functions from these different files corresponding to the different configurations, based on the value of this parameter. Now I would do it importing all the interpolated data into different functions f1, f2, f3, etc, then sum them as f(x) = (param==1)f1(x)+param(==2)f2(x)+... but there may be a more elegant solution
Conditional nodes could also be useful elsewhere (within physics, etc) Thank you Daniel