Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while running the flappingwing function #22

Open
M4H1-K opened this issue Feb 26, 2024 · 3 comments
Open

Error while running the flappingwing function #22

M4H1-K opened this issue Feb 26, 2024 · 3 comments

Comments

@M4H1-K
Copy link

M4H1-K commented Feb 26, 2024

While running the flappingwing function, it gives the following error:

julia> flappingwing()
*******************************************************************
START ****************	2024-02-26T15:01:37.883
*******************************************************************
ERROR: UndefVarError: PP not defined
Stacktrace:
 [1] generate_eagle(; gamma2::Float64, gamma3::Float64, n::Int64, fdom_n::Int64, Vinf::Vector{Float64}, num::Int64, save_path::Nothing, save_fdom::Bool, openParaview::Bool, generate_fdom::Bool, solve::Bool)
   @ Main ./REPL[149]:174
 [2] flappingwing(; verbose::Bool, save_fdom::Bool, num_strikes::Int64, nsteps::Int64, plot_local_flap_vel::Bool, prompt::Bool, flaps_per_sec::Float64, save_path::String)
   @ Main ./REPL[146]:81
 [3] flappingwing()
   @ Main ./REPL[146]:1
 [4] top-level scope
   @ REPL[155]:1

PP is used in the following code snippet:

  # ---------------- FLUID DOMAIN --------------------------
  P_min = [0, -fdom_y_len/2, 0]
  P_max = [fdom_x_len, fdom_y_len/2, fdom_z_len]
  fdom = vlm.PP.FluidDomain(P_min, P_max, fdom_NDIVS)
  fdom_O = vlm.countertransform(b_O , inv(sys_Oaxis), sys_O)
  fdom_O += -[1, 0, 0]*fdom_x_len/14  - [0, 0, 1]*fdom_z_len*1/2
  # fdom_Oaxis = sys_Oaxis
  fdom_Oaxis = [1.0 0 0; 0 1 0; 0 0 1]
  vlm.PP.setcoordsystem(fdom, fdom_O, fdom_Oaxis)
  # --------------------------------------------------------

However, I could not find any function called "PP" in the VLM src files. Can you please guide me on how to resovle this issue?

@EdoAlvarezR
Copy link
Collaborator

EdoAlvarezR commented Feb 27, 2024

The examples in this repo are outdated and not supported. FLOWVLM now works just as a dependency of FLOWUnsteady, which provides the same capabilities that were first prototyped in the flappingwing example. I'd recommend trying to set up a your flapping wing simulation with FLOWUnsteady instead (use the tutorials in the docs as a starting point).

@M4H1-K
Copy link
Author

M4H1-K commented Mar 14, 2024

Thank you so much!

@M4H1-K
Copy link
Author

M4H1-K commented May 16, 2024

I was able to simulate the flapping bird using FLOWUnsteady, but the values obtained for cl and cd are incorrect (image is attached below).
Can you please guide me on how to calculate lift for this case?

fb_hf_s.mp4

output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants