Skip to content

Commit 4c8440e

Browse files
committed
Merge branch 'main' into dev/gear-var
2 parents e824973 + aca28aa commit 4c8440e

File tree

3 files changed

+36
-18
lines changed

3 files changed

+36
-18
lines changed

README.md

Lines changed: 27 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Rotordynamic Open Source Software (ROSS)
1+
# ROSS — Rotordynamic Open-Source Software
22
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/ross-rotordynamics/ross/main)
33
![github actions](https://github.com/petrobras/ross/workflows/Tests/badge.svg)
44
[![Documentation Status](https://readthedocs.org/projects/ross/badge/?version=latest)](https://ross.readthedocs.io/en/latest/?badge=latest)
@@ -16,32 +16,44 @@ energy is not taken into account. Bearings and seals are included as linear stif
1616
After defining the elements for the model, you can plot the rotor geometry and run simulations such as static analysis,
1717
modal analysis, undamped critical speed, frequency response, unbalance response, time response, and more.
1818

19-
You can try it out now by running the tutorial on [binder](https://mybinder.org/v2/gh/ross-rotordynamics/ross/main)
19+
## 🚀 Quick Start
2020

21-
# Documentation
22-
Access the documentation [here](https://ross.readthedocs.io/en/latest/index.html).
23-
The documentation provides the [installation procedure](https://ross.readthedocs.io/en/latest/getting_started/installation.html),
24-
[a tutorial](https://ross.readthedocs.io/en/latest/tutorials/tutorial_part_1.html),
25-
[examples](https://ross.readthedocs.io/en/latest/discussions/discussions.html) and the
26-
[API reference](https://ross.readthedocs.io/en/latest/references/api.html).
21+
You can try ROSS instantly in your browser:
2722

28-
# Questions
29-
If you have any questions, you can use the [Discussions](https://github.com/petrobras/ross/discussions) area in the repository.
23+
👉 [**Launch ROSS in Binder**](https://mybinder.org/v2/gh/petrobras/ross/main)
3024

31-
# 💡 ROSS GPT – Your Virtual Assistant for Rotordynamics
25+
Or install it locally:
26+
```bash
27+
pip install ross-rotordynamics
28+
```
3229

33-
Meet [ROSS GPT](https://bit.ly/rossgpt), a virtual assistant specialized in the ROSS (Rotordynamic Open-Source Software) package. With ROSS GPT, you can:
30+
## 📚 Documentation
3431

32+
Access full documentation [here](https://ross.readthedocs.io).
33+
34+
Key sections:
35+
- [Installation guide](https://ross.readthedocs.io/en/latest/installation.html)
36+
- [User guide](https://ross.readthedocs.io/en/latest/user_guide/user_guide.html)
37+
- [API reference](https://ross.readthedocs.io/en/latest/api.html)
38+
- [Release notes](https://ross.readthedocs.io/en/latest/release_notes/release_notes.html)
39+
40+
## 🤖 ROSS GPT
41+
42+
Meet [ROSS GPT](https://bit.ly/rossgpt), the official AI assistant for the ROSS package. With ROSS GPT, you can:
3543
- Create and modify rotor models using ROSS in Python.
3644
- Request practical examples for modal analysis, Campbell diagrams, unbalance response, and more.
3745
- Get detailed technical explanations on elements such as shafts, disks, bearings, and couplings.
3846

39-
Access [ROSS GPT here](https://bit.ly/rossgpt) and enhance your modeling workflow with expert automated support!
47+
## ❓ Support & Questions
48+
49+
If you have **questions**, need **guidance**, or want to **discuss ideas**, please use the [**Discussions**](https://github.com/petrobras/ross/discussions) tab.
50+
51+
If you encounter a **bug**, experience unexpected behavior, or want to **request a new feature**, please open an [**Issue**](https://github.com/petrobras/ross/issues) describing the problem and how to reproduce it.
4052

53+
## 🤝 Contributing
4154

42-
# Contributing to ROSS
4355
ROSS is a community-driven project. If you want to contribute to the project, please
44-
check [CONTRIBUTING.md](https://github.com/petrobras/ross/blob/main/CONTRIBUTING.md).
56+
check [CONTRIBUTING.md](https://github.com/petrobras/ross?tab=contributing-ov-file).
4557

4658
The code has been initially developed by Petrobras in cooperation with the Federal University of Rio de Janeiro (UFRJ)
4759
with contributions from the Federal University from Uberlândia (UFU).

ross/rotor_assembly.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -735,8 +735,14 @@ def add_nodes(self, new_nodes_pos):
735735
for i in range(len(target_elements)):
736736
elem = target_elements[i]
737737

738-
left_elem = elem.create_modified(L=(elem.L - new_elems_length[i]))
739-
right_elem = elem.create_modified(L=new_elems_length[i], n=(elem.n + 1))
738+
left_length = elem.L - new_elems_length[i]
739+
id_interp = np.interp(left_length, [0, elem.L], [elem.idl, elem.idr])
740+
od_interp = np.interp(left_length, [0, elem.L], [elem.odl, elem.odr])
741+
742+
left_elem = elem.copy(L=left_length, idr=id_interp, odr=od_interp)
743+
right_elem = elem.copy(
744+
L=new_elems_length[i], idl=id_interp, odl=od_interp, n=(elem.n + 1)
745+
)
740746

741747
if left_elem.n != prev_left_node:
742748
for elm in elements:

ross/shaft_element.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1171,7 +1171,7 @@ def _patch(self, position, check_sld, fig, units):
11711171

11721172
return fig
11731173

1174-
def create_modified(self, **attributes):
1174+
def copy(self, **attributes):
11751175
"""Return a new shaft element based on the current instance.
11761176
11771177
Any attribute passed as an argument will be used to modify the corresponding

0 commit comments

Comments
 (0)