udfWritePipe()

Write (send) a message to an external program.

Syntax

udfWritePipe( udfHd, format, ... ) ;

Type

AcuSolve User-Defined Function Client

Parameters

udfHd
The opaque handle (pointer) which was passed to the user function.
format (string)
C printf() format.
... (vararg)
List of C variable.

Return Value

None

Description

This routine writes (sends) a message to the pipe opened by udfOpenPipe or udfOpenPipePrim. The argument list is the same as that of fprintf(), except that here udfHd takes the place of the file descriptor. For example,
udfWritePipe( udfHd, "pressure= %.16g", -trac[0] ) ;

Errors

  • This routine expects a valid udfHd.
  • May only be called from a multiplier function or mesh motion user-defined function.