Name

gf_global_function — General constructor for global function object.

Calling Sequence

      gf = gf_global_function('cut_off', int fn, scal r, scal r1, scal r0)
      gf = gf_global_function('crack', int fn)
      gf = gf_global_function('parser', string val[, string grad[, string hess]])
      gf = gf_global_function('product', gl f1, gl f2)
      gf = gf_global_function('add', gl f1, gl f2)
    

Description

Global function object is represented by three functions:

  • The global function val.

  • The global function gradient grad.

  • The global function Hessian hess.

this type of function is used as local and global enrichment function. The global function Hessian is an optional parameter (only for fourth order derivative problems).

General constructor for global function object. Returns a getfem handle to the newly created global function object.

  • GF = gf_global_function('cutoff', int fn, scalar r, scalar r1, scalar r0) Create a cutoff global function.

  • GF = gf_global_function('crack', int fn) Create a near-tip asymptotic global function for modelling cracks.

  • GF = gf_global_function('parser', string val[, string grad[, string hess]]) Create a global function from strings val, grad and hess.

  • GF = gf_global_function('product', globalfunction F, globalfunction G) Create a product of two global functions.

  • GF = gf_global_function('add', gl f1, gl f2) Create a add of two global functions.

See Also

gf_global_function_get

Authors

Y. Collette