Closed rcvalerio closed 1 month ago
This is what we came up with together:
wind_tunnel = windtunnel.WindTunnel(dimensions = (20, 10, 8)) # (length, width, height)
# calling with empty arguments assumes the default dimensions
# wind_tunnel = windtunnel.WindTunnel()
for angle in range(360):
transforms = wind_tunnel.set_object(
object_path="assets/f1_car.obj",
rotate_z_degrees=angle,
normalize=True,
center=True)
# wind_tunnel.display()
for wind_speed_ms in [10, 30, 50]:
# Needs to verify that insert_object was called already
task = wind_tunnel.simulate(wind_speed_ms,
num_iterations=50,
resolution=3,
# inputs_base_dir="./inductiva_input", # if user passes None, we don't save the inputs (it just stays in the temp dir)
)
Solved by #13
Current:
Has no inverse transformation:
Add normalization parameter #9 :
Return is weird but simulate is intuitive:
Add normalization parameter and dict return :
Return is weird but simulate is intuitive:
Add normalization before simulate:
Code becomes complex, mesh dependency, return is good: