Replies: 2 comments 14 replies
-
Hi, Could you upload the full script of the run code ? |
Beta Was this translation helpful? Give feedback.
2 replies
-
Hi, did you solve this problem ? the script that you sent to me looks incomplete code as I think (if is not, sorry...) for example, [angle_frontwing(t) = [0, amplitudesin(2pifrequency * tttot), 0] # Tilt angle of front wing] the calculation operator(*) is missing and the [LoadError: Wing 'Rotor' already exists in the system. Use overwrite option.] error message pop on(in defining geometry) I hope you solve the problem... ㅠㅠ Thank you. |
Beta Was this translation helpful? Give feedback.
12 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hello, I am getting this error when running Simulation. How can I solve this error.?
uns.run_simulation(simulation, nsteps;
# ----- SIMULATION OPTIONS -------------
Vinf=Vinf,
rho=rho, mu=mu, sound_spd=speedofsound,
# ----- SOLVERS OPTIONS ----------------
p_per_step=p_per_step,
max_particles=max_particles,
vpm_integration=vpm_integration,
vpm_viscous=vpm_viscous,
vpm_SFS=vpm_SFS,
sigma_vlm_solver=sigma_vlm_solver,
sigma_vlm_surf=sigma_vlm_surf,
sigma_rotor_surf=sigma_rotor_surf,
sigma_vpm_overwrite=sigma_vpm_overwrite,
sigmafactor_vpmonvlm=sigmafactor_vpmonvlm,
vlm_rlx=vlm_rlx,
hubtiploss_correction=hubtiploss_correction,
shed_starting=shed_starting,
shed_unsteady=shed_unsteady,
unsteady_shedcrit=unsteady_shedcrit,
omit_shedding=omit_shedding,
extra_runtime_function=runtime_function,
# ----- RESTART OPTIONS -----------------
restart_vpmfile=restart_file,
# ----- OUTPUT OPTIONS ------------------
save_path=save_path,
run_name=run_name,
save_wopwopin=true, # <--- Generates input files for PSU-WOPWOP noise analysis
);
Folder WakeInteractionOfRotor-example already exists. Remove? (y/n) y
START WakeInteractionOfRotor-example/WakeInteractionOfRotor-example_pfield
2023-06-13T11:21:37.181
ERROR: KeyError: key "Gamma" not found
Stacktrace:
[1] getindex(h::Dict{String, Any}, key::String)
@ Base ./dict.jl:498
[2] precalculations(self::FLOWUnsteady.UVLMVehicle{1, 1, Float64}, Vinf::Function, pfield::FLOWVPM.ParticleField{Float64, FLOWVPM.ReformulatedVPM{Float64}, FLOWVPM.Inviscid{Float64}, FLOWVPM.NoSFS{Float64}}, t::Float64, dt::Float64, nt::Int64)
@ FLOWUnsteady ~/.julia/packages/FLOWUnsteady/Jl5A6/src/FLOWUnsteady_vehicle_vlm.jl:159
[3] precalculations
@ ~/.julia/packages/FLOWUnsteady/Jl5A6/src/FLOWUnsteady_simulation_types.jl:151 [inlined]
[4] (::FLOWUnsteady.var"#runtime_function#161"{FLOWUnsteady.var"#runtime_function#149#162"{typeof(Vinf), Float64, Float64, Float64, FLOWUnsteady.var"#monitor#370"{FLOWUnsteady.var"#monitor#368#371"{Tuple{FLOWUnsteady.var"#monitor#370"{FLOWUnsteady.var"#monitor#368#371"{Tuple{FLOWUnsteady.var"#extra_runtime_function#338"{FLOWUnsteady.var"#extra_runtime_function#329#339"{typeof(L_dir), typeof(D_dir), Bool, FLOWUnsteady.var"#calc_aerodynamicforce#276"{FLOWUnsteady.var"#calc_aerodynamicforce#273#277"{Bool, FLOWUnsteady.var"#calc_aerodynamicforce_kuttajoukowski#285"{FLOWUnsteady.var"#calc_aerodynamicforce_kuttajoukowski#279#286"{Nothing, String, Nothing, Nothing, Bool, Nothing, Nothing, Nothing}}}}, Nothing, Nothing, Nothing, Nothing, String, String, Bool, FLOWUnsteady.var"#336#346", FLOWUnsteady.var"#337#347", Int64, Int64, Bool, FLOWVLM.Wing, typeof(Vinf), Float64, Float64, Float64, Float64, Int64, Float64}}, FLOWUnsteady.var"#extra_runtime_function#325"{FLOWUnsteady.var"#extra_runtime_function#323#326"{Float64, String, String, String, Bool, Bool, Int64, Int64, String, Vector{FLOWVLM.Rotor}, Float64, Float64, Int64, Int64}}}}}, typeof(wake_treatment_supress)}}}, Int64, Float64, Bool, Tuple{Tuple{Float64, Int64, Float64, Float64}, Tuple{Int64, Int64, Float64, Float64}}, Bool, Bool, Float64, Bool, Bool, Float64, Float64, Vector{Any}, Float64, Float64, Float64, Int64, Float64, String, String, Bool, Int64, Bool, Bool, FLOWUnsteady.Simulation{FLOWUnsteady.UVLMVehicle{1, 1, Float64}, FLOWUnsteady.KinematicManeuver{1, 1}, Float64}, FLOWVPM.ParticleField{Float64, FLOWVPM.ReformulatedVPM{Float64}, FLOWVPM.Inviscid{Float64}, FLOWVPM.NoSFS{Float64}}, Float64}})(PFIELD::FLOWVPM.ParticleField{Float64, FLOWVPM.ReformulatedVPM{Float64}, FLOWVPM.Inviscid{Float64}, FLOWVPM.NoSFS{Float64}}, T::Float64, DT::Float64; vprintln::FLOWVPM.var"#74#75"{Int64, Int64, FLOWVPM.var"#vprintln#114"{Bool, String}, Int64})
@ FLOWUnsteady ~/.julia/packages/FLOWUnsteady/Jl5A6/src/FLOWUnsteady_simulation.jl:277
[5] run_vpm!(pfield::FLOWVPM.ParticleField{Float64, FLOWVPM.ReformulatedVPM{Float64}, FLOWVPM.Inviscid{Float64}, FLOWVPM.NoSFS{Float64}}, dt::Float64, nsteps::Int64; runtime_function::FLOWUnsteady.var"#runtime_function#161"{FLOWUnsteady.var"#runtime_function#149#162"{typeof(Vinf), Float64, Float64, Float64, FLOWUnsteady.var"#monitor#370"{FLOWUnsteady.var"#monitor#368#371"{Tuple{FLOWUnsteady.var"#monitor#370"{FLOWUnsteady.var"#monitor#368#371"{Tuple{FLOWUnsteady.var"#extra_runtime_function#338"{FLOWUnsteady.var"#extra_runtime_function#329#339"{typeof(L_dir), typeof(D_dir), Bool, FLOWUnsteady.var"#calc_aerodynamicforce#276"{FLOWUnsteady.var"#calc_aerodynamicforce#273#277"{Bool, FLOWUnsteady.var"#calc_aerodynamicforce_kuttajoukowski#285"{FLOWUnsteady.var"#calc_aerodynamicforce_kuttajoukowski#279#286"{Nothing, String, Nothing, Nothing, Bool, Nothing, Nothing, Nothing}}}}, Nothing, Nothing, Nothing, Nothing, String, String, Bool, FLOWUnsteady.var"#336#346", FLOWUnsteady.var"#337#347", Int64, Int64, Bool, FLOWVLM.Wing, typeof(Vinf), Float64, Float64, Float64, Float64, Int64, Float64}}, FLOWUnsteady.var"#extra_runtime_function#325"{FLOWUnsteady.var"#extra_runtime_function#323#326"{Float64, String, String, String, Bool, Bool, Int64, Int64, String, Vector{FLOWVLM.Rotor}, Float64, Float64, Int64, Int64}}}}}, typeof(wake_treatment_supress)}}}, Int64, Float64, Bool, Tuple{Tuple{Float64, Int64, Float64, Float64}, Tuple{Int64, Int64, Float64, Float64}}, Bool, Bool, Float64, Bool, Bool, Float64, Float64, Vector{Any}, Float64, Float64, Float64, Int64, Float64, String, String, Bool, Int64, Bool, Bool, FLOWUnsteady.Simulation{FLOWUnsteady.UVLMVehicle{1, 1, Float64}, FLOWUnsteady.KinematicManeuver{1, 1}, Float64}, FLOWVPM.ParticleField{Float64, FLOWVPM.ReformulatedVPM{Float64}, FLOWVPM.Inviscid{Float64}, FLOWVPM.NoSFS{Float64}}, Float64}}, static_particles_function::FLOWUnsteady.var"#static_particles_function#10"{Bool, Float64, typeof(FLOWUnsteady.g_pressure), Nothing, String, String, String, Int64, FLOWVPM.ParticleField{Float64, FLOWVPM.ReformulatedVPM{Float64}, FLOWVPM.Inviscid{Float64}, FLOWVPM.NoSFS{Float64}}, FLOWUnsteady.UVLMVehicle{1, 1, Float64}, Float64, Float64, Bool}, save_path::String, create_savepath::Bool, run_name::String, save_code::String, nsteps_save::Int64, prompt::Bool, verbose::Bool, verbose_nsteps::Int64, v_lvl::Int64, save_time::Bool)
@ FLOWVPM ~/.julia/packages/FLOWVPM/WA9ug/src/FLOWVPM_utils.jl:115
[6] run_simulation(sim::FLOWUnsteady.Simulation{FLOWUnsteady.UVLMVehicle{1, 1, Float64}, FLOWUnsteady.KinematicManeuver{1, 1}, Float64}, nsteps::Int64; Vinf::typeof(Vinf), sound_spd::Float64, rho::Float64, mu::Float64, tquit::Float64, rand_RPM::Bool, extra_runtime_function::FLOWUnsteady.var"#monitor#370"{FLOWUnsteady.var"#monitor#368#371"{Tuple{FLOWUnsteady.var"#monitor#370"{FLOWUnsteady.var"#monitor#368#371"{Tuple{FLOWUnsteady.var"#extra_runtime_function#338"{FLOWUnsteady.var"#extra_runtime_function#329#339"{typeof(L_dir), typeof(D_dir), Bool, FLOWUnsteady.var"#calc_aerodynamicforce#276"{FLOWUnsteady.var"#calc_aerodynamicforce#273#277"{Bool, FLOWUnsteady.var"#calc_aerodynamicforce_kuttajoukowski#285"{FLOWUnsteady.var"#calc_aerodynamicforce_kuttajoukowski#279#286"{Nothing, String, Nothing, Nothing, Bool, Nothing, Nothing, Nothing}}}}, Nothing, Nothing, Nothing, Nothing, String, String, Bool, FLOWUnsteady.var"#336#346", FLOWUnsteady.var"#337#347", Int64, Int64, Bool, FLOWVLM.Wing, typeof(Vinf), Float64, Float64, Float64, Float64, Int64, Float64}}, FLOWUnsteady.var"#extra_runtime_function#325"{FLOWUnsteady.var"#extra_runtime_function#323#326"{Float64, String, String, String, Bool, Bool, Int64, Int64, String, Vector{FLOWVLM.Rotor}, Float64, Float64, Int64, Int64}}}}}, typeof(wake_treatment_supress)}}}, max_particles::Int64, max_static_particles::Nothing, p_per_step::Int64, vpm_formulation::FLOWVPM.ReformulatedVPM{Float64}, vpm_kernel::FLOWVPM.Kernel, vpm_UJ::typeof(FLOWVPM.UJ_fmm), vpm_SFS::FLOWVPM.NoSFS{Float64}, vpm_integration::typeof(FLOWVPM.euler), vpm_transposed::Bool, vpm_viscous::FLOWVPM.Inviscid{Float64}, vpm_fmm::FLOWVPM.FMM, vpm_relaxation::FLOWVPM.Relaxation{Float64}, vpm_surface::Bool, vlm_vortexsheet::Bool, vlm_vortexsheet_overlap::Float64, vlm_vortexsheet_distribution::typeof(FLOWUnsteady.g_pressure), vlm_vortexsheet_sigma_tbv::Nothing, vlm_rlx::Float64, vlm_init::Bool, hubtiploss_correction::Tuple{Tuple{Float64, Int64, Float64, Float64}, Tuple{Int64, Int64, Float64, Float64}}, wake_coupled::Bool, shed_unsteady::Bool, unsteady_shedcrit::Float64, shed_starting::Bool, shed_boundarylayer::Bool, boundarylayer_prescribedCd::Float64, boundarylayer_d::Float64, omit_shedding::Vector{Any}, sigma_vlm_solver::Int64, sigma_vlm_surf::Float64, sigma_rotor_surf::Float64, sigmafactor_vpm::Float64, sigmafactor_vpmonvlm::Int64, sigma_vpm_overwrite::Float64, restart_vpmfile::Nothing, save_path::String, run_name::String, create_savepath::Bool, prompt::Bool, verbose::Bool, v_lvl::Int64, verbose_nsteps::Int64, raisewarnings::Bool, debug::Bool, nsteps_save::Int64, nsteps_restart::Int64, save_code::String, save_horseshoes::Bool, save_static_particles::Bool, save_wopwopin::Bool)
@ FLOWUnsteady ~/.julia/packages/FLOWUnsteady/Jl5A6/src/FLOWUnsteady_simulation.jl:350
[7] top-level scope
@ REPL[715]:1
Beta Was this translation helpful? Give feedback.
All reactions