ScPovPlot3D/VectorField.inc [ Modules ]

[ Top ] [ Modules ]

AUTHOR

  Janusz Opiła Ph.D.
   jmo@agh.edu.pl, janusz.opila@gmail.com
   Dept. of Applied Informatics
   AGH Univ. of Science & Technology. Cracow, Poland
   Maintained by Janusz Opiła Ph.D.

PURPOSE

This module is in introductory state. It contains macros for representation of vector field in form of set of vectors symbolised by various shapes and color coding systems. Direction and strength of vector at given space point can be visualised in different ways. While direction of the vector can be shown by main axis of some figure, for example cone or cylinder, strength and turn can be represented by length or color or volume or so on. It depends mainly on the goal of visualisation. I think, that representation of vectors in single plane is most informative by now. Besides that we need superimposition of source objects, as coils, charges, permanent magnet poles or even oceanic bed if one takes into account visualisation of oceanic currents.

     


   Fig.[VectorField] Example of vector field generated by point charge at the center of Cartesian system rendered with this module

COPYRIGHT

   GNU GPL v.3 License
   (c) 2007-now by Janusz Opiła Ph.D.

VectorField.inc/DeclareVectors() [ Helper macros ]

[ Top ] [ VectorField.inc ] [ Helper macros ]

PURPOSE

calculates field using function _VS given as parameter, in _NP^3 grid points in a cube

     


   Fig.[VectorFieldCube] Example of vector field generated by point charge at the center of Cartesian system rendered with this module over 7x7x7 3D space grid

SYNOPSIS

70 #macro DeclareVectors(_VS, _NP)  

INPUTS

  _VS - float function(float, float) - inline function two float parameters, returns float
  _NP - integer - size of the grid, number of nodes along one cube edge