RTMsim - A Julia module for filling simulations in Resin Transfer Moulding with the Finite Area Method
RTMsim - A Julia module for filling simulations in Resin Transfer Moulding with the Finite Area Method - Published in JOSS (2023)
Science Score: 95.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 1 DOI reference(s) in JOSS metadata -
✓Academic publication links
Links to: joss.theoj.org -
✓Committers with academic emails
2 of 4 committers (50.0%) from academic institutions -
○Institutional organization owner
-
✓JOSS paper metadata
Published in Journal of Open Source Software
Scientific Fields
Repository
RTMsim - A Julia module for filling simulations in Resin Transfer Moulding
Basic Info
- Host: GitHub
- Owner: obertscheiderfhwn
- License: gpl-2.0
- Language: Julia
- Default Branch: main
- Homepage: https://obertscheiderfhwn.github.io/RTMsim/build/
- Size: 43.2 MB
Statistics
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
- Releases: 6
Metadata Files
README.md
RTMsim - A Julia module for filling simulations in Resin Transfer Moulding

Resin Transfer Moulding (RTM) is a manufacturing process for producing thin-walled fiber reinforced polymer composites where dry fibers are placed inside a mould and resin is injected under pressure into the fibrous preform. During mould design, filling simulations can study different manufacturing concepts (i.e. placement of inlet ports and vents) to guarantee complete filling of the part and avoid air entrapment where flow fronts converge.
RTMsim is a new software tool for RTM filling simulations. The porous cavity is fully described by a mesh file with triangular cells on the part’s mid-surface and cell set definitions. The latter can be used for specifying the location of the pressure injection ports and regions with different preforms by assigning different thickness, porosity and permeability values. Additional equations (e.g. for modeling the degree-of-cure) can either be added with equations of the same type or modifications of existing equations (e.g. for variable cavity thickness as needed for vacuum assisted resin infusion simulations). Several test cases were used for successfully validating the implemented model.
How to get
Requirements and installing Julia
The RTMsim module was developed and tested with Julia version 1.8. Julia is a high level open source programming language and it is as easy to use as python or Matlab.
First of all you need a Julia installation. Download Julia from https://julialang.org/downloads/ and install.
On a Windows operating systems add an environment variable such that the Julia terminal can be started from the command line.
Installing using the Julia Package manager
Open a Julia terminal. The only thing you have to do is to add the package to your Julia environment with the following commands:
- using Pkg
- Pkg.add(url="https://github.com/obertscheiderfhwn/RTMsim") for the current version or Pkg.add(url="https://github.com/obertscheiderfhwn/RTMsim",rev="1.0.4") for the specific release 1.0.4 corresponding to the JOSS paper
- Pkg.test("rtmsim") for an automated test.
Alternatively, one can use the package manager with the following commands:
- Change to package manager with ]
- add "https://github.com/obertscheiderfhwn/RTMsim"
- test rtmsim
- Return with the backspace key
Running on headless machines currently is not supported due to problems with the package GLMakie. A workaround is implemented in the automated tests.
How to use - Windows
Preparation
For testing the software create a directory and download mesh- and input-files:
- Create a working directory in the File explorer
- Figure out the location of the package with using rtmsim and afterwards pathof(rtmsim) in the Julia terminal
- Copy from the package location the folder with the meshfiles and the inputfiles into the working directory in the File explorer
Start the GUI in the Julia terminal:
- Change to the working directory, for example with cd("C:\\obertscheiderfhwn\\rtmsim") where the separation is a \\
- using rtmsim
- Start the GUI with rtmsim.gui()
Start the GUI by double clicking:
- Copy start_rtmsim_gui.bat and start_rtmsim_gui.jl from the package folder to the working directory
- Double click on start_rtmsim_gui.bat in the Explorer
GUI
You can start a simulation in the GUI.

The buttons in the line on the RHS are used to start the simulation with the parameters from the selected input file. For example, click on Select input file and select the input.txt in the inputfiles folder (from the package installation or from the copy in your working directory) and click on Run with input file. After the simulation is completed, click on Plot overview.
Parameters (fluid properties, patch types and patch properties of cell sets specified in the mesh file) can also be specified in the GUI and a simulation is then started by clicking on Start simulation. Also other functionalities are available. The buttons in the first line on the LHS are used for mesh inspection, i.e. Select mesh file, Plot mesh with bounding box and Plot sets for inspecting the defined sets in the mesh file. The buttons Start simulation and Continue simulation in the second line on the LHS are used for starting and continuing a filling simulation. Every time the Start or Continue simulation button is pressed, a filling simulation is started. The simulated flow time tmax is specified in the first field in the second line. Every simulation calculates the flow front propagation during the next tmax seconds. If started with the Start simulation button, the cavity is empty initially. If started with the Continue simulation button, the results from the previous simulation are taken as initial condition. With the buttons Start interactive and Continue interactive in the third line one can start and continue simulations where manually selected inlet ports are used in addition to sets defined below. The radius of the inlet ports is specified in the first field in the third line and the locations are selected with the mouse after clicking on Select inlet port. The buttons Plot results, Plot overviewand Plot filling in the forth line are used for creating contour plots, i.e. show filling and pressure distribution of a specified output file (path to the results file in the second cell and can be changed by clicking on Select results file; final results are saved in results.jld2), plot filling at four equidistant time instances and filling at different time instances which are selected with a slider bar.
Click here for additional information (for example the meaning of the parameters) and here for tutorials (with typical use cases).
How to use - Linux
The GUI for Linux operating systems is still experimental. RTMsim can be started from the Julia terminal.
Preparation
For testing the software create a directory and download mesh- and input-files:
- Create a working directory in the File explorer
- Figure out the location of the package with using rtmsim and afterwards pathof(rtmsim) in the Julia terminal
- Copy from the package location the folder with the meshfiles and the inputfiles into the working directory in the File explorer
Run a simulation in the Julia terminal:
- In the Julia terminal change to the working directory, for example with cd("/home/obertscheiderfhwn/rtmsim")
- using rtmsim
- Start a simulation with input file if you copied the inputfiles folder to your working directory: rtmsim.start_rtmsim("inputfiles/input.txt") or
- Start a simulation by calling the solver with all arguments: param=rtmsim.input_vals(1,"meshfiles/mesh_permeameter1_foursets.bdf",200, 101325,1.225,1.4,0.06, 1.35e5,1.00e5, 3e-3,0.7,3e-10,1,1,0,0, 3e-3,0.7,3e-10,1,1,0,0, 3e-3,0.7,3e-11,1,1,0,0, 3e-3,0.7,3e-11,1,1,0,0, 3e-3,0.7,3e-9,1,1,0,0, 1,2,2,2,0,"results.jld2",0,0.01,16); rtmsim.rtmsim_rev1(param);
- Create contour plots of filling at different time instances: rtmsim.plot_overview(-1,-1)
Click here for a description of the parameters, click here for a description of the input file and here for tutorials (with typical use cases).
How to support and contribute
Suggestions for functionalities to be implemented and user feedback from case studies with this software are appreciated. Please have a look at the contribution item in the community standards. Click here to see the API documentation.
How to cite
If RTMsim is used for research or development, please use the following entry, shown in BiBTeX format:
@misc{RTMsim,
author = {Obertscheider, Christof and Fauster, Ewald},
title = {RTMsim - A Julia module for filling simulations in Resin Transfer Moulding},
howpublished = {\url{https://github.com/obertscheiderfhwn/RTMsim}},
year = {2022}
}
Owner
- Name: Christof Obertscheider
- Login: obertscheiderfhwn
- Kind: user
- Location: Wiener Neustadt / Austria
- Company: University of Applied Sciences Wiener Neustadt
- Repositories: 2
- Profile: https://github.com/obertscheiderfhwn
JOSS Publication
RTMsim - A Julia module for filling simulations in Resin Transfer Moulding with the Finite Area Method
Authors
Aerospace Engineering Department, University of Applied Sciences Wiener Neustadt, Johannes-Gutenberg-Straße 3, 2700, Wiener Neustadt, Austria
Processing of Composites Group, Department Polymer Engineering and Science, Montanuniversität Leoben, Otto Glöckl-Straße 2, 8700 Leoben, Austria
Tags
Computational Fluid Dynamics (CFD) Shell mesh Resin Transfer moulding (RTM) Liquid composite moulding (LCM) Filling simulationGitHub Events
Total
Last Year
Committers
Last synced: 7 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| obertscheiderfhwn | c****r@f****t | 275 |
| Zitzeronion | p****d@g****m | 2 |
| Ewald Fauster | 1****r | 1 |
| Stefan Zitz | s****z@f****e | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 5
- Total pull requests: 2
- Average time to close issues: about 1 month
- Average time to close pull requests: about 9 hours
- Total issue authors: 2
- Total pull request authors: 1
- Average comments per issue: 5.4
- Average comments per pull request: 0.0
- Merged pull requests: 2
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- Zitzeronion (4)
- duhd1993 (1)
Pull Request Authors
- Zitzeronion (2)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- actions/checkout v2 composite
- julia-actions/setup-julia latest composite
- actions/checkout v2 composite
- actions/upload-artifact v1 composite
- openjournals/openjournals-draft-action master composite
