Search
Search this site
53 results found with an empty search
- Modifiers: Velocity | website
Overview For many astronomical objects spatially resolved observations of the velocity structure are a key constraint to find their 3-D structure. Therefore it is essential to have a way to model the velocity structure of an objects in Shape. This is provided in the form of a Velocity Modifier that can be assigned to any geometric object . Since velocity is a vector , the velocity modifier is probably the most complex modifier and, in some aspects, conceptually different from scalar modifiers such as the density modifier. The main control panel of the velocity modifier is similar to other modifiers exposing the f0 scaling factor that is also incorporated in the Magnitude graph. The main difference to other modifiers lies in this Magnitude graph , which we are going to discuss in some detail. Similar to other modifiers there is the set of graphs on the right and the options on the left. We will therefore focus on the drop-down lists on the left side for the General options, the types of Vector Field and the Dependencies. General: The general options are again similar to other modifiers where you can choose as modes Custom and Analytic, as well as the type of coordinate system (Cartesian, Spherical, Cylindrical). Here you can also set the f0 scalar factor that multiplies the final vector. f0 is also exposed at the higher level main panel for the velocity modifier. Vector Field: This is one of the two key differences compared to other, scaler modifiers. This drop-down list allows you to choose from a variety of predetermined vector fields , including Radial, Disk Rotation, Elliptical, Collimated, Random, Custom, and Path . The practical importance of these options is that all except the Custom field preset the direction of the velocity vectors in space. For these one only needs to set the magnitude as a function of position using the graphs on the right. For these fields the graphs on the right work the same as in other modifiers yielding the scalar magnitude of the velocity vector . Except for the case of the Custom field the coordinate tabs do not represent the velocity components! The Custom field is described below. There is however an important difference. By default it is the same function, separable in their coordinate directions, as for other modifiers. In the velocity modifier it is, however, possible to choose on which spatial variable (u,v,w) each of the vector components (vu, vv, vw) depend on. Here (u,v,w) corresponds to the coordinates in the different types of coordinate systems. In Cartesian coordinates, for instance, the vx component may be defined as a function of the y-coordinate. It is important to note, however, that the actual variable in the analytic expression always x. What changes is its meaning according to the options that have been chosen. This allows to set up quite complex velocity fields. Additional complexity can be obtained by adding several velocity modifiers in the modifier stack. Radial Type Velocity Field: The Radial Field sets all the velocity vectors to point away from the local coordinate system of the velocity modifier. lf the magnitude is negative, the vector points towards the coordinate origin. A typical use case for this vector field are expanding nebulae such as supernovae and planetary nebulas. Disk Rotation Type Velocity Field: The Disk Rotation Field sets all the velocity vectors in the direction perpendicular to the cylindrical radial and the z-direction from the local coordinate origin of the velocity modifier. This velocity field is suitable for rotating disks such as spiral galaxies or accretion disks. Collimated Type Velocity Field: The Collimated Field is an easy way to set up a jet-like outflow with an opening angle as a parameter, which by default is zero. Custom Type Velocity Field: The Custom Field is fundamentally different to the others in that each of the graph tabs on the right actually represents the corresponding vector component instead of just a factor to the magnitude. Hence, the total magnitude and direction of the vector is given by the vector addition of these components. An important tool help with the velocity field modeling is the Field modifier , which allows one to visualize the vectors in the 3-D views of the 3-D Module. Modifiers: Velocity
- Modifiers: Size | website
The Size Modifier scales the mesh. Different scaling factors can be applied along the x, y and z axes. The Size operator only changes the vertex position and does not affect the local coordinate system, i.e. the reference point for other modifiers, such as the velocity field, are not changed. Name: Provide a name for the modifier that closely describes its function. Lock: When enabled, this flag keeps all the scaling factors the same. The last change in any axis is adopted for all axes. x,y,z: The scaling factor by axis. Anchor: The anchor is the xyz position in space around which the scaling will be applied. This may shift the whole object towards or away from this position, depending on whether the value is smaller or larger than one. A change in anchor position does not affect the local coordinate system, it only moves the vertices of the mesh. Modifiers: Size
- Modifiers: Boost | website
Modifiers The Boost Modifier is basically an enhanced version of a Boolean object or modifier. The idea is to use one mesh to regionally change the properties of another. However, instead of completely cutting out or adding to a mesh, it scales the properties by some factor that may vary spatially either through a function of space or a texture. In the example below a sphere contains a complex mesh structure which has a Boost Modifier that is linked to the spherical mesh. In the first rendering below, the boosting factor was set to zero, such the sphere is hollow in the region of the boosting mesh. In the second examples, the boosting factor for the density was set to 2, enhancing the density by that factor. The Boost Modifier is applied to the mesh to is meant to change another, in this case the inner mesh. Note that more than one boosting mesh can be applied to the main mesh. Parameters: Name: If multiple Boost Modifiers are used, make sure to name them adequately for ease of identification. Enabled: When deselected, the modifier will not be applied. Boost: This is the boosting factor that is applied to the main mesh. It can be a mathematical expression and function of the main variables such as n (density), T (temperature) or P (pressure). Note that these are the properties of the boosting mesh object, i.e. they relate to the modifiers within the boosting object itself. To make the hollow structure above, this factor was set to zero (0) and 2 for the enhancement of the structure. If set to "n" as shown, the factor is taken from the Density modifier in the boosting object. This may be a function of position, including the texture. This allows for a complex manipulation of the region covered by the boosting object. Variable: From this drop-down list select the variable upon which the boosting shall act on in the main object. Note that this is different from the variables in the Boost factor. Operation: Select the operation that the Boost Modifier shall perform on the main object. You can select from Scale, Add and Replace. Applied Object: From the drop-down list select the objects on which the Boost modifier shall act on. Several objects may be chosen. Hide itself: Generally the boosting object is used only to act upon other meshes, but is not rendered itself. This may, however, not always be the case. So, if the boosting object is a rendered object in itself, disable this flag, such that the boosting mesh itself is rendered, too. Modifiers: Boost
- KSS: Graphs | website
Key Sub-S ystem: Graphs In Shape graphs are used to display functions. The functions are either analytical or set interactively by adding control points to a curve. The control points of an interactive curve can also be loaded from an external ascii file. In modifiers the graphs are usually applied to set and display spatial variation of a quantity that is passed on to some quantity as a multiplier. In the modifiers the graphs may be single coordinate functions or they may depend on all three space coordinates in different types of coordinate systems (spherical by default, Cartesian or cylindrical). Generally the result is a single number, but in the case of the velocity field, for instance, the output can be a vector. In the Physics Module graphs commonly are a function of wavelength. The functionality and appearance of the graphs varies slightly depending on the particular context. The image of the graph on the right is taken from the Squeeze Modifier, which controls the shape of a cylindrically symmetric mesh. The function display at the top shows a line of how the function f(x) changes with the independent variable (always x). In this modifier it is the position along the axis of the object. At the bottom is a list of tabs to set a variety of f unction properties . Workflow: Analytic: By default the function is set to Point , but can be changed to Analytic with the Function drop-down list. In the analytic mode, the graph is controlled by a mathematical expression, that by default is the constant function f(x) = 1. Templates: From the Templates drop-down list a few commonly used functions can be selected that are the inserted as mathematical expressions in the editor line for the function. These templates can then be edited as needed. In our example we have typed the function manually. In additional to several standard mathematical operators such as "exp" and "abs", it includes the variables "a" and "b". Variables can have alphanumerical names. Reserved variables include "n", "t" and "Pi", referring to density, temperature and the number p. Variables: The numerical value of the variables is displayed in the Variables tab . Here the value can either be written manually or be assigned from the Math Module. If the variable was defined in the Math Module, then the flag labeled "Use global variables" needs to be set. If the flag is not set, the local manually set value is used (Local variable ). Global variables are then marked by a grey background. Global variables are accessible from any function throughout Shape. Constraints: Frequently used functions such as the Gaussian vary over an infinite range. In many practical situations the function is required to smoothly reach zero or some other fixed value within a finite range. This can be achieved by setting constraints in the Constraints tab. Here the function can be made to smoothly Fade in and Fade out within the ranges set there. The value form and to which the function converges is the "Default" which can be changed by the user. In the graph the region that is covert by the Fade in is shaded in blue and the Fade out in red. Point Graph: A point graph is set up using manually placed points. These point may also be loaded from a file (Load Ascii button). To obtain a continuous function the values between the points are interpolated. There are two modes for interpolation . By default the interpolation is linear between the points. The second is a spline interpolation that is controlled manually with separate handle on each side of the points. The spline interpolation is activated by clicking on the following icon: A green color in these icons at the top of the graph indicates that they are activated. To move the points in the graph use the left-click and drag mouse functionality. To move the spline handles , use Crtl- left-click and drag . Additional interactive functions to manipulate the points individually or collectively are available by activating some of the icons on the toolbar above the graph. If you hover over a button or icon, a tool tip shows a short description of the functionality, which are very self-explanatory in this case. The hand tool is active by default and allows one to move points by left-clicking on and dragging them. The magnifying glass: zoom in and out in the graph The next icon allows you to pan left-right and up-down in the graph. The box with a pencil is for selecting multiple points by dragging a rectangle around them, while the cursor symbols with the arrows activates moving the selected points together. Selected point are deleted by clicking on the cross icon . Note that unselected individual points can be added and removed from the right-click menu (see below). The range of the graph is adjust ed to the points in them by clicking on the icon with the two curvy arrows . As mentioned above the next icon activates the spline interpolation with two handles on each point. The wrench icon opens a pop-up windows that gives access to detailed options for the appearance of the graph . These should be largely self-explanatory. Right-click menu: The right-click menu give quick access to additional functionality for graphs. In particular there are four functions for point graphs at the top of the list. Add Point add a point to the curve where the curser is currently located. Remove Point removes a point over which the cursor is hovering. Set Point opens a small pop-up window where the exact x and y values of a point can be set. Mirror Point is a very useful function when a perfectly symmetric setting is required. When clicked while you hover over a point with coordinates (x,y) a copy of the point is added to the graph at (-x,y). The second set of functions toggle on and off various functions, which are self-explanatory. The Save Ascii function will open a dialog that allows you to save the point values of the graph in a file in ascii format. The Save Image function saves an image of the graph. In the file dialog that opens, the filename has to be give a suitable file extension for the image to be correctly saved. The extension can be one of typical file formats, such as .png or .jpg, etc. Finally, the Properties functions opens a dialog where the graph´s appearance may be customized in more detail by changing colors, tick-mark spacing, coordinate grids, etc. Special variants of graphs: Some contexts in Shape have specific features in addition to the basic functionality described above. These are explained in their specific contexts, such as the graph for the velocity modifier, which has a number of special functions. There is one common feature of the extended graphs that depend on more than one variable, which we describe here. Most function graphs have as output a single number that controls a modifier or displays some property. An exception is the velocity modifier, which has a vector as output. The basic graph that has been described above depends on a single variable. Many modifiers do, however, depend on more than one spatial dimension. Those have a separate graph that describes the spatial dependence of the output on each spatial coordinate. They are accessible through tabs at the top of the graph. The active coordinate is marked in grey. Using the default Custom Mode one can select from three different types of coordinate system in the Coordinates drop-down list: Spherical (default), Cartesian and Cylindrical. The labels of the access tabs for the graphs change their labels accordingly. Note that for the spherical coordinates the label convention is that of the North America, with q being longitude and f the latitude. SEPARABILITY: an important property of the default behavior of these graph is that the resulting function F(u,v,w) is separable in their component functions: F(u,v,w) = f0 * f(u) * f(v) * f(w) where f0 is a constant parameter set by the user under the Coordinates drop-down list. Non-separable functions: a non-separable analytic function can be set up when enabling the Analytic mode from the the Mode drop-down list. This feature requires an analytic description of the function and a point-graph can not be used. As before, one chooses the type of coordinate system from the Coordinates drop-down list. Then in the function editor a formula is types as a function of the general coordinates (u,v,w) as shown in the example on the right. The coordinates have to be in terms of the letters u,v and w, no matter which type of coordinates is chosen. Their meaning changes automatically to (x,y,z), (r, q,f) or (r, q, z ) for Cartesian, spherical or cylindrical coordinates, respectively. The image on the right shows a rendering of the density that was described by the analytic function above it. It illustrates the how the wavelength of the sinusoidal pattern can be continuously changed by mixing the coordinates appropriately.
- Modifiers: Warp | website
The Warp Modifier rotates the mesh vertices as a function of distance around an axis. To actually be a warped surface, the axis of the Widget for the Warp Modifier needs to be at an angle to a reference plane such as a flat disk. Name: Set a name that allows you to identify this modifier easily. Enabled: When this flag is turned off, the Warp Modifier is switched off. Deg: If set, the the rotation as a function of distance in the Magnitude Graph is given in degrees per unit distance. When switched off, then it will be radians per unit distance. Magnitude: Opens the function graph to set how the rotation angle is as a function of distance from the local coordinate system set by the Widget. Widget: The Widget opens the Widget Dialog. It allows you to change the direction of the Warp Modifier. The turquoise arrow indicates the direction around which the rotation will be performed. In the example it was rotated around the original x-axis by 30 degrees. Modifiers: Warp
- KSS: Modifier Stack | website
Key Sub-S ystem: The Modifier Stack A model in Shape is build starting from a few basic mesh objects such as spheres, cylinders, tori or imported ones. Very few objects have such regular structure, however, and the fundamental purpose of Shape is to enable the user to reproduce any structure the universe comes up with at us as closely as possible. There these "primitives" have to be "modified". That is why the operators in Shape are called modifiers . Since there is a large variety of modifiers, the are assembled in a modifier stack (see the image on the right). This list of modifiers operates on the primitive mesh in sequence from the top to bottom. It is very important to note that for some operator combinations, such as rotations, the order in which they are applied makes a difference. When a new modifier is added from the drop-down list that opens by clicking on the plus (+) sign below the stack, it is added to the bottom of the list. They can be reordered by dragging and dropping them into the desired position. To delete one or more modifiers select them in the stack and then click on the "x" at the bottom of the stack. For good practice we recommend to order the modifiers by type as long as the order can be chosen without affecting the result. Modifier that apply to physical quantities such as density and temperature should go at the top, as shown in the example. Copy-Paste modifiers: Modifiers can be copied within the same stack or to the stack of a different object. To copy the modifier to the buffer click on the Copy icon at the bottom of the stack. Then click on the paste button right beside to paste it to the same object. To paste the modifier to a different object, select the target object and click on the paste button. When you do that, a small pop-up window opens with two option to select from. You can paste the modifier as a "new copy " or as an "instance ". The new copy of the modifier will act independently of the original. The instance of the original will work in unison with the original. This means that changes in the parameters of one instance will be automatically transferred to the other. You can have several instanced copies of the same modifier, thereby saving time by changing only one of them to affect all the others in the same way. This is an easy way to maintain the same structure for several meshes or other features of an object. Modifiers: There are basically three categories of modifiers: physical, geometry and transform . In the modifier stack these are identified by having a green, orange and white background respectively. The physical modifiers act on the local physical properties that determined the interaction of the gas with the radiation. Examples are the density, temperature, velocity or boost and points . The geometry modifiers move the vertices of the mesh to turn the primitive starter shapes into more complex structures. Examples for these are the bump, squeeze, twist and size modifiers. These modifiers do not move the origin of the local coordinate system. Contrary to the geometry modifiers, the transform modifiers precisely do move the local coordinate center . The physical and geometry modifiers then take the new local coordinate center as a reference. Links to descriptions of each modifier can be found in the Index .
- Render Mod Units | website
Render Module Properties Panel: Units Properties Panel: Units Observational astronomers and theorists often work with very different units. This can be accommodated for in Shape by choosing the units that work best with your reference images or target audience. World & Image units: Various units can be selected for the World (Coordinate System) in the 3-D environment and the Images. The appropriate unit is selected from a drop-down menu and by default is set to meters (m). Some of the units are in terms of typical linear and others are in angular sizes. Energy: The energy units refer to the intensity units of the images. In addition to the SI (International System) some of the typical astronomical units are also available. Distance: The units for distances are similar to those for the World & Images, except that the angular units are, of course, not available.
- Contact | website
Contact us Thanks! Message sent. Send Contact Form Contact Us
- Modifiers: Shell | website
The Shell Modifier converts a normal mesh into a shell with user defined thickness. The shell thickness can be set as a function of distance in the Magnitude dialog. Note that the shell can be generated outwards (positive) or inwards (negative) of the original mesh by changing the sign of the magnitude. Currently the magnitude can only be changed as a function of distance from the world coordinate center. This might change in future releases. The magnitude dialog allows you to define the thickness as an Analytic Function of distance or use a graph where you can generate an arbitrary function by manually placing points and setting the spline interpolation. The graph on the right shows the way it was done in this example. Note that only the newly generated mesh is affected by the shell modifier. In the three pictures above the mesh is shown for three different settings. The first one on the left has both parts of the shell enabled. For the second one, the Outer geo flag was disabled. Therefore only the original object mesh remains. On the right, however, the Inner geo flag was disabled. Then the new shell mesh is left. Now the rendered volume fill out the whole space within the outer mesh of what was a shell. Note that the position in the Modifier Stack is important. If a Shell Modifier is placed at the end of the stack, the result will be a shell thickness that conforms to the Magnitude graph. However, if another geometry operator, such as a Bump Modifier or a Squish Modifier is placed below the Shell Modifier, then the final thickness may strongly different from that set up in the Shell Modifier. Caution: If the original mesh is locally complex and the thickness similar or larger than the local curvature, then the newly created mesh for the shell may self-overlap. This can lead to undesirable results. Make sure the thickness of the shell is compatible with the complexity of the mesh. Sometimes applying the shell in the opposite direction by inverting the magnitude of the thickness solves or reduces this potential problem. Modifiers: Shell
- Module: Animation | website
Animation Module Overview Most parameters in Shape can be animated over time. This can be used to generate time variation of the models either for scientific modeling of time varying phenomena or for visualization purposes. A simple example application is the simulation of the lightcurve of an exoplanet or of eclipsing binary stars. An application that aims more at purely visualization could be rotating the virtual camera around an object go generate a movie that shows the structure as seen from many points of view. Since animation implies the generation of a large number of individual images that can be joined together in the Movie Module, care needs to be taken in preparation in order for the rendering process to not take an unacceptably large amount of time. The key question is which type of rendering do you need : Camera motion: If you animation will consist of camera motion only and the spatial resolution that you need is small enough to allow you to use the grid renderer, then you can save a lot of time. In this case the steps before the final ray casting to determine the image pixel values can then be precalculated and saved. Then they do not need to be repeated for every frame. Another option to get a camera animation is to use the interactive iluvia software from ilumbra.com . Using the Export Module in Shape you can quickly output your model in a format suitable for iluvia and inspect your model interactively or very quickly set up and capture animations. Varying model parameters: If parameters of the model itself need to be changed over time, then the precomputed grid changes and a full render is needed for every frame. For complex models and high resolutions, this may take a lot of time to compute, depending on your computing equipment. Once you decided which type of animation and spatial resolution you need, you can time the rendering and estimate the total time it will take to render the necessary number of frames. For each rendering, come basic stats are output in the Info Module that include the time it took to render. This information can be used to estimate the total time necessary to render out the full animation. General workflow: 1. Set up the timing and output parameters in the Parameters Panel on the right. 2. Select variables to be animated from the Parameter Tree. They appear in the Animation Parameter Stack. 3. Select each animated parameter in the Animation Parameter Stack and set up its animation graph as a function of time 4. Render the animation Animation Module UI: The Animation Module is divided into five main sections. A control bar is at the top and the parameter tree and the animation parameter stack are on the left. In the middle you find the animation graph for the animated parameters. At the bottom is the time line . Finally, the General and Output parameters are in the panels on the right. Control Bar: Animate: Starts the rendering of an animation. After each rendered image it advances one frame and renders again. Refresh: Updates the Parameter Tree after new renderable parameters have been added somewhere in Shape. This does not happen automatically, so make sure to click on this button to see any new parameters. Up & Down: In the Animation Parameter Stack move selected parameters up or down. This has no effect on the result but is helpful to keep order in the stack when a large number of parameters is animated. Remove: Removes selected parameters from the Animation Parameter Stack. Copy & Paste: Copy the animation graph from a selected animation variable in the Animation Variable Stack and paste it to another that you select after copying the previously selected graph. Parameter Tree: The parameter tree is a hierarchical list of all animatable parameters. The parameters may be from the UI, general project parameters or from particular objects. Additionally global parameters that have been defined in the Math module will also show at the bottom of the parameter tree. To select a parameter for animation, open the parent branches in which it is located. Once the parameter appears, double click on the tick box to the left of the parameter name. When the tick mark is on, the parameter appears in the Animated Parameter Stack, where the time variation of the parameter is set up (see below). Note that newly created parameters or objects do not automatically show in the parameter tree. To have them appear click on the Refresh button in the menu bar at the top of the Animation Module. Animated Parameter Stack: The Animated Parameter Stack is the list of parameters that are selected from the Parameter Tree to be changed, i.e. animated over time. The first column shows the Parent branch in the Parameter Tree, the second is the name of the parameter. The third column contains the value of the parameter at the current time of the animation time line. To select a parameter click on the row for that parameter. Automatically its animation graph will be shown. Animation Graph (not shown): In the Animation Graph you set up how the parameter selected in the Animation Parameter Stack changes over time. Note that in this graph the x axis is in units of time as defined in the Parameter Panel on the right (see below), whereas the Time Line at the bottom is in terms of the frame number. The graph is not shown here . It work the same way as other graphs in Shape. For more information on how to set up a graph see the manual page on Graphs . Parameter Panel (right side) General: Timing and frame numbers are set up in this tab. Name: The base name of for the output frames of the animation Start Frame: The frame number at which to beginn the animation. It may be necessary to start from a position different from 0 or 1 when an animation was interrupted or if several will be concatenated. # Frames: The total number of frames for the duration of the animation from the Start Time to the End Time . Start Time & End Time: in terms of time units (see below) when is the animation meant to start and end. Time Units: Select the desired time unit from the drop-down list. The default is Years. Make sure the unit in the Variable tab is the same or consistent with the needs for this model. The animated variable that is selected and displayed in the graph uses the units from the Variable tab . Occasionally these units need to be different from each other. Fields: Include the calculation of field lines, magnetic or velocity. Distribute: Recompute the distribution of particles for each frame. Render: Do a full render at each time step. Camera animation with "Autorender" on in the Render Module does not require this, since the model grid does not change and is calculated either before the animation is started or with the first frame. After that autorender is used if the Render flag in the Animation Module is off. Variable Some control parameters for the animated paramater that is currently selected in the Animated Parameters Stack . Time Units: The time units to be used for this variable. Make sure it is the same as the Time Unit in the General tab or you are certain of the animation graph in this context of a different general time unit. Enabled: Enable the animation of this variable. If for some reason you disabled this variable, then later you might wonder why it doesn´t change in an animation. It may well be that you forgot that you disabled it. So, if something in your animation doesn´t change as expected, make sure all the variables that you need change are actually enabled for animation. Stamp: The total number of frames for the duration of the animation from the Start Time to the End Time . Stamp Format: The number format for the numerical stamp. Output: Here you define the output format and what you wish to output and where on disk it is to be placed. Directory: Set the output directory for the individual animation frames. Note that the name of the files is set in the General Tab. Image Type: Specify the image type by writing the standard extension for the image. For instance, if you wish to output PNG format images, then write ".png". 3D Mesh: Output and image of the 3D Mesh. Note that it is not the mesh itself that is output, but rather an image of the view in the 3-D Module. Hydro: Output the full data from the hydrodynamics module at each time step. Note that, depending on the resolution, this might lead to a large amount of data to be output. Plots (Images): Output images of any graphs that the animation might generate in the Graph Module. You can adjust the image resolution for these outputs. Plots (Ascii): Output the ASCII values of any graphs that the animation might generate in the Graph Module. Math Variable: Output any math variables that change over time during the animation. Stereo: Output stereo images. dStereo (deg): The parallax anglee. This is the difference between the horizontal camera angles for the two stereo images.
- Modifiers: Image Displacement | website
Modifiers The Image Displacement Modifier uses an grey-scale image to move vertices as a function of the image pixel intensity. This allows one to use actual images to influence the model structure. As shown in the example mesh on the right, a potential application is in the modelling of spiral galaxies. An external drawing device can be used to design structures almost interactively with the automatic update functionality. For this example the image of a spiral galaxy was smoothed and a flipped copy of it generated. The flipped version is needed for the top-bottom symmetry of the galaxy structure. The image on the right is the rendered image. The Image Displacement Modifier (IDM) works in a similar way as the Bump Modifier with the basic difference of using an image as data source instead of a simple function. The handling of the Gizmo for placement is similar. One difference is that the Gizmo of the IDM include a preview of the image to help with the precise placement and scaling. In this example of a spiral galaxy two IDM are required, one for each side, as shown in the example modifier stack on the right. Parameters: Name: If multiple Modifiers are used, make sure to name them adequately for ease of identification. Enabled: When deselected, the modifier will not be applied. Filename: Click on the button on the right to open the file selection dialog to open the image file to be used to the IDM. The filename will be displayed in the text field. Width & Height: The full size of the image in the 3-D Module in local x & y directions. Radial: Select this option if you wish the displacement to be radial from the origin of the Local Coordinate System of the mesh. Auto Update: If you change the image texture using an external software such as Gimp or Photoshop, then you can enable the automatic loading of the image by clicking on Start. Make sure to Stop it again after you finish. Since the image is read from disk, you need to save it after every change you want to be updated in Shape. Interval (ms): The the interval between Updates of the image from disk. Magnitude: Set up the how the mesh displacement shall be as a function of the pixel brightness of the image assuming that it has an interval from x=(0-1) for greyscale values of (0-255). You can use an analytic function of x (the pixel value between 0 and 1) or a corresponding point function. Widget: Opens the Widget panel shown on the right and enables the preview of the displacement image that helps to place it correctly. To see the preview image, the Display has to be enabled and the object needs to be selected in the object tree. The not only the Widget arrows are show, but also the preview image as shown below the Widget panel on the right. Note on Rendering IDM objects: Below are a few renderings of the example galaxy object. The first one shows the rendering at an intermediate viewing of the disk. At the center the bulge is seen as a vertical uniformly lit structure. This is typical for the applications of the IDM, especially with small-scale features. These turn out to look like little vertical "sticks". There are a number of measures that one can take to remedy that depending on the feature and the application of the IDM. For the smooth structure of the galaxy, for instance, one can use the Taper Modifier to taper off the emission towards the surface of the mesh. This is shown below where the galaxy has been rendered edge-on. The upper image is without and the lower one has a Taper Modifier applied. In addition to the IDM to strengthen the spiral features in the galaxy an Image Texture Modifier was applied with the same image. Modifiers: Image Displacement
- Modifiers: Shear | website
The Shear Modifier changes the distance of the mesh vertices perpendicular to a chosen axis (default: local z-axis) along another axis. The orientation of the shear axis and direction of the shear can be changed by changing the values in the Axis boxes. Choose a value of 1.0 to select a particular axis (setting the others to 0.0). Intermediate value result in an intermediate axis. A better way to set the reference axis is using the Widget. The Magnitude dialog allows you to define the squeeze amount as an Analytic Function of position along the reference axis. You can also use a Point graph where you can generate an arbitrary function by manually placing points and setting the spline interpolation. To do this, select Point from the Function drop-down list under the graph. The example graph on the right shows the way it was done for the example mesh displayed below. Modifiers: Shear
- Modifiers: Squeeze | website
The Squeeze Modifier changes the radius of a mesh perpendicular to a chosen axis (default: local z-axis), The action is similar to squeezing a soft object or to that of a lathe. There are three different Modes: Scale, Inverse Scale and Absolute . In the Scale mode the distance of the mesh points from the reference axis is scaled by the factor given in the the Magnitude graph as a function of position along the reference axis. In the Inverse Scale mode the scaling factor from the Magnitude graph is inverted. In the Absolute mode the mesh vertex is placed at the absolute distance provided by the Magnitude graph. The Magnitude dialog allows you to define the squeeze amount as an Analytic Function of position along the reference axis. You can also use a Point graph where you can generate an arbitrary function by manually placing points and setting the spline interpolation. To do this, select Point from the Function drop-down list under the graph. The example graph on the right shows the way it was done for the example mesh displayed below. Modifiers: Squeeze
- Module: Hydrodynamics | website
Filters for physical quantities in Shape can be defined here. Modules: Hydrodynamics Overview Hydrodynamic simulations are an important area of astrophysics. Shape is the first astrophysical tool to introduce an interactive mesh-based setup for such simulations without the need of programming or scripting by the user. Furthermore the results of the simulations can be directly incorporated in mesh-based renderings without the need of external software. From the hydrodynamics, just like any other mesh model, can be used to generate spectral information. Filtering using the Filter Module allows you to extract regions with particular properties based on the filter settings. Exporting of the hydrodynamic simulation data allows later incorporation of the data or parts of them into a completely different rendering project. The simulations in Shape are always intrinsically 3D on a uniform cartesian grid. The numerical algorithm in Shape was selected to run relatively fast in 3D with a minimum of variables to keep memory usage as low as possible, while still allowing to simulate the basic astrophysical phenomenology such as shocks and radiative cooling above a temperature of 10^4 K, typical to photoionized nebulae. The details of the numerical scheme used for the hydrodynamics, its limitations and example applications are described in the following research article: W. Steffen, N. Koning, et al., 2013, MNRAS, 436, 470–478 It is recommended to use numerical hydrodynamics tools in Shape or any other application only with sufficient understanding of the the possibilities and limitations of such tools. This module in Shape was made to make access to numerical hydrodynamics easier, but if you do not have insight into the potential artifacts the numerical schemes produce, especially at low spatial resolution, it is recommended to seek the assistance of someone who does. General Workflow The workflow involves three overall steps: First, you set up the elements of the simulation in the 3D Module. Second, the flow parameters are set up in the Hydro Module. The simulation is started and previewed here, too. Rendering and analysis is then done as usual in the Render Module vía a dummy rendering object that is set up in the 3D Module. See below for more details on how to set up a simulation in the 3D Module. User Interface The user interface of the Hydro Module consists of three main parts: The visual preview panels, the menu bar at the top and the parameter panel on the right. From the drop-down list at the top of the parameter panel you have access to four sub-panels: General, Flow, Boundaries and Camera. Menu Bar Calculate : The Calculate Button starts a hydrodynamic simulation. Preview : The Preview Button visualizes the initial setup of the simulation in the preview windows, where you can inspect the distribution of density, speed, temperature and pressure. Add : Add a new windows. You can add several new windows to the preview visualization area. This allows you to simultaneously supervise the evolution of different physical quantities or look at them from different viewing angles or filter conditions. Refresh : Refresh all views to the current state of the hydro simulation. Cascade & Tile : Select how to arrange multiple preview windows. They can also me manually arrange by clicking on the top bar and drag them around. Preview Preview : Each of the preview windows gets a new icon on the menu bar. Change the name in the camera parameters panel on the right to suitably represent the content of the window. Save & Load: Save or load the complete state of the hydrodynamic simulation for the current timestep. This allows you to stop the simulation at this time and restart the simulation where you left off after loading the data back with the Open button. The Open button opens the file dialog to select the previously saved file. Loading a file also allows you to use the result in a different project and render it with a different mesh based scene. After loading a data set click the Preview button on the Menu bar to see the simulation preview. How to set up a hydrodynamic simulation in the 3D Module Numbers that you need to start: The physical size of the computational domain in units of meters. Approximate densities (in particles/m^3) of background and active objects Initial velocities in km/s (in the 3D Module), which are then converted automatically to m/s in the Hydro Module and later back to km/s in the Render Module. Filters in the 3D Module require km/s, whereas those in the Hydro Module require m/s. The timescale on which the simulation is likely to finish in seconds (note that 1 year is approximately p x10^7 sec, which easy to remember) . Setup Render Module The first thing to do is to set the Scene Size and Resolution in the Render Module . Scene Size: The physical size from center to edge of the whole computing domain in meters (you may have to choose the correct units in the Units Tab of the Render Module). Resolution: The voxel resolution for the rendering. This does not need to be the same as the hydro simulation resolution with is set in the Hydro Module. Setup 3D Module Hydro Type: Each mesh object in the 3D Module has to be assigned a Hydro Type in the Hydro tab on the right. Background: The computing domain can not have any region that is completely empty. Therefore there has to be exactly one object with the type Background. The mesh of the background object has to enclose the full domain. Best to use a cube object with the size of the domain or larger. The background distribution of physical properties such as density or temperature may or may not be uniform as needed. Initialize: Object that receive all their properties at the beginning of the simulation and change only passively as a consequence of the simulation receive the hydro type Initialize. These could, for instance, be clumps or rings of high density gas. Boundary: Objects that are updated at every timestep or have to remain the same during the simulation are of type Boundary, since they act like a boundary condition. These could be stellar winds or jet that have to inject gas in a controlled, possibly time-variable manner. Variability is controlled in the Animation Module. Modifiers All hydro objects need to have at least one set of modifiers that describe their physical properties. These can either be [Density, Temperature, Velocity] or [Density, Pressure, Velocity] . Density, Temperature and Pressure must not be zero at any position in the domain otherwise the simulation will proceed only for a limited time or crash immediately. The Velocity may of course be zero. Other modifiers may be added as usual to control the shape, orientation and animation of the objects. Any of the modifiers may be animation including those for the physical properties. To some extent Boundary objects can be interactively moved around with the cursor or by changing numerical parameters while the simulation is running . Set up Hydro Module General Tab Grid Size: The number of cells in each direction of the cubic simulation domain. It is the same in all three dimensions. Note that the computational time and memory required for a simulation strongly depend on the Grid Size. While memory increases with the power of three , the required time increases as the fourth power of this grid size, not third power. This is so, because for smaller cells in the same physical domain the time step is also smaller. Therefore to reach the same final time, more time steps are necessary. So, ramp up this number from below, say starting at 64 and monitor memory and computing time as you increase the resolution. The numbers may be any number, no need to be multiples of 2. End time step: The number of time steps to be executed before the simulation is automatically stopped, unless the End Time is reach first. End time: The physical time in seconds after which the simulation shall be stopped automatically, unless the End Time Step is reach first. Resume: If a simulation as stopped or has been loaded from file, enable the Resume flag to continue the simulation. Click the Calculate Button on the Menu Bar to start resuming the computation. Animate: If Boundary Type objects in the 3D module vary in time in their properties, geometry or position/orientation via the Animation Module, then the Animate flag must be on for this time variability to take effect. Pause: Set this flag to temporarily pause the simulation. This can be useful to save the current state to file or generate a rendering of it in the Render Module. To continue the simulation remove the flag. Filters: For visualization purposes various filters can be selected from the drop-down list that select certain regions according to their physical properties. The filters themselves are set in the Filters Module. Note that SI units are used, including m/s for speed (in the 3D and Render Module the speed it in km/s, so different filters are required for the same filter range). You may combine more than one filter. Flow Tab Courant #: The Courant number is a number that controls the stability of the solution of the numerical differential equations of fluid dynamics. This so called CFL condition expresses that the distance that any information travels during the timestep length within the mesh must be lower than the distance between mesh elements. In other words, information from a given cell or mesh element must propagate only to its immediate neighbors. The number should be less than 1, recommended to be less than 0.5, depending on the particular conditions, incl. the strength of the cooling. Note that making the Courant # smaller, also decreases the time step and hence increases the total computing time. Gamma: The adiabatic index of the gas in the equation of state. For monoatomic gas the value is 5/3 (1.66). Eta: The numerical viscosity coefficient. This exchanges some fraction of the conserved physical quantities between neighboring cells and helps to maintain stability. The cost for the stability is diffusion, i.e. for instance high-density regions expand into low-density ones without the need of a pressure gradient. So, the value should be as small as possible, e.g. 1e-4 or smaller. High contrast regions are particularly affected. T0: The minimum temperature in Kelvin to be maintained if cooling becomes too strong within a timestep and would reduce the temperature below zero. For photoionized regions this value may be set to values of order 1e4 K. Otherwise to a reasonable lower value that represents physically plausible low values. Cooling: Enable or disable explicit cooling. See the paper by Steffen et al., (2013) for details. Cooling factor: Apply this factor to the explicit cooling calculation. Boundaries Tab For each side of the cubic domain the boundary condition may be set to Outflow or Reflection . If your simulation is symmetric with respect to a certain plain, then this plane could be one of the boundaries and then a setting of Reflection can be used. Most other applications will have an Outflow condition everywhere. The difference between the two conditions is only how the velocity components of the second to last cell is copied to the last cell. For the Outflow condition the component perpendicular to the boundary is copied as it is, whereas in the Reflection it is inverted. Camera Tab Controls the camera viewpoint and physical variable to be visualized in each preview window. Click on the preview window for which the parameters shall be shown and set. Name: Set the name of the preview window. It is convenient to set it similar to the physical variable to be displayed or some other name that somehow identifies the content. Variable: Select the physical variable to be visualized in the preview window. Note: When you move the cursor over the preview window a value for the physical quantity at the cursor position is shown in the top-left corner of the preview window. This is the integrated value along the line of sight. To see the local value use the Render Slice functionality (see below) to extract a single slice. Then the value shown represents the local value of the variable. Enable: Enable or disable this camera. Ortho: Enable or disable orthographic projection for this camera. Image: Edit the image display parameters for this camera. X Y Z pos: Set the camera position. The X Y positions are currently not functional. When the Ortho mode is disabled, the Z position in terms of the size of the domain (=1) changes the distance of the camera. X Y Z rot: Set the rotation angles of the camera per axis in degrees. The X & Y rotation can also be changed interactively by dragging the mouse over the preview window with the left button pressed. If the resolution of the simulation is small enough for your system, the preview responds interactively at a reasonable framerate. The interactive preview is rendered on the CPU and is therefore efficient only for relatively small resolutions. Render Slice In the Camera Tab you can scroll down to find the Render Slice controls. They allow you to display slices of the full simulation domain to closely inspect particular regions. The slices go along the coordinate axes. The initial position in terms of cell number are set with the sliders labeled X0, Y0, Z0, while the width of the slices are dX, dY, dZ. If you click on the slider handle a number field hopes that allows you to numerically set the value. It is convenient to set the Z width of the slices to 1 and the position to the middle. Then by enabling and disabling the Render Slice with the Enable flag, one can quickly change to a visualization that allows one to read off particular values in the preview window. As mentioned above the local value is only displayed in the preview window, if the width of the slice is set to 1. Otherwise the value shown for the cursor position is the integrated value along the line of sight, where each cell counts with a distance step of 1. For instance, if the integrated value along z is 200 and the domain resolution is 100, then the average local value is 2 along the line of sight at the position of the cursor. Output In the Camera Tab you can scroll down to find the Output section. When enabled it will output the full state of the simulation every dSteps timesteps. Choose a location on the filesystem afer opening the Directory selection dialog by clicking on the folder button. Make sure it is a location with sufficient disk space to accommodate the amount of data that will be saved. Status At the bottom of the Parameters Panel on the right there are three values updated at every timestep of a simulation. They help to judge the current status and rate of progress of the simulation. It show the current total Time in seconds, the current timestep dTime and the number of Step s computed so far. Considering the ratio between the total time and the timestep is very large, then the simulation will be progressing very slowly. This could be a hint to regionally problematic physical values.
