#include <cnsplaVisit.h>
Go to the source code of this file.
Enumerations | |
enum | AMA_VisitNorm { AMA_VisitNorm_None, AMA_VisitNorm_Both, AMA_VisitNorm_Data, AMA_VisitNorm_Surface } |
This enumeration specifies the normalization employed by AMA_VisitUnv(), AMA_VisitMltv() and AMA_VisitMltvGrd(). More... | |
Functions | |
long int | AMA_VisitMltv (AMA_OPTIONS *options, const char *approx, const char *datname, long int nind, long int n, double **x, double *z, AMA_SPLINE *spline) |
Write VisIt files for AMA Spline Library Multivariate Random Data Functions. More... | |
long int | AMA_VisitMltvGrd (AMA_OPTIONS *options, const char *approx, const char *datname, long int nind, long int *ng, double **x, double *z, AMA_SPLINE *spline) |
Write VisIt files for AMA Spline Library Multivariate Gridded Data Functions. More... | |
long int | AMA_VisitOptions (AMA_OPTIONS *options, CNSPLA_VISIT *visit) |
Read VisIt options. More... | |
long int | AMA_VisitSpline (AMA_OPTIONS *options, const char *splroot, AMA_SPLINE *spline, AMA_SPLINE *partial, AMA_SPLINE *integral) |
Write VisIt files for AMA Spline Library Spline Functions. More... | |
long int | AMA_VisitUnv (AMA_OPTIONS *options, const char *approx, const char *datname, long int n, double *x, double *z, AMA_SPLINE *spline) |
Write VisIt files for AMA Spline Library Univariate Data Functions. More... | |
enum AMA_VisitNorm |
This enumeration specifies the normalization employed by AMA_VisitUnv(), AMA_VisitMltv() and AMA_VisitMltvGrd().
These functions produce data, spline and grid files which can be used within VisIt to produce visualizations of spline approximations and interpolants computed by the AMA Spline Library approximation and interpolation functions. VisIt plots of univariate data and splines are produced with AMA_VisitUnv() and plots of multivariate data and splines
, for
, are produced with either AMA_VisitMltv() or AMA_VisitMltvGrd(). If nomalization is not performed, then the aspect ratio of the data plots is based on the range of the independent and dependent variable data. Similarly, the aspect ratio of unnormalize plots of spline approximations is based on the spline's independent variables and dependent variable range. The value of AMA_VisitNorm specifies normalizations which produce plots with an aspect ratio of one.
The value of AMA_VisitNorm defines normalizations of univariate data , for
, and univariate splines
given as
as follows:
Similarly, the value of AMA_VisitNorm defines normalizations of multivariate data , for
, and multivariate splines
given as
as follows:
By default the plots are normalized by the minimum and maximum values of the data and spline parameters. Alternate normalizations can be specified in the file VisIt.opt read by AMA_VisitOptions().
Documented 110815
long int AMA_VisitMltv | ( | AMA_OPTIONS * | options, |
const char * | approx, | ||
const char * | datname, | ||
long int | nind, | ||
long int | n, | ||
double ** | x, | ||
double * | z, | ||
AMA_SPLINE * | spline | ||
) |
Write VisIt files for AMA Spline Library Multivariate Random Data Functions.
This function writes VisIt files for AMA Spline Library functions which compute spline approximations of independent variable data and dependent variable data
. The data is given as
, for
.
This function performs the following tasks:
The value of n is the number of independent variables for the spline. These files can be used within VisIt to produce the figures presented in Multivariate Random Data Functions.
Parameter Note: In the parameter definitions given below the limits on are
and k =
.
options | [in] Pointer to AMA_OPTIONS. Should be initialized with AMA_Options() prior to calling AMA_VisitMltv(). |
approx | [in] Approximation function. Should be one of AMA_MltvApprox, AMA_MltvInterp, AMA_MltvLstsqr, AMA_MltvMonoApprox or AMA_MltvMonoInterp. |
datname | [in] The data file name. Should satisfy datname ![]() |
nind | [in] The number of independent variables ![]() ![]() ![]() |
n | [in] The number of data points ![]() ![]() |
x | [in] Array of size nind containing arrays of size n where x[k] contains the independent variable data ![]() ![]() |
z | [in] Array of size n containing the dependent variable data ![]() ![]() |
spline | [in] Pointer to AMA_SPLINE containing the spline approximation. Should be a valid AMA_SPLINE structure. |
User Support Function - Documented 110715 - !!!THIS IS NOT A USER CALLABLE FUNCTION - DOCUMENT IS INCLUDED FOR COMPLETENESS!!!
long int AMA_VisitMltvGrd | ( | AMA_OPTIONS * | options, |
const char * | approx, | ||
const char * | datname, | ||
long int | nind, | ||
long int * | ng, | ||
double ** | x, | ||
double * | z, | ||
AMA_SPLINE * | spline | ||
) |
Write VisIt files for AMA Spline Library Multivariate Gridded Data Functions.
This function writes VisIt files for AMA Spline Library functions which compute spline approximations of independent variable data and dependent variable data
. The independent variable data is given as
, for
and
, and it defines the rectilinear grid
The dependent variable data lies on the grid and is given as , for
.
This function performs the following tasks:
The value of n is the number of independent variables for the spline. These files can be used within VisIt to produce the figures presented in Multivariate Gridded Data Functions.
Parameter Note: In the parameter definitions given below the limits on are
and k =
.
options | [in] Pointer to AMA_OPTIONS. Should be initialized with AMA_Options() prior to calling AMA_VisitMltvGrd(). |
approx | [in] Approximation function. Should be one of AMA_MltvGrdApprox, AMA_MltvGrdInterp, AMA_MltvGrdLstsqr, AMA_MltvGrdMonoApprox or AMA_MltvGrdMonoInterp. |
datname | [in] The data file name. Should satisfy datname ![]() |
nind | [in] The number of independent variables ![]() ![]() ![]() |
ng | [in] Array of size nind containing the number of points ![]() ![]() ![]() |
x | [in] Array of size nind containing arrays of size ng[k] where x[k] contains the independent variable data ![]() ![]() |
z | [in] Array of size ![]() ![]() ![]() |
spline | [in] Pointer to AMA_SPLINE containing the spline approximation. Should be a valid AMA_SPLINE structure. |
User Support Function - Documented 110715 - !!!THIS IS NOT A USER CALLABLE FUNCTION - DOCUMENT IS INCLUDED FOR COMPLETENESS!!!
long int AMA_VisitOptions | ( | AMA_OPTIONS * | options, |
CNSPLA_VISIT * | visit | ||
) |
Read VisIt options.
This function reads the file VisIt.opt which specifies plot options employed by AMA_VisitMltv(), AMA_VisitMltvGrd() and AMA_VisitUnv().
The file VisIt.opt consists of several, optional, sections which specify options for writing VisIt plot files. It has the following structure:
The normalization flag has the following values:
See AMA_VisitNorm for additional information about the four normalization options.
The bold keywords are case sensitive and the string values for the approximation options are case insensitive.
options | [in] Pointer to AMA_OPTIONS. Should be initialized with AMA_Options() prior to calling AMA_VisitOptions(). |
visit | [in] Pointer to CNSPLA_VISIT containing the VisIt file options. |
User Support Function - Documented 110715 - !!!THIS IS NOT A USER CALLABLE FUNCTION - DOCUMENT IS INCLUDED FOR COMPLETENESS!!!
long int AMA_VisitSpline | ( | AMA_OPTIONS * | options, |
const char * | splroot, | ||
AMA_SPLINE * | spline, | ||
AMA_SPLINE * | partial, | ||
AMA_SPLINE * | integral | ||
) |
Write VisIt files for AMA Spline Library Spline Functions.
This function writes the following files:
where n is the number of independent variables for the spline. These files can be used within VisIt to produce the figures presented in Spline Functions.
options | [in] Pointer to AMA_OPTIONS. Should be initialized with AMA_Options() prior to calling AMA_VisitSpline(). |
splroot | [in] The root of spline file names. Should satisfy splroot ![]() |
spline | [in] Pointer to AMA_SPLINE containing the spline ![]() |
partial | [in] Pointer to AMA_SPLINE containing the partial derivative of ![]() |
integral | [in] Pointer to AMA_SPLINE containing the indefinite integral of ![]() |
User Support Function - Documented 012915 - !!!THIS IS NOT A USER CALLABLE FUNCTION - DOCUMENT IS INCLUDED FOR COMPLETENESS!!!
long int AMA_VisitUnv | ( | AMA_OPTIONS * | options, |
const char * | approx, | ||
const char * | datname, | ||
long int | n, | ||
double * | x, | ||
double * | z, | ||
AMA_SPLINE * | spline | ||
) |
Write VisIt files for AMA Spline Library Univariate Data Functions.
This function writes VisIt files for AMA Spline Library functions which compute spline approximations of independent variable data and dependent variable data
. The data is given as
, for
.
This function performs the following tasks:
These files can be used within VisIt to produce the figures presented in Univariate Data Functions.
options | [in] Pointer to AMA_OPTIONS initialized with AMA_Options(). Should be initialized with AMA_Options() prior to calling AMA_VisitUnv(). |
approx | [in] Approximation function. Should be one of AMA_UnvApprox, AMA_UnvInterp, AMA_UnvLstsqr, AMA_UnvMonoApprox or AMA_UnvMonoInterp. |
datname | [in] The data file name. Should satisfy datname ![]() |
n | [in] The number of data points ![]() ![]() |
x | [in] Array of size n containing the independent variable data ![]() ![]() |
z | [in] Array of size n containing the dependent variable data ![]() ![]() |
spline | [in] Pointer to AMA_SPLINE containing the spline approximation. Should be a valid AMA_SPLINE structure. |
User Support Function - Documented 110715 - !!!THIS IS NOT A USER CALLABLE FUNCTION - DOCUMENT IS INCLUDED FOR COMPLETENESS!!!