Code Monkey home page Code Monkey logo

sph's Introduction

Smoothed Particle Hydrodynamics(SPH)(中文文档)

fpm msys2-fpm

A community-driven open source smoothed particle hydrodynamics (SPH) code, the starting code version is derived from the textbook "Smooth Particle hydrodynamics - A Meshfree Particle Method".

Item Info
Version 0.0.2
License BSD 3-Clause
Copyright Copyright (c) 2021 SPH Contributors

Get Started

Get the Code

git clone https://github.com/zoziha/SPH.git
cd SPH

Build with fortran-lang/fpm

FPM is a community-driven Fortran language package manager and code build system, suitable for c/c++/fortran code construction. You can build the code with the provided fpm.toml:

cd data && mkdir all && mkdir paraview
fpm build
# SPH main program
fpm run sph --profile release
# SPH post-processing program for ParaView
fpm run vtk

Links

sph's People

Contributors

zoziha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

sph's Issues

Build fails on Sonoma: `Error: Procedure 'virt_part' called with an implicit interface at (1) [-Werror=implicit-interface]`

[ 16%]                single_step.f90
 + gfortran -c ././src/single_step.f90   -O3 -funroll-loops -Wimplicit-interface -fPIC -fmax-errors=1 -fcoarray=single -fimplicit-none -Werror=implicit-interface -ffree-form -I././src -J build/gfortran_E4DE965427EE3A32 -Ibuild/gfortran_E4DE965427EE3A32 -o build/gfortran_E4DE965427EE3A32/SPH/src_single_step.f90.o
././src/single_step.f90:96:85:

   96 |         call virt_part(itimestep, ntotal, nvirt, hsml, mass, x, vx, rho, u, p, itype)
      |                                                                                     1
Error: Procedure 'virt_part' called with an implicit interface at (1) [-Werror=implicit-interface]
compilation terminated due to -fmax-errors=1.
[ 20%]                single_step.f90  done.

././src/single_step.f90:96:85:

   96 |         call virt_part(itimestep, ntotal, nvirt, hsml, mass, x, vx, rho, u, p, itype)
      |                                                                                     1
Error: Procedure 'virt_part' called with an implicit interface at (1) [-Werror=implicit-interface]
compilation terminated due to -fmax-errors=1.
<ERROR> Compilation failed for object " src_single_step.f90.o "
<ERROR> stopping due to failed compilation
STOP 1
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_fortran_sph/sph/work/sph-6d855bdd2f0fcaf0bfe1ed5e214f186e3f1f7d8c" && /opt/local/bin/fpm install --verbose --prefix="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_fortran_sph/sph/work/opt/local" --profile="release" 
Exit code: 1

添加热传导方程求解的支持

基于某个群友的需求,可能在之后的某个时间,添加对热传导方程求解的支持!📌

参考文献

[1] Simulations of droplet spreading and solidification using an improved SPH model.
[2] Multiphase SPH modelling of supercolled large droplets freezing on aircraft surfaces.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.