Personal tools
You are here: Home / cm / Wiki / How to update elements when adding a basis
Navigation
Log in


Forgot your password?
 

How to update elements when adding a basis

If I have a mesh that has been fitted using tricubic+bicubic bases and then I want to add a trilinear basis, the elements need to be updated.

Is there a command to do automatically copy the element definitions for the new basis from an existing one?

e.g.:

# basis 1=tricubic, basis 2=bicubic
fem define bas;tricubic

# basis 3=trilinear
fem define;add bas;trilinear

fem define node;mymesh

# this element file only contains element definitions for basis 1
fem define elem;mymesh

At this point cm prompts for element definitions for basis 3.

If I change the order and do this:

# basis 1=tricubic, basis 2=bicubic
fem define bas;tricubic

fem define node;mymesh

# this element file only contains element definitions for basis 1
fem define elem;mymesh

# basis 3=trilinear
fem define;add bas;trilinear

then it doesn't prompt but the elements are undefined for basis 3.

Is there a command to make it update the element definitions automatically for the new basis?