**impose_nodal_dof_from_function#

Description#

This boundary condition imposes degrees of freedom (DOF) over a node set (nset) using a function that depend on nodal coordinates (x,y,z) and on time (or t).

Syntax#

**impose_nodal_dof_from_function \(~\,\) *dof dof_name \(~\,\) *nset nset_name \(~\,\) *function expression(x,y,z,time);

where

nset_name

This is the name of a valid node set (nset) which gives all the nodes where the DOF is to be imposed.

dof_name

The character name of the DOF to be imposed (e.g. U1). This must be one of the defined DOF types given by the problem, and as indexed in the appendix. DOF names are also listed in the problem.ut reference file.

expression

The expresion allows the DOF value to depend on nodal coordinates (x,y,z) and on time (or t).

Example#

This example can be found in $Z7PATH/TESTS/Thermal_test/INP/transient-sincos.inp.

***bc
 **impose_nodal_dof_from_function
  *dof TP
  *nset Border
  *function time*cos(x) + time*time * sin(y) ;

This boundary condition is equivalent to the following one (note that **impose_nodal_dof is cumulative).

***bc
 **impose_nodal_dof Border TP function cos(x) ; time
 **impose_nodal_dof Border TP function sin(y) ; T2