
278 4 Mechanistic Models II: PDEs
4.9.1.2 Constructing the Geometrical Primitives
In Problem 2, the geometry involves two main ingredients: the cube [0, 1]
3
and a
sphere with radius 0.1 in the center of the box. The usual procedure now is to con-
struct each of these geometrical primitives one after the other, and then to put them
together as required. So let us begin with the construction of the cube, which can be
done using the menu option
New Entity/Primitives/Box.(Alternatively, you
could use the appropriate symbol on Salome-Meca’s toolbars, but this is omitted here
and in the following for the sake of simplicity.) Figure 4.9b shows the box construc-
tion window that opens up when you click on
New Entity/Primitives/Box.In
this window, the cube data are entered in a self-explanatory way. After confirming
the box construction window, the cube receives a name (
Box_1 in this case), which
is then used to display and access that geometrical primitive in the object browser
window as it is shown in Figure 4.10a. In the right OCC viewer subwindow of
Figure 4.10a, you can see a 3D picture of
Box_1. Note that if you use Salome-Meca
with its standard settings, this 3D picture will look different, that is, you will have
another background color, wireframe graphics, and so on. All this can be changed
via the menu
File/Preferences or by using the context menu in the OCC viewer
(right-click of your mouse).
To construct the sphere, we can start similar to above using the menu option
New Entity/Primitives/Sphere.Thisactivatesthesphere construction window
shown in Figure 4.11a. In this window, you cannot enter the sphere center in terms
of coordinates. Rather, you have to enter the center of the sphere by reference to an
existing point object in the object browser window, which is a general principle used
in Salome-Meca. So, the right procedure is to begin with the definition of the sphere
center using
New Entity/Basic/Point, which opens up the point construction
window shown in Figure 4.10b. There you can enter the point coordinates and supply
a name for that point. Calling that point
SphereCenter, it will appear under that
name in the object browser window as shown in Figure 4.11b. Now you can open
thesphereconstructionwindowusing
New Entity/Primitives/Sphere and
define the sphere center by a mouse click on
SphereCenter in the object browser
(a) (b)
Fig. 4.10 (a) Salome-Meca showing Box_1. (b) Point construction window.