MachUp 4 to MachUpX

158 views
Skip to first unread message

Mathiu Berrazueta

unread,
May 21, 2021, 4:54:49 PM5/21/21
to MachUp Forum
Hello, I am new to aerodynamics. I want to solve a wing in MachUpX, I can do it in MachUp4 but now I don't know how to set the json file to run in Python.
I installed MachUpX and ran examples with no problems.

Can anybody help me please.
Captura de pantalla machup4.png

Cory

unread,
May 22, 2021, 11:55:01 AM5/22/21
to MachUp Forum
MachUp 4 input files are not compatible with MachUpX. You'll need to translate the input file into the format MachUpX recognizes. They are similar, but there are also some significant differences. It's all explained in the docs (https://machupx.readthedocs.io/en/latest/).

Lucas

unread,
May 22, 2021, 1:03:13 PM5/22/21
to MachUp Forum
Also the lab made a great video to tintroduce everything : https://www.youtube.com/watch?v=KLZWTqD8GhM&t=1032s
A good start is to look at the examples available in the file you download, then you modify it to suit your case.

Mathiu Berrazueta

unread,
May 26, 2021, 9:12:05 PM5/26/21
to MachUp Forum

Thanks for answering me.

I am running the tutorial example, but I have this error.

Captura de pantalla 2021-05-26 200859.png
I attach the files.
Please can you explain to me what is wrong?
scene.json
glider.json
example.py

Lucas

unread,
May 27, 2021, 3:38:05 AM5/27/21
to MachUp Forum
Hi,

First, this error means that the algorithm cannot achieve convergence within the maximum iteration limit. To have a better understanding in the convergence you shoud add verbose=True in solve_forces parameters. It shows that indeed there is  a problem that will not be resolved by increasing number of iterations.


After testing I saw that the problem comes from interaction between the h_stab and v_stab, removing the v_stab resolves the problem. To keep the v_stab, you sometimes like in this case need a gap between it and the h_stab. To do so, in the connect_to section, replace :
"dx": -5.0
by
"dx": -5.0,
"dz": -0.1

I don't know why it ran fine on the video.

Mathiu Berrazueta

unread,
May 27, 2021, 12:26:20 PM5/27/21
to MachUp Forum
Thank you so much.
Reply all
Reply to author
Forward
0 new messages