Quantcast
Channel: Latest Discussions - COMSOL Forums
Viewing all articles
Browse latest Browse all 5773

COMSOL if statement

$
0
0

I am trying to plot an arrow surface plot where the resulting arrows depend on where they are located in the geometry.

if (distance from xo,yo to x,y is less than r)/squareroot(absolute(x-xo)^2 + absolute(y-yo)^2) < r

then (the x component of the arrow is equal to dh/dx * -K2)

else (the x component of the arrow is equal to dh/dx * -K1)

(The dependent variable in my PDE is h)

How do I formulate this in COMSOL?

Another way I thought of solving this issue was defining some data set within a circle. But I also can't figure out how to do this?


Viewing all articles
Browse latest Browse all 5773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>