Showing posts with label Physics. Show all posts
Showing posts with label Physics. Show all posts

Tuesday, September 12, 2023

Volume Fractions

Thesis

[1] Smooth Interface Reconstruction from Volume Fraction Data Using Variational
Techniques and Level Set Methods

https://escholarship.org/content/qt2466j56f/qt2466j56f_noSplash_4c9dcb1c6cacafb1bcdc4a7bab220630.pdf?t=odypru

 

Volume Fractions in Rectangular Grids



Analytical Relations Connecting Linear Interfaces and Volume Fractions in Rectangular Grids
http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.536.848&rep=rep1&type=pdf
[1] Markers - A front-tracking algorithm for accurate representation of surface tension (Zaleski)
https://hal.archives-ouvertes.fr/hal-01445441/document



[2] Level Set Methods (LSM)
[2.1] Tutorial Level Set vs Marching Methods https://math.berkeley.edu/~sethian/2006/Explanations/level_set_explain.html

[2.2-1] Part I (Def) https://wiseodd.github.io/techblog/2016/11/05/levelset-method/
[2.2-2] Part II(Application for segmentation) https://wiseodd.github.io/techblog/2016/11/20/levelset-segmentation/

Saturday, August 17, 2019

Fluid Simulation:Compile Position Based Dynamics


PositionBasedDynamics is a library for the physically-based simulation of rigid bodies, deformable solids and fluids.

mkdir build
cd build
cmake ..

vi ../Demos/CMakeLists.txt

find_package(OpenMP)
if (OPENMP_FOUND)
     set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
endif(OPENMP_FOUND)

New Challenges:
Cuda version https://github.com/eric1221bday/PBF_15418

https://github.com/ebirenbaum/ParticleSolver
https://github.com/StoneBird/CIS565-FinalProject
https://github.com/chiwsy/Position_Based_Fluids

Resources:
[1] PBD https://github.com/InteractiveComputerGraphics/PositionBasedDynamics/




OpenCL version
[1] https://github.com/bwiberg/position-based-fluids

$git clone https://github.com/bwiberg/position-based-fluids.git
$cd position-based-fluids
$git submodule update --init --recursive #call dependences
$cmake -DCMAKE_BUILD_TYPE=Debug ..







Friday, August 09, 2019

DualSPHysics Compile



Resources:
[1] code https://github.com/DualSPHysics/DualSPHysics
[2] scripts to execute models https://github.com/fincahuanaco/DualSPHysicsScripts


[3] https://dual.sphysics.org/index.php/downloads/
[4] https://dual.sphysics.org/files/3313/8753/4540/DualSPHysics_v3.0_GUIDE.pdf
[5] https://github.com/DualSPHysics/DualSPHysics/wiki/12.-Testcases#obc7

Update 2021

compile GPU version (CMakeLists.txt will find cuda, display ${CUDA_VERSION} to verify if is getting the right version).

See https://melhorum.blogspot.com/2021/03/cuda-8-on-linux18.html to install CUDA and requeriments.

on DualSPHysics/src/source


mkdir build

cd build

export CC=/usr/bin/gcc-5;CXX=/usr/bin/g++-5 #for cuda 8


export CC=/usr/bin/gcc-6;CXX=/usr/bin/g++-6 #for cuda 9

cmake ..

make In some cases you need to reduce cuda version to execute simulation. in case of GeForce GTX 460(with Driver Version: 390.59). I was forced to change from cuda9(supported) to cuda8(supported too) to execute simulations with around 360k particles.


Make Model

[1] https://www.freecadweb.org/




Monday, February 25, 2019

Thursday, November 08, 2018

Physics resources

Physic Courses
[1] Cursos de Graduação em Engenharia do ITA http://www.ief.ita.br/~rrpela/

Firefox open multiple private window

    /opt/firefox/firefox-bin --profile $(mktemp -d) --private-window www.google.com www.bing.com