Skip to content

Course project for "Physics-Based Simulation" (Spring 2023) at Tsinghua University, instructed by Prof. Tao Du. This project uses ray tracing and FEM to simulate optical waveguide-based tactile sensors, modeling silicone rubber deformation and optical power changes under force inputs.

Notifications You must be signed in to change notification settings

sq2100/OpticalWaveguideSimulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Ray Tracing and FEM-based Simulation of Optical Waveguide-based Tactile Sensors

Author: Shao, Qi
Course: Physics-Based Simulation (Spring 2023)
Instructor: Prof. Tao Du
Institution: Tsinghua University

This repository contains a 2D simulation project demonstrating the use of ray tracing and finite element methods (FEM) for modeling optical waveguide-based tactile sensors. The project allows users to visualize and interact with a simulated tactile sensor.

Dependencies

This project requires the following packages:

  • pygmsh==7.1.17
  • taichi==1.5.0

Platform

The project was developed and tested on Windows 11 with the CUDA backend for GPU acceleration.

Running the Simulation

To run the simulation, use the following command:

python main.py

Demonstration

  1. Demo 1: Shows the adjustment of the optical waveguide shape.
    Demo 1

  2. Demo 2: Shows real-time interaction with objects generated using the mouse.
    Demo 2

Acknowledgments

This project is based on the knowledge and materials provided in the Physics-Based Simulation course, taught by Prof. Tao Du at Tsinghua University. The following references and resources were used during development:

  • "Ray Tracing from Scratch" by HK-Shao (link)
  • "Lecture 08 of Taichi Graphics Course S1: Elastic Object Simulation 01" by Tiantian Liu (link)

About

Course project for "Physics-Based Simulation" (Spring 2023) at Tsinghua University, instructed by Prof. Tao Du. This project uses ray tracing and FEM to simulate optical waveguide-based tactile sensors, modeling silicone rubber deformation and optical power changes under force inputs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages