This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import ansys.fluent.core as pyfluent | |
| import pandas as pd | |
| # 1. Read your Excel file | |
| # Assuming columns: 'Mach', 'T_total', 'P_total', 'k', 'omega', 'viscosity' | |
| df = pd.read_excel('Ansys - 10k Rocket.xlsx') | |
| # 2. Launch Fluent | |
| # Because this runs inside SLURM, PyFluent automatically grabs the 32 cores you requested | |
| solver = pyfluent.launch_fluent(precision="double", dimension=3, mode="solver") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import asyncio | |
| import google.generativeai as genai | |
| # Load API | |
| genai.configure(api_key="YOUR_API_KEY") | |
| # In-memory "database" for the symposium | |
| ROSTER = { | |
| "Dr. Sid", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import math | |
| import os | |
| import time | |
| import socket | |
| import threading | |
| import pygame | |
| pygame.init() | |
| pygame.joystick.init() | |
| joystick = pygame.joystick.Joystick(0) |