# scalarfunc.mbd #----------------------------------------------------------------------------- # Scalar Function scalar function: "myfunc2", cubicspline, do not extrapolate, -2.0, 0.0, -1.0, 0.0, 0.0, 0.0, 1.0, 1.0, 2.0, 1.0, 3.0, 1.0; # X Range set: real XL = -5.; # Lower Limit set: real XU = 5.; # Upper Limit set: real dX = 0.01; # Step #----------------------------------------------------------------------------- # [Data Block] begin: data; problem: initial value; end: data; #----------------------------------------------------------------------------- # [ Block] begin: initial value; initial time: 0.; final time: XU-XL; time step: dX; max iterations: 10; tolerance: 1.e-6; end: initial value; #----------------------------------------------------------------------------- # [Control Data Block] begin: control data; abstract nodes: 2; genels: 2; end: control data; #----------------------------------------------------------------------------- # Abstract Node Labels set: integer NoAbs_X = 1; set: integer NoAbs_Y = 2; # Genel Labels set: integer GeClamp_NoAbs_X = 1; set: integer GeClamp_NoAbs_Y = 2; #----------------------------------------------------------------------------- # [Nodes Block] begin: nodes; abstract: NoAbs_X, algebraic, value, XL; abstract: NoAbs_Y, algebraic, value, model::sf::myfunc2(XL); end: nodes; #----------------------------------------------------------------------------- # Plugin Variable set: [dof, X, NoAbs_X, abstract, algebraic]; #----------------------------------------------------------------------------- # [Elements Block] begin: elements; genel: GeClamp_NoAbs_X, clamp, NoAbs_X, abstract, string, "Time+XL"; genel: GeClamp_NoAbs_Y, clamp, NoAbs_Y, abstract, string, "model::sf::myfunc2(X)"; end: elements;