Skip to content

Commit bfc4c73

Browse files
committed
initial sync commit
0 parents  commit bfc4c73

File tree

776 files changed

+56819
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

776 files changed

+56819
-0
lines changed

.gitattributes

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
*.usd filter=lfs diff=lfs merge=lfs -text
2+
3+
# Set default behavior to automatically normalize line endings
4+
* text=auto
5+
6+
# Force Unix line endings for shell scripts
7+
*.sh text eol=lf
8+
9+
# Force Unix line endings for other Unix-specific files
10+
*.yml text eol=lf
11+
*.yaml text eol=lf
12+
Dockerfile* text eol=lf
13+
*.conf text eol=lf
14+
15+
# Force Windows line endings for Windows-specific files
16+
*.bat text eol=crlf
17+
*.cmd text eol=crlf
18+
*.ps1 text eol=crlf
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Build and Push Blueprint
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
types: [opened, reopened, synchronize, ready_for_review]
11+
release:
12+
types: [published]
13+
workflow_dispatch:
14+
15+
jobs:
16+
code-style:
17+
name: "Code style"
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: ansys/actions/code-style@v10
21+
with:
22+
use-python-cache: false
23+
24+
run-unit-tests:
25+
name: Run Messaging extension unit tests
26+
runs-on: windows-latest
27+
steps:
28+
- name: Checkout code
29+
uses: actions/checkout@v3
30+
31+
- name: Set up Python
32+
uses: actions/setup-python@v4
33+
with:
34+
python-version: '3.12' # Adjust the Python version as needed
35+
36+
- name: Install pytest
37+
run: pip install pytest
38+
39+
- name: Run Unit Tests
40+
run: |
41+
cd blueprint/kit-app-source/source/extensions/ansys.messaging/ && pytest tests/unit

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
*.pyc
2+
3+
# Temporary build directories
4+
_temp-build/
5+
6+
.DS_Store
7+
.vscode/
8+
.vs/
9+
10+
# Pre-commit virtualenv
11+
.venv/

.pre-commit-config.yaml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
repos:
2+
3+
- repo: https://github.com/google/yamlfmt
4+
rev: v0.20.0
5+
hooks:
6+
- id: yamlfmt
7+
exclude: templates/.*
8+
args:
9+
- "-formatter"
10+
- "max_line_length=120,retain_line_breaks=true,retain_line_breaks_single=true"
11+
12+
- repo: https://github.com/astral-sh/ruff-pre-commit
13+
rev: v0.14.2
14+
hooks:
15+
# ONLY on blueprint\kit-app-source\source\extensions folder and Python files
16+
- id: ruff-check
17+
files: blueprint/kit-app-source/source/extensions/.*\.py
18+
args: [--fix]
19+
- id: ruff-format
20+
files: blueprint/kit-app-source/source/extensions/.*\.py
21+
22+
- repo: https://github.com/pre-commit/pre-commit-hooks
23+
rev: v6.0.0
24+
hooks:
25+
- id: check-merge-conflict
26+
- id: debug-statements
27+
- id: check-yaml
28+
# Exclude files inside a "templates" folder and the pnpm-lock.yaml file
29+
exclude: templates/.*|pnpm-lock\.yaml
30+
- id: trailing-whitespace
31+
32+
- repo: https://github.com/ansys/pre-commit-hooks
33+
rev: v0.5.2
34+
hooks:
35+
- id: add-license-headers
36+
# ONLY on blueprint\kit-app-source\source\extensions folder and Python files
37+
files: blueprint/kit-app-source/source/extensions/.*\.py
38+
args:
39+
- --start_year=2025
40+
41+
# this validates our github workflow files
42+
- repo: https://github.com/python-jsonschema/check-jsonschema
43+
rev: 0.34.1
44+
hooks:
45+
- id: check-github-workflows
46+
47+
# this validates our pre-commit.ci configuration
48+
- repo: https://github.com/pre-commit-ci/pre-commit-ci-config
49+
rev: v1.6.1
50+
hooks:
51+
- id: check-pre-commit-ci-config

README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# bottle-filling-digital-twin Dev
2+
3+
Blueprint for developing vertical digital twin applications using Ansys Fluids simulations and NVIDIA Omniverse for bottle filling use case.
4+
5+
## Setting up pre-commit
6+
7+
You need to setup pre-commit on this repo befor contributing. Follow these steps to setup pre-commit on your local machine.
8+
9+
1. Add a python virtual environment at the root.
10+
11+
```bash
12+
python -m venv .venv
13+
```
14+
15+
2. Activate the virtual environment.
16+
17+
```bash
18+
source .venv/bin/activate
19+
```
20+
21+
```ps1
22+
.venv/Scripts/activate
23+
```
24+
25+
3. Install pre-commit
26+
27+
```bash
28+
pip install pre-commit
29+
```
30+
31+
4. Run pre-commit install
32+
33+
```bash
34+
pre-commit install
35+
```
36+
37+
To run pre-commit checks:
38+
39+
```bash
40+
pre-commit run --all-files
41+
```

blueprint/.dockerignore.content

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# .dockerignore for content image build
2+
# Excludes unnecessary files from Docker build context
3+
4+
# Documentation
5+
*.md
6+
README*
7+
LICENSE*
8+
CONTRIBUTING*
9+
CODE_OF_CONDUCT*
10+
11+
# Version control
12+
.git
13+
.gitignore
14+
.gitattributes
15+
16+
# Docker files (we only need content/)
17+
docker/
18+
!docker/Dockerfile.content
19+
20+
# Kubernetes manifests
21+
k8s/
22+
manifests/
23+
24+
# Scripts
25+
scripts/
26+
27+
# Build artifacts
28+
*.log
29+
*.tmp
30+
*.bak
31+
*~
32+
33+
# IDE and editor files
34+
.vscode/
35+
.idea/
36+
*.swp
37+
*.swo
38+
.DS_Store
39+
Thumbs.db
40+
41+
# Kit app source (not needed for content image)
42+
kit-app-source/
43+
44+
# Web app (not needed for content image)
45+
web-app/
46+
47+
# Documentation
48+
doc/
49+
50+
# Python cache
51+
__pycache__/

blueprint/.gitignore

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# All folders starting with _ are local.
2+
_*/
3+
4+
# Compiled python files.
5+
*.py[cod]
6+
7+
# Visual Studio files.
8+
/.vs
9+
**/.vscode/ipch
10+
11+
# macOS files.
12+
.DS_Store
13+
14+
# Generated license file.
15+
PACKAGE-DEPS.yaml
16+
17+
# packman .user config
18+
*.packman.xml.user
19+
20+
# kit user config
21+
deps/**/user.toml
22+
23+
# vscode settings are copied and filled in from 'settings.json.template'
24+
.vscode/settings.json
25+
26+
# PyCharm files.
27+
/.idea/
28+
29+
# Linux in docker build $HOME dirs
30+
/.nvidia-omniverse
31+
/.local
32+
/.cache
33+
34+
# Omniverse EULA breadcrumb
35+
/.omniverse_eula_accepted.txt
36+
37+
# Streaming EventTrace
38+
*.etli
39+
40+
**/web-app/node_modules/
41+
**/web-app/dist/
42+
43+
/certificates/*
44+
/bicep/parameters/ccci/*
45+
/k8s/working/*
46+
/k8s/exports.sh
47+
/kas_installation/*
48+
49+
/scripts/exports.sh
50+
51+
52+
/scripts/swa-cli.config.json

blueprint/CODE_OF_CONDUCT.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our
7+
project and our community a harassment-free experience for everyone,
8+
regardless of age, body size, disability, ethnicity, sex
9+
characteristics, gender identity and expression, level of experience,
10+
education, socio-economic status, nationality, personal appearance,
11+
race, religion, or sexual identity and orientation.
12+
13+
## Our Standards
14+
15+
Examples of behavior that contributes to creating a positive environment
16+
include:
17+
18+
* Using welcoming and inclusive language
19+
* Being respectful of differing viewpoints and experiences
20+
* Gracefully accepting constructive criticism
21+
* Focusing on what is best for the community
22+
* Showing empathy towards other community members
23+
24+
Examples of unacceptable behavior by participants include:
25+
26+
* The use of sexualized language or imagery and unwelcome sexual
27+
attention or advances
28+
* Trolling, insulting/derogatory comments, and personal or political attacks
29+
* Public or private harassment
30+
* Publishing others' private information, such as a physical or electronic
31+
address, without explicit permission
32+
* Other conduct which could reasonably be considered inappropriate in a
33+
professional setting
34+
35+
## Our Responsibilities
36+
37+
Project maintainers are responsible for clarifying the standards of acceptable
38+
behavior and are expected to take appropriate and fair corrective action in
39+
response to any instances of unacceptable behavior.
40+
41+
Project maintainers have the right and responsibility to remove, edit, or reject
42+
comments, commits, code, wiki edits, issues, and other contributions that are
43+
not aligned to this Code of Conduct, or to ban temporarily or permanently any
44+
contributor for other behaviors that they deem inappropriate, threatening,
45+
offensive, or harmful.
46+
47+
## Scope
48+
49+
This Code of Conduct applies both within project spaces and in public spaces
50+
when an individual is representing the project or its community. Examples of
51+
representing a project or community include using an official project e-mail
52+
address, posting via an official social media account, or acting as an appointed
53+
representative at an online or offline event. Representation of a project may be
54+
further defined and clarified by project maintainers.
55+
56+
## Attribution
57+
58+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
59+
version 1.4, available at
60+
https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
61+
62+
[homepage]: https://www.contributor-covenant.org
63+
64+
For answers to common questions about this code of conduct, see
65+
https://www.contributor-covenant.org/faq

blueprint/CONTRIBUTING.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Contributing
2+
3+
We absolutely welcome any code contributions and we hope that this
4+
guide will facilitate an understanding of the PyAEDT code
5+
repository. It is important to note that while the PyAEDT software
6+
package is maintained by ANSYS and any submissions will be reviewed
7+
thoroughly before merging, we still seek to foster a community that can
8+
support user questions and develop new features to make this software
9+
a useful tool for all users. As such, we welcome and encourage any
10+
questions or submissions to this repository.
11+
12+
For contributing to this project, please refer to the [PyAnsys Developer's Guide].
13+
14+
[PyAnsys Developer's Guide]: https://dev.docs.pyansys.com/index.html
15+
16+
## Directing Issues and Features Requests
17+
18+
For reporting bugs and proposing new features, please use the Issues tab instead of the Discussions tab. This will help us track and prioritize work in a more organized manner.
19+
20+
## Purpose of Discussions
21+
22+
The Discussions tab should primarily be used for general questions and discussions about the project. This could include discussions about potential improvements, the future direction of the project, brainstorming ideas, help with using the software, and other topics that don't exactly fit as an Issue.
23+
24+
Remember, maintaining distinct places for different types of interactions helps keep our project organized and moving forward in a coordinated manner.
25+
26+
## Modify the Code
27+
28+
Everyone can contribute to this project, irrespective of their level of expertise. Your diverse skills, perspectives, and experiences are valuable and we welcome them.
29+
30+
Here's a simple overview of how you can start making contributions:
31+
32+
**Fork the Repository:** "Forking" means creating a personal copy of this repository on your GitHub account.
33+
34+
**Clone the Repository:** After forking, you need to download the repository to your local machine. This can be done using the `git clone` command.
35+
36+
**Create a New Branch:** A branch is used to isolate your changes from the main project. You can create a new branch using the `git branch` command. Remember to switch to your new branch with the `git checkout` command.
37+
38+
**Commit Your Changes:** After making your changes, you need to "commit" them. A commit is a packaged set of alterations. Use `git add` to add your files to staging, and then `git commit -m "your message"` to commit them.
39+
40+
**Push Your Changes:** After committing your changes, "push" them to your forked repository on GitHub with `git push origin <branch-name>`.
41+
42+
**Create a Pull Request:** A Pull Request (PR) lets us know you have changes you think should be included in the main project. Go to your forked repository on GitHub and click on the 'Pull request' button. The title of your
43+
'Pull request' must follow the `conventional commits standard <https://github.com/commitizen/conventional-commit-types/blob/master/index.json>`_ where the type field is expected to be defined with upper cases.
44+
45+
Following these steps ensures that your contributions will be easily reviewed and potentially included in the project much faster.
46+
47+
Please don't get discouraged if you find these steps complex, we are here to help you throughout the process.
48+
49+
We hope these rules will make the Discussions section a better place for every contributor.

0 commit comments

Comments
 (0)