Quantcast
Channel: COMSOL Forum: Most Active Discussions
Viewing all articles
Browse latest Browse all 5675

3D plotting normal displacement on surfaces

$
0
0
When doing a 3-D plot, I want to illustrate how a c-library function I wrote, designed to generate rough surfaces via the Deformed Geometry (dg) module. I want to plot contours of the normal component of the displacement.

The displacement, defined over volumes, is : dg.dxx, dg.dyy, dg.dzz
The normal unit vector, defined (of course) over surfaces, is: dg.nXg, dg.nYg, dg.nZg

What's wanted is the dot product... but this requires sampling dg.dxx, etc, on the surface, where at present it is undefined.

Any hints?

Here's a plot of my surface, showing only dg.dxx, which is what I want only on faces normal to x-hat:
i.imgur.com/7EAVI4Z.png



Viewing all articles
Browse latest Browse all 5675

Trending Articles