*SetSolverDiffEquation() - single solver differential equation with user subroutine

Sets the properties of a solver differential equation with a user subroutine.

Syntax

*SetSolverDiffEquation(sde_name, USER/(nothing), `solver_expression`) 
*Set(sde_name.use_local_dll, TRUE|FALSE) 
*Set(sde_name.local_dll, "string")

Arguments

sde_name
The variable name of the differential equation values that are being set.
Data type: varname
USER/(nothing)
Include USER if the differential equation will be described in a solver user subroutine. Otherwise, leave blank by including two commas to hold the space.
solver_expression
A solver expression enclosed in back quotes to specify arguments for the user subroutine.
sde_name.use_local_dll
Specifies if a user subroutine DLL is specific to the instance of one solver differential equation entity.
Data type: boolean
sde_name.local_dll
The path and filename for the user subroutine DLL to be used with an instance of the user defined solver differential equation.
Data type: string

Example

*SolverDiffEquation(sde_equation1, "Example Diff Eq")
*SetSolverDiffEquation(sde_equation1, , EXPLICIT, `
 DIF1(sde_equation.id) + 8.0 + COS(TIME)`)

Context

*BeginMdl()

*DefineAnalysis()

*DefineSystem()

Comments

*SetSolverDiffEquation() is used to define the differential equation for the solver to solve.