Contents
Description
108 elements mesh construction
Create the mesh
-
To import the geometry on Blender, you need to convert the generated .off file (BiV_8_mesh.off) for the mesh or (BiV_8_data.off) for the data into a .txt file. To manually change it, open the .off file on excel, copy all the coordinates, and paste it in this template (mesh.txt) file for the nodes, or (data.txt) file for the patient data.
-
-
Select rectangular Cartesian in the Global Coordinates pop-up menu
-
Click OK to submit Coordinate Form
-
-
-
Choose Lagrange Basis Function→2D→Linear-Linear;
-
Click Add Linear-Linear;
-
-
Choose Herimte Basis Function→2D→Cubic-Cubic;
-
Click Add Cubic-Cubic;
-
-
Click OK to submit Basis Form
-
-
-
Click Import/Export/Graph in the left panel to open the Continuity Table Manager window
-
Continuity Table Manager→File→Open…;
-
Select tab-delimited nodes file (mesh.txt)
-
-
Click OK to submit Node Form
-
-
-
Click Import/Export button to open Continuity Table Manager
-
Continuity Table Manager→File→Open…
-
Select tab-delimited elements file (elements.txt)
-
-
-
Click OK to submit Element Form
-
-
-
Click the lines radio button
-
Click Render
-
-
-
Enter 1 for the xi1,xi2, and xi3 fields under New Element per old element in.
- Flag Preserve Nodes Number.
-
Click OK to submit.
-
-
-
Select Cubic Cubic Hermite under Coordinate 1, Coordinate 2, and Coordinate 3
-
Click OK to submit Node Form
-
-
-
Click the lines radio button
-
Click Render
-
Fitting
-
First, you need to apply constrains. Fitting→Edit→Fit Constrains…;
-
Click Import/Export button to open Continuity Table Manager
-
Select tab-delimited constrains file (Constraints.txt)
-
Click OK to submit Data form.
-
-
Then we import the data from the patients. Fitting→Edit→Data…
-
Click Import/Export button to open Continuity Table Manager
-
Select tab-delimited data file (data.txt).
-
Click OK to submit Data form.
-
-
-
In the Xi Projections tab: Flag Display resulting Xi table without fitting
- Click Fit
-
-
File→Save→Save…
- Save model.
-
File→Scripts→Read scripts…
-
Select FitGeometry.py to fit the data with the current mesh.
-
Convert to 3D
-
- Remove existing basis functions:
-
Select Linear-Linear Lagrange 3*3 and then select Subtract
-
Select Cubic-Cubic Hermite 3*3 and then select Subtract
-
- Add the 3D basis functions:
-
Choose Lagrange Basis Function→3D→Linear-Linear-Linear;
-
Click Add Linear-Linear-Linear;
-
-
Choose Herimte Basis Function→3D→Cubic-Cubic-Linear;
-
Click Add Cubic-Cubic-Linear;
-
-
Click OK to submit Basis Form
- Remove existing basis functions:
-
-
Select Linear Linear Linear Lagrange under Coordinate 1, Coordinate 2, and Coordinate 3
-
Click Import/Export button to open Continuity Table Manager
-
Continuity Table Manager→File→Open…
-
Select tab-delimited elements file (elems_3D_postfit.txt)
-
-
-
Click OK to submit Element Form
-
-
-
Click the lines radio button
-
Click Render
-
-
-
Enter 1 for the xi1 and xi2under New Element per old element in. Keep x3 equals to 2.
-
Click OK to submit.
-
-
-
Select Cubic Cubic Linear Hermite under Coordinate 1, Coordinate 2, and Coordinate 3
-
Click OK to submit Node Form
-
-
-
Click the lines radio button
-
Click Render
-
- Now we need to reorder the nodes.
-
-
Click Import/Export/Graph in the left panel to open the Continuity Table Manager window
-
Click OK to submit Node Form
-
- Open saved file on Excel. Delete the labels, and save it again.
-
Open Matlab, and run (ElemRemap.zip). There is a file_m.txt that should have been created.
-
-
Click Import/Export/Graph in the left panel to open the Continuity Table Manager window
-
Continuity Table Manager→File→Open…;
-
Select tab-delimited nodes file (nodes_3d_m.txt)
-
-
Continuity Table Manager→File→Close and update form
-
The Node Form should now display nodes numbered 1 to .
-
-
Click OK to submit Node Form
-
-
-
Click Import/Export button to open Continuity Table Manager
-
Continuity Table Manager→File→Open…
-
Select tab-delimited elements file (elements_3d_reordered.txt)
-
-
-
Click OK to submit Element Form
-
-
-
Enter 1 for the xi1,xi2, and xi3 fields under New Element per old element in.
- Flag Preserve Nodes Number.
-
Click OK to submit.
-
-
-
Choose Herimte Basis Function→3D→Cubic-Cubic-Cubic;
-
Click Add Cubic-Cubic-Cubic;
-
-
Click OK to submit Basis Form
-
-
-
Select Cubic Cubic Cubic Hermite under Coordinate 1, Coordinate 2, and Coordinate 3
-
Click OK to submit Node Form
-
-
-
Click the lines radio button
-
Click Render
-
132 elements mesh construction
-
-
Select rectangular Cartesian in the Global Coordinates pop-up menu
-
Click OK to submit Coordinate Form
-
-
-
Choose Hermite Basis Function→3D→Cubic-Cubic-Cubic;
-
Click Add Cubic-Cubic-Cubic;
-
-
Click OK to submit Basis Form
-
-
-
Click Import/Export/Graph in the left panel to open the Continuity Table Manager window
-
Continuity Table Manager→File→Open…;
-
Select tab-delimited nodes file (mesh2.txt)
-
-
Click OK to submit Node Form
-
-
-
Click Import/Export button to open Continuity Table Manager
-
Continuity Table Manager→File→Open…
-
Select tab-delimited elements file (elements2.txt)
-
-
-
Click OK to submit Element Form
-
-
-
Select tab-delimited elements file (scaled_factors.txt)
-
-
-
Click the lines radio button
-
Click Render
-