6.2. Fields and Forces

  • Funcionan colocando sensores:

    • chromic paper: se coloca en una superficie y la colorea
    • point sensors: guardan una magnitud en cada avance del tiempo.
    • volumetric sensors: guardan la
  • Condiciones iniciales:

    • volumetricas:
    • puntuales:
    • superficie

Y condiciones de contorno:

  • volumetric: en cada paso de la simulación colocan unos valores por defecto
  • surface: en cada paso de la simulación inyectan calor, por ejemplo
  • puntual: en cada paso de la simulacion colocan un valor
Entonces, se avanza el tiempo por pasos elegidos por el usuario. Puede ser explícito
t.advance 0.4s, after which sensors can be requested its value.

Time can be advanced until conditions relax, too… time.advance .until sensor4.delta < 0.3

Ejemplo:

cylinder c: .radius 5cm .height 10cm .material iron
c.temperature = 50C  # this actually creates a setter

sensor.point s1: .at 10 10 10 cm
time.advance 10 times * 0.5us
graph s1.values      ## esto donde sale??? Esto crea un gráfico. Como es el último, lo visualiza

6.2.1. Sensors

6.2.1.1. PointSensor

A sensor that stores the values at a point

6.2.1.2. VolumeSensor

A sensor that stores the values in a volume. how?

  • ForceField variant: displays the force fields
  • Isosurface: displays 1 iso surface

6.2.1.3. SurfaceSensor

The magic paper described above. It sticks to some surface. It can be displayed instead of the surface, or projected (if its not planar) on another canvas to see it.

There are several variants: one variant displays isolines. Other, pixels, other force fields.

6.2.2. Conditions

Conditions are executed on each step of the simulation. They inject or preserve values of the field. As everything, conditions are given for ONE field.

6.2.2.1. Isopotential volume

Keeps a volume with a given value for a given field. The value can change with time using functions.

6.2.3. Heat equation

6.2.4. Electromagnetic fields

Particularities of electromagnetic simulations.

6.2.5. Custom fields

In addition to electromagnetic and

Custom fields can be defined, that derive from potentials?:

field f:
box b: .size 20 20 .pot2 43V .place center @ <0,0>
magicPaper: .display field2 ticks 1 0.2 .palete blueRed

Custom fields can be defined, that include speeds? This would be very useful to display:

field f:
box:
magicPaper: