Skip to main content

Objective:

Learn how to ramp a parameter using a quadratic equation.

Procedure:

To ramp your lattice thickness quadratically, you need to break down the equation and build it in nTop using the Math blocks. Be sure to watch for units while creating your equation. 1. Set-up: Start with the geometry you want to ramp already created. In this example, we use a cylinder with a volume lattice infill. 2. Build your equation: Use Math blocks to build your quadratic equation. We are going to build t = x^2. This initial equation will not have units. You can use the field viewer’s Min and Max values to visualize the fields.
The field view of the scalar field of the equation x^2.The field view of the Evaluate Field block of the starting equation x^2.
  • To create ‘X’ we use an Axis block.
    • Point: (0,0,0) - Set to the centroid of our part (automatically assigns units)
    • Vector: (0,0,1) - Set from the Centroid pointing up in the Z-axis
    • Changing the Vector and the Point changes the region of effect for the quadratic equation
  • Add a Square block and input the Divide block from the last step
An image of the equation field and nTop Notebook. Using the Evaluate Field block that our t value, which is x^2, is producing the correct result of 3600 mm^2 at x=60 We can see using the Evaluate Field block that our t value, which is x^2, is producing the correct result of 3600 mm^2 at x=60 3. Create the In-min value for the ramp: We want to set the In-min to be (0,0,0) mm, the middle of our equation.
  • Add an Evaluate Field block.
    • Scalar Field: Input the ‘X^2 ’ block we built
    • Point: (0,0,0)
4. Create the In-max value for the ramp: We want to set the In-max value to be the maximum at the circumference of our cylinder. Units are automatically added; there is no need to remove them.
  • Add a Point block
    • Open up the Properties panel of the Cylinder (starting geometry) and grab the ‘radius’ chip. Insert that chip into the Y input of the Point block.
    • Keep X and Y as 0 (this may change for your equation)
    • Add an Evaluate Field block
      • Scalar Field: Input the ‘X^2 ’ block we built
      • Point: Insert the Point block with the radius chip
5. Build the ramp: Insert the components we built and decide what values you want your lattice thickness to be at the In min and In max distances.
  • Add a Ramp block
    • Scalar Field: ‘X^2 ’ block from Step 2
    • In Min: Add the In Min Evaluate Field block from Step 3
    • In Max: Add the In Max Evaluate Field block from Step 4
    • Out Min: 1 mm
    • Out Max: 4 mm (these values correspond to what thickness we want the lattice struts to be at the In Min and In Max)
    • Continuity: Geometric
The Ramp block being applied to the x^2 scalar field. This new modified field will be used as the Beam Thickness for the lattice. 6. Quadratically ramp the lattice thickness: Drag the Ramp block you just created into the Beam thickness input of the Infill Volume Lattice block. The Cylinder Volume Lattice with ramped beam thickness applied. The beams in the center have a smaller thickness than the beams towards the side walls of the cylinder. Below is a comparison of the quadratic ramp we just made with a linear ramp of the same values (the pink lattice is the linear ramp). a comparison of the quadratic ramp we just made with a linear ramp of the same values (the pink lattice is the linear ramp). 7. Optional: Visualize the quadratic. This optional step is useful if you want to see what your quadratic equation looks like.
  • Add a Box block
    • Length: 100 mm, Width 100 mm, Height 1 mm
  • Add an Offset Body block
    • Body: Input the Box we just made
    • Distance: Input the Quadratic Ramp
 The image is a test to see if the x^2 ramped scalar field applies correctly. An Offset Body block is applied to a box, with the ramped scalar field applied to the offset distance. The resulting box has a curvature applied to its face, indicating the x^2 equation was successful. And that’s it! You’ve successfully created a quadratic ramp. Are you still having issues? Contact the support team, and we’ll be happy to help!

Download the Example file:

More on this topic:

Keywords:

ramp blocks field math linear how-to quadratic units visualize equation continuity square axis parabola coefficient constant