[Grasshopper] How to use Merge Fields to combine multiple magnetic fields

[Grasshopper] How to use Merge Fields to combine multiple magnetic fields Grasshopper component EN

This article explains how to use Merge Fields to combine multiple magnetic fields.

Merge Fields1
Merge Fields2

On the Grasshopper, it is represented by either of the two above.


↑Youtube Channel

Combining multiple magnetic fields

Using Merge Fields allows you to combine multiple magnetic fields.

Combining multiple magnetic fields

Components Used: ①Construct Point ②Point Charge ③Merge Fields ④Field

This time, we’ll combine two magnetic fields we created.

two points

Prepare two Construct Point.

Enter 20 into the first Construct Point(X and Y).

Enter 60 into the second Construct Point(X and Y).

Then, points are created at the coordinates 20, 20, 0 and 60, 60, 0, respectively.

magnetic fields are created

Then, connect the two Construct Point to the Point Charge(P), respectively.

Then, magnetic fields are created at the specified points.

compare

Then connect two Point Charges to the Merge Fields.

This combines the two magnetic fields into one.

Let’s compare it to the case of a Field that can set a magnetic field.

For Merge Fields, since they are combined into a single field, a single field data is output.

On the other hand, in the case of Field, since it is not combined, two magnetic field data sets are output.

visualize the magnetic fields

Additional Components: ① Rectangle ② Populate 2D ③ Field Line

Let’s visualize the magnetic fields of Merge Fields and Field.

square

Enter 80 into the Rectangle(X and Y) to create an 80×80 square.

100 points were randomly created

Next, connect the Rectangle(R) to the Populate 2D(R).

Then, enter the value 100 into the Populate 2D(N).

Then, 100 points were randomly created within the square.

磁場を反映した曲線

Next, connect the Merge Fields to the Field Line.(F)

Then connect Populate 2D to the Field Line(P).

Then, as shown in the image above, a curve reflecting the two magnetic fields is created.

In this way, we can see that the magnetic fields are combined in the case of Merge Fields.

Field

Connect the Field to the Field Line(F) and observe the Field case.

the magnetic fields are not merged

In this case, we can see that the magnetic fields are not merged.

Therefore, when you want to apply the effects of multiple magnetic fields, you must use Merge Fields.

List of Grasshopper articles using Merge Fields component↓

Comment

Translate »