Skip to main content

TexGen

  • Chapter
  • First Online:
Advanced Weaving Technology

Abstract

This chapter gives an overview and introduction to the use of TexGen, open source software developed at the University of Nottingham as a pre-processor for 3D geometric modelling of textile structures. An overview is given of the modelling theory used in the software. There is a guide to creating automatically generated textile models using the built-in weave wizards and a detailed example of the method for creating a textile model using the functionality within the graphical user interface (GUI). An overview of the Python application programming interface (API) is given, illustrated by an example script, as well as information on how to use the Python functions to edit existing textiles. Finally there is an overview of the options for different meshing and export options used to prepare models as input for simulations.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 69.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 89.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 119.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Beazley, D. & Matus, M. 2007. SWIG [Online]. Available: www.swig.org. Accessed 26 Sep 2019.

  2. Brown, L. P., Gommer, F., Long, A. C., Matveev, M., Zeng, X. & Yan, S. 2019. TexGen Scripting Guide [Online]. Available: https://github.com/louisepb/TexGenScriptingGuide. Accessed 1 Oct 2019.

  3. Brown, L. P. & Sherburn, M. 2019. louisepb/TexGen: TexGen v3.11.0 (Version 3.11.0). Zenodo [Online]. Available: https://doi.org/10.5281/zenodo.3241493. Accessed 21 Oct 2019.

  4. Li, S., & Wongsto, A. (2004). Unit cells for micromechanical analyses of particle-reinforced composites. Mechanics of Materials, 36, 543–572.

    Article  Google Scholar 

  5. Matveev, M. Y., Long, A. C., & Jones, I. A. (2014). Modelling of textile composites with fibre strength variability. Composites Science and Technology, 105, 44–50.

    Article  Google Scholar 

  6. Notepad++ [Online]. Available: https://notepad-plus-plus.org/. Accessed 3rd Jul 2019.

  7. OPENCASCADE. (2019). OpenCASCADE [Online]. Available: www.opencascade.com. Accessed 26 Sep 2019.

  8. Sherburn, M. (2007). Geometric and Mechanical Modelling of Textiles. University of Nottingham.

    Google Scholar 

  9. SI, H. (2015). TetGen, a Delaunay-Based Quality Tetrahedral Mesh Generator. ACM Trans. on Mathematical Software, 41(2).

    Google Scholar 

  10. TEXGEN. (2019). TexGen [Online]. Available: http://texgen.sourceforge.net. Accessed 3 Jul 2019.

  11. Zeng, X., Brown, L. P., Endruweit, A., Matveev, M., & Long, A. C. (2014). Geometrical modelling of 3D woven reinforcements for polymer composites: Prediction of fabric permeability and composite mechanical properties. Composites Part A, 56, 150–160.

    Article  Google Scholar 

  12. Zeng, X., Endruweit, A., Brown, L. P., & Long, A. C. (2015). Numerical prediction of in-plane permeability for multilayer woven fabrics with manufacture-induced deformation. Composites Part A: Applied Science and Manufacturing, 77, 266–274.

    Article  Google Scholar 

Download references

Acknowledgements

Continued development of TexGen software has been supported by Engineering and Physical Sciences Research Council RSE Fellowship [Grant number: EP/N019040/1].

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Louise P. Brown .

Editor information

Editors and Affiliations

1 Electronic supplementary material

Below is the link to the electronic supplementary material.

476728_1_En_6_MOESM1_ESM.zip

Appendix

Appendix

Exercise 1 Solution

  1. 1.

    Either select Textiles-> Create Weave… from the main menu or Weave from the Textiles tab of the Controls menu.

  2. 2.

    Set the number of warp and weft yarns to 4 (to create a 4 × 4 satin weave).

  3. 3.

    Use the warp yarn data to set the yarn spacing and yarn width (as these parameters are different for the warp and weft yarns the weft dimensions will be set later using the Pattern Dialog). The Yarn Spacing is set to 1.0 based on 10 yarns/cm.

  4. 4.

    The combined heights of the yarns is 0.5 mm so this is selected as the Fabric Thickness. The wizard will automatically set both yarn heights to 0.25 mm (half the thickness) but, again, these can be adjusted in the Pattern Dialog. Steps 2–4 are shown in Fig. 27.

  5. 5.

    Click the Next button to move to the Weave pattern dialog.

  6. 6.

    Shift-click on the bars at the left side of the weave pattern to select all of the warp yarns.

  7. 7.

    Right-click on one of the selected side bars to show options to change yarn parameters for these yarns (Fig. 28)

  8. 8.

    Select Set yarn height… and enter the value 0.3 (Fig. 29)

  9. 9.

    Repeat steps 6–8 to select the bars at the top of the weave pattern and set the weft yarn width, height and spacing to 0.7, 0.2 and 0.769 respectively. (The spacing is calculated using 13 yarns/cm)

  10. 10.

    Click on the crossovers on the weave pattern to create the desired weave configuration (Fig. 30)

  11. 11.

    Select OK. The textile is created as shown in Fig. 31. The textile can also be loaded from the Ex2_9_1.tg3 file.

Fig. 27
figure 27

2D weave wizard yarn parameters

Fig. 28
figure 28

Options to change selected yarns in Weave Pattern Dialog

Fig. 29
figure 29

Dialog to input yarn height for selected yarns

Fig. 30
figure 30

Weave configuration for Exercise 1

Fig. 31
figure 31

Exercise 1, finished textile

Exercise 2 Solution

  1. 1.

    Either select Textiles-> Create 3D Weave… from the main menu or 3D Weave from the Textiles tab of the Controls menu.

  2. 2.

    Select the Orthogonal weave type and select Next.

  3. 3.

    Fill in the weft, warp and binder data as shown in Figs. 32, 33 and 34. In the binder yarn window select the Refine option and set the Target Thickness to 1.4.

  4. 4.

    In the three subsequent windows set the yarn properties. This is shown for the weft yarn in Fig. 35.

  5. 5.

    In the final weave pattern window click on the points on the binder yarns to create the desired weave configuration (Fig. 36)

  6. 6.

    Select OK. The textile is created as shown in Fig. 37. The textile can also be loaded from the Ex2_9_2.tg3 file.

Fig. 32
figure 32

Weft yarn input for Exercise 2

Fig. 33
figure 33

Warp yarn input for Exercise 2

Fig. 34
figure 34

Binder yarn input for Exercise 2

Fig. 35
figure 35

Weft yarn properties for Exercise 2

Fig. 36
figure 36

Weave configuration for Exercise 2

Fig. 37
figure 37

Exercise 2, finished textile

Exercise 3 Solution

  1. 1.

    Either select Domain-> Edit Domain… from the main menu or Edit from the Domain tab of the Controls menu.

  2. 2.

    The x and y dimensions of the domain are to be changed so the first four planes (ie the first four lines in the dialog) need to be changed. Select the first row. The values from this row will be displayed in the x, y, z and d text boxes. Set the d value to 2.5 and select Replace Plane. Note that the values in the main window are not updated until Replace Plane is selected.

  3. 3.

    Repeat step 2 for the next 3 planes as shown in Fig. 38.

  4. 4.

    Select OK. The size of the domain will be updated and the newly specified region of the textile will be displayed as shown in Fig. 39. The updated textile can be found in Ex2_9_3.tg3.

Fig. 38
figure 38

Domain planes for Exercise 3

Fig. 39
figure 39

Exercise 3, textile with domain specified for two repeats

Exercise 4 Solution

Fig. 40
figure 40

Exercise 4, finished textile

The amended script can be found in Ex2_9_4.py and the resulting textile is shown in Fig. 40. The changes are as follows:

  1. 1 & 2.
  2. 3.
  3. 4.

Rights and permissions

Reprints and permissions

Copyright information

© 2022 Springer Nature Switzerland AG

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Brown, L.P. (2022). TexGen. In: Kyosev, Y., Boussu, F. (eds) Advanced Weaving Technology. Springer, Cham. https://doi.org/10.1007/978-3-030-91515-5_6

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-91515-5_6

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-91514-8

  • Online ISBN: 978-3-030-91515-5

  • eBook Packages: EngineeringEngineering (R0)

Publish with us

Policies and ethics