Code Monkey home page Code Monkey logo

sphexample's People

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  avatar  avatar

Watchers

 avatar  avatar

sphexample's Issues

Error wher try Pkg.add

When:

Pkg.add(url="https://github.com/AhmedSalih3d/SPHExample.git")
Activating new project at `C:\Users\vsarn\.julia\environments\SPHExample`

     Cloning git-repo `https://github.com/AhmedSalih3d/SPHExample.git`
    Updating git-repo `https://github.com/AhmedSalih3d/SPHExample.git`
ERROR: expected a `name` entry in project file at `C:\Users\vsarn\AppData\Local\Temp\jl_I7i58B\Project.toml`

Simple optimizatoion

Thank you for previous reaction on issues, now it work fine!

for (iter,L) in collect(enumerate(list))

I think you can simple change

for (iter,L) in collect(enumerate(list))

to

for (iter,L) in enumerate(list)

and

https://github.com/AhmedSalih3d/SPHExample/blob/414bf2adcb13b20abce9453b1f73acdbc7b1c909/src/TimeStepping.jl#L10C9-L10C82

and something like this

 visc  = maximum(abs.(h* dot.(v,points) ./ (dot.(points,points) .+ eta2)))

to

 visc  = maximum(@. abs(h * dot(v, points) / (dot(points, points) + eta2)))

and it may be more readable with better performance

also advice use ProgressMeter:

import ProgressMeter: @showprogress

# ...

@showprogress for sim_iter = 1:NumberOfIterations

# ...

Error on run

Error when run MainSimulation, can't find update! nowhere

ERROR: UndefVarError: update! not defined
Stacktrace:
 [1] RunSimulation(; SaveLocation::String, SimulationName::String, NumberOfIterations::Int64, OutputIteration::Int64)
   @ Main c:\Users\vsarn\github\SPHExample\src\MainSimulation.jl:104
 [2] top-level scope
   @ c:\Users\xxx\github\SPHExample\src\MainSimulation.jl:168

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.