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.
Using the "spatial at" function to extract a value at a particular point
Posted 2015年2月12日 GMT-5 19:10 Parameters, Variables, & Functions Version 5.0 3 Replies
Please login with a confirmed email address before reporting spam
I need to write a COMSOL expression to extract a result value at particular spatial coordinates from one study, so that the result can be used as input to another study.
I am trying to implement coupling between physics domains where the coupling is only understood empirically. The empirical model predicts the boundary conditions of physics B based on evaluating a particular result component (in this case a strain component) of physics A at a particular set of coordinates.
It looks like I should be able to use the "spatial at" function, but the documentation is a bit sparse.
The only example I can find is from page 227 of the COMSOL 5.0 reference guide, and it is largely unexplained:
root.comp1.at1(0,y,dom)
the digit after the 'at' is the dimensionality of the domain being evaluated over. In my case I am looking at a point, so that should be zero, correct? I am operating in 3-space so it should be something like
... scope.at0(xcoord,ycoord,zcoord, expr)
I am at a loss for understanding exactly how you define the scope? What exactly is root? Is it an alias for the root of the ModelBuilder tree?
I am trying to implement coupling between physics domains where the coupling is only understood empirically. The empirical model predicts the boundary conditions of physics B based on evaluating a particular result component (in this case a strain component) of physics A at a particular set of coordinates.
It looks like I should be able to use the "spatial at" function, but the documentation is a bit sparse.
The only example I can find is from page 227 of the COMSOL 5.0 reference guide, and it is largely unexplained:
root.comp1.at1(0,y,dom)
the digit after the 'at' is the dimensionality of the domain being evaluated over. In my case I am looking at a point, so that should be zero, correct? I am operating in 3-space so it should be something like
... scope.at0(xcoord,ycoord,zcoord, expr)
I am at a loss for understanding exactly how you define the scope? What exactly is root? Is it an alias for the root of the ModelBuilder tree?
3 Replies Last Post 2015年2月13日 GMT-5 10:19