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.
Passing material properties to other material properties
Posted Jan 27, 2016, 2:01 p.m. EST 2 Replies
Please login with a confirmed email address before reporting spam
Hi All,
I was wondering if anyone knew the best way to pass a material property to another material property during a simulation.
In this case, I am using the refractive index as a 'flag' for a spatially dependent function, basically if n = 1, the point in the mesh has been activated and I'd like it to be left alone. If n = 0, it's fair game.
I have a 2d component (comp1) and a material (mat1).
No matter if I just use n, or root.comp1.mat1.n I get the yellow highlighting and the 'Unknown variable' message when I hover over the property.
I've attached a snip that shows the same issue with my refraction index function.
Also, if you know of a less hacky way to implement this I'd really appreciate hearing it.
I was wondering if anyone knew the best way to pass a material property to another material property during a simulation.
In this case, I am using the refractive index as a 'flag' for a spatially dependent function, basically if n = 1, the point in the mesh has been activated and I'd like it to be left alone. If n = 0, it's fair game.
I have a 2d component (comp1) and a material (mat1).
No matter if I just use n, or root.comp1.mat1.n I get the yellow highlighting and the 'Unknown variable' message when I hover over the property.
I've attached a snip that shows the same issue with my refraction index function.
Also, if you know of a less hacky way to implement this I'd really appreciate hearing it.
Attachments:
2 Replies Last Post Jan 27, 2016, 3:35 p.m. EST