Personal tools
You are here: Home cmgui Wiki Renumbering backend nodes & elements
Views
Hayley's Notes >>

Renumbering backend nodes & elements

last edited 1 year ago by hrey004

There are a number of different ways to renumber nodes and elements in cmiss.

  • In the backend I know of 2 options which are:
    • 1) Use the CMISS utilities module 'RenumIp':

      use CmUtils::RenumIp;
      renumIp("fitted_arm_6.ipnode",30,"fitted_arm_6.ipelem",30);
          

      POTENTIAL PROBLEM - if your mesh has versions, the nodes pertaining to your version numbers in your ipelem file will not be offset correctly

    • 2) This option uses a function within cmiss:

      fem renumber mesh node_offset 10 element_offset 10 region 1;
          

      POTENTIAL PROBLEM - if your mesh has versions, the nodes pertaining to your version numbers in your ipelem file will be incorrectly set to zero

  • In the frontend:
    • To ensure version numbers are offset correctly in the ipelem file, you can renumber the nodes and elements in CMGUI (the frontend) using the gfx change_identifier command, then export them to backend files using the command:

       
      gfx export cm region name field coordinates ipcoor name.ipcoor ipbase name.ipbase ipnode name.ipnode ipelem name.ipelem;
          

    • This command is very useful! It will output your exnode and exelem into ipnode and ipelem files, at the same time it will output a coordinate and basis file. Note however that you cannot output only node and element files, you need to output coordinate & basis files for the command to work.

Contributing to this site

Please add to the wiki any relevant information that you think might be useful to other users of this website. For example, you might like to contribute your experiences, questions and answers.

You are encouraged to contribute to this site regardless of your level of experience. Contributions are welcomed from new and regular visitors.

If you ask a question and receive an answer from a developer you should record it in the wiki. This information is extremely useful and can help other users overcome the same problem.

See how to add and edit pages for more information.