Scalar Field Math

https://github.com/nortikin/sverchok/assets/14288520/631deb22-c5ee-4a3c-b726-5ac2280d2a8c

Functionality

This node generates a Scalar Field by executing one of supported mathematical operations on the Scalar Fields provided as inputs.

https://github.com/nortikin/sverchok/assets/14288520/07c858a3-55f5-4b03-9f2f-ec9a0802ffae

Inputs

This node has the following inputs:

  • FieldA. The first scalar field. The input is mandatory when available.

  • FieldB. The second scalar field. The input is mandatory when available.

    https://github.com/nortikin/sverchok/assets/14288520/c3d5d5f9-64ca-401f-a79d-e999cfc67d06

Parameters

This node has the following parameter:

  • Operation. This defines the mathematical operation to perform. The available operations are:

    • Add. Add two scalar fields.

    • Sub. Subtract one scalar field from another.

    • Multiply. Multiply two scalar fields.

    • Minimum. Create a scalar field, the value of which is calculated as minimal of values of two scalar fields at the same point.

    • Maximum. Create a scalar field, the value of which is calculated as maximal of values of two scalar fields at the same point.

    • Average. Arithmetic mean (average) of two scalar fields - (A + B)/2.

    • Negate. Negate the scalar field values.

Outputs

The node has the following output:

  • FieldC. The resulting scalar field.

Examples of usage

https://github.com/nortikin/sverchok/assets/14288520/6cc7ad1d-89d7-4601-888d-e992f02dc546 https://github.com/nortikin/sverchok/assets/14288520/6d7e940b-5be8-4779-b125-7bd2cce14125

Example #1:

https://user-images.githubusercontent.com/284644/79497591-60979d80-8041-11ea-9c23-1e0d6be96708.png

Example #2:

https://user-images.githubusercontent.com/284644/79497828-cbe16f80-8041-11ea-957f-54c011afe3a3.png