SwiftComp-flutter is a mobile app designed to provide a comprehensive composite calculator based on the SwiftComp software, a general-purpose multiscale constitutive modeling code for composites. The app is available on both the App Store, Google Play Store, and web, making it accessible to a wide range of users.
- Lamina Stress/Strain: Compute stress and strain for a single layer with arbitrary fiber orientation.
- Lamina Engineering Constants: Compute engineering constants for a lamina with arbitrary fiber orientation.
- Laminar Stress/Strain: Compute stress and strain distribution within a lamiante.
- Laminate Plate Properties: Compute the ABD matrices for a laminate.
- Laminate 3D Properties: Compute 3D properties for a laminate.
- UDFRC Properties: Compute 3D properties for unidirectional fiber-reinforced composites (UDFRC).
- Chat: A built-in AI Campanion for asking questions and performing calculations.
- Dart: >=3.3.0 <4.0.0
- Flutter: >=3.19.0
Make sure you have Flutter installed on your system. You can follow the official Flutter installation guide if you haven’t done so already.
Please install Flutter 3.19.0
- Clone the Repository
git clone https://github.com/banghuazhaoswiftcomp-flutter.git
cd swiftcomp-flutter
- Install Dependencies Install the necessary Flutter dependencies by running:
flutter pub get
- Set Up Environment Variables Create a
.env
file in the root directory and add the necessary environment variables. For example:
OPENAI_API_KEY=your_openai_api_key
AMPLIFY_CONFIG=your_amplify_config_json
- Run the Application
flutter run
Then choose your device, it could be iOS, Android, or web.
Download SwiftComp from the App Store.
Download SwiftComp from the Google Play Store.
- Select a Tool: From the Tools tab, choose the desired composite calculator.
- Input Parameters: Enter the required parameters for your composite material. Note that inputs vary by tool.
- Calculate: Press the calculate button to obtain results.
- View Results: Once calculation is complete, the results page will be displayed.
- Chat: Ask any questions related to composites, composites simulation, invoke simulations using natural language.
Contributions are welcome! Please read our Contributing Guidelines before submitting a pull request.
SwiftComp-flutter is released under the MIT License. See LICENSE for details.