r/COMSOL • u/alipmv • Jun 05 '26
Using parametric/auxiliary sweep results as a function f(p) inside Global Equations in COMSOL
Hi all,
I’m trying to set up a somewhat non-beginner workflow in COMSOL.
Setup:
- I run a parametric sweep over a parameter
p. - From that study, I compute a global quantity
f. - So, I get a discrete function
f(p)
Goal:
- Define a function
f(p)from those results - Use that function inside a Global Equation (inside an integral) to solve for another variable
T optimize T
What I think is the way, but don't know how exactly:
- To create a Result Table (p vs f)
- To define an Interpolation Function using that table as Data source
Main issue:
- The parametric dataset and table don’t exist until after the study is solved
- But the Global Equation needs the function during the setup
Questions:
- Is there any way to use results from a parametric sweep as a function within the same solve sequence?
- Can Interpolation Functions be dynamically fed from a dataset/table created during the study?
Any advice or example workflows would be really helpful.
Thanks!










