Skip to content

Commit

Permalink
[SPRINT 3] - Final project proposal. Stopped cout call for performanc…
Browse files Browse the repository at this point in the history
…e analysis. Enabled viscosity calculation
  • Loading branch information
Trung Le committed Apr 16, 2016
1 parent cb967c7 commit ca72a49
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
# Korra Fluid Solver, CIS 563, University of Pennsylvania, Spring 2016

[Youtube Link](https://youtu.be/QeSkB5jceCE)
![](https://s3-us-west-2.amazonaws.com/trle/SPHSolverCPP/SPHSnapShotFullRender_SkyLight.jpg)
![](https://s3-us-west-2.amazonaws.com/trle/SPHSolverCPP/render_full_angled.jpg)
[![Youtube Link](https://s3-us-west-2.amazonaws.com/trle/SPHSolverCPP/SPHSolverYoutubePreview.png)](https://youtu.be/QeSkB5jceCE)
![Rendered 1](https://s3-us-west-2.amazonaws.com/trle/SPHSolverCPP/SPHSnapShotFullRender_SkyLight.jpg)
![Rendered 2](https://s3-us-west-2.amazonaws.com/trle/SPHSolverCPP/render_full_angled.jpg)
![GUI](https://s3-us-west-2.amazonaws.com/trle/SPHSolverCPP/GUI_screenshot.png)

## Update April 15 (Final project)

For the proposal of the final project, I want to implement a real time interactive IISPH Solver based on the following papers:
- [A Parallel Architecture for IISPH Fluids](https://graphics.ethz.ch/~sobarbar/papers/Sol14b/Sol14b.pdf) by Felix Thaler, Barbara Solenthaler, and Markus Gross. [Reference video](https://youtu.be/8ikKE4cM_Kk)
- [Real-Time Incompressible Fluid Simulation on the GPU](http://www.hindawi.com/journals/ijcgt/2015/417417/) by Xiao Nie, Leiting Chen, and Tao Xiang


## Update April 10 (Sprint 3)

Expand All @@ -11,6 +19,7 @@
- OpenVDB export + meshing
- Solid interaction
- Fluid tank
- Ability to save screenshot every frame into bmp

### Incomplete features:
- IISPH
Expand Down
5 changes: 2 additions & 3 deletions src/fluidSolver/SPHSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ SPHSolver::Update(
// -- Calculate force field
for (FluidParticle* p : m_particles) {
this->CalculatePressureForceField(p);
// this->CalculateViscosityForceField(p);
this->CalculateViscosityForceField(p);
}

// -- Update particles
Expand All @@ -141,7 +141,6 @@ SPHSolver::Update(

double endTime = glfwGetTime();
double deltaTime = double(endTime - startTime);
cout << to_string(deltaTime) << endl;
}

void
Expand Down Expand Up @@ -257,7 +256,7 @@ SPHSolver::CalculateViscosityForceField(
glm::vec3 tempVisForce = (neighbor->Velocity() - particle->Velocity()) * laplacianKernelViscous / neighbor->Density();
viscosityForce += tempVisForce;
}
viscosityForce = viscosityForce * FluidParticle::mass * m_viscosity;
viscosityForce = viscosityForce * FluidParticle::mass * FluidParticle::mass * m_viscosity * 0.01f;
particle->SetViscosityForce(viscosityForce);
}

Expand Down
2 changes: 1 addition & 1 deletion src/scene/scene_tank.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"centerY": 0.2,
"centerZ": 0.0
},
"tankHeight": 0.5,
"tankHeight": 0.3,
"stiffness": 10,
"viscosity": 0.0,
"mass": 0.125,
Expand Down

0 comments on commit ca72a49

Please sign in to comment.