Using Tools > Working with User Code > User Function Interface Reference (C) > User Function Argument Registration ucarg (C)

Your Ad Here




User Function Argument Registration ucarg (C)

Each argument of a C user function which has been initially registered with ucfunc is requested with a call in uclib to ucarg:

ucarg(void *func, char *type, char *variable, int size);

func: a pointer to the user function.

type: a character string giving the type of the argument, either of the following:

variable: a character string naming the requested argument, which must be a valid STAR-CCM+ variable.

size: the storage in bytes required for one element of the variable array. This is used to ensure that the precision of the user function matches the precision of STAR-CCM+. Examples are:

The Real and CoordReal types define the precision of floating-point variables in Real.h.

Calls to ucarg must be made in the order the arguments are required by the user function.

Return to CD-adapco STAR-CCM+ Index


Your Ad Here