jviquerat / lbm

A simple full-python 2D lattice-boltzmann code
MIT License
166 stars 26 forks source link

about obstacle #17

Closed EDITH666 closed 1 year ago

EDITH666 commented 1 year ago

hi,I‘m a beginner of LBM,i want to ask u a basic question, if i want to change the type of the obstacle how can i define my program, after trying several times,it is still something wrong in shape_type.

jviquerat commented 1 year ago

Hi, could you elaborate on your issue ? Please provide an example of what you're trying to do and what error message you get

EDITH666 commented 1 year ago

I have 2 questions 1)If I want to add a property of deflection angle in the Obstacle class, for example, if I want the initialized square object to have a deflection angle of 60 degrees, how should I modify the program?In my previous attempt, I tried to add a property of type 'angle' in the Obstacle class and made the necessary changes in the subsequent program, but the drawn shape did not deflect。

EDITH666 commented 1 year ago

2)How can I remove the type restriction on the Obstacle class? For example, if I want to simulate irregular shapes, can I simply remove the type parameter

jviquerat commented 1 year ago

@EDITH666 you should check and modify the src/utils/shapes.py file to implement your modifications

EDITH666 commented 1 year ago

thanks for your answer!

EDITH666 commented 1 year ago

Excuse me to ask another question, I changed the maximum simulation time during simulation but the generated picture did not change What is the reason for this (is it to modify the t variable in the lattice file)

jviquerat commented 1 year ago

It all depends on the case you are considering, if you are run a low-reynolds case it is likely that the flow pattern converges to a static solution