Comments (5)
can you check if commit 3ce1942 on the develop branch solves this problem?
from celes.
I don't think so. In the lowest catch
block, CH
is used - but if convhull
fails, CH
is not available.
from celes.
you are right. the proposed code should now be able to correctly handle the case of collinear/coplanar particles, the case of not having pdist
available, and both these cases happening at once.
I spent some time trying to come up with an efficient drop-in replacement for pdist
, but then realized that this is probably an overkill. in most cases we can just use a reasonable overestimation of maxParticleDistance
calculated as sqrt(sum((min(pos)-max(pos)).^2))
.
actually, it would be probably OK to just use this simple line of code to replace compute_maximal_particle_distance
altogether, if you feel like to.
from celes.
Nice, this is the diagonal of a cuboid containing all particles, right?
from celes.
that's exactly it. worst case scenario, we are overestimating maxParticleDistance by some +70% and the computational cost remains negligible for arbitrary number of particles.
from celes.
Related Issues (20)
- Save / Load method in simulation class HOT 4
- Animations HOT 1
- Interface to SMARTIES
- FFT acceleration through translation to grid
- Non-CUDA alternatives HOT 4
- Double precision
- Dipole sources
- Error: complex refractive index of medium HOT 3
- celes_initialField: pol index doesn't update when polarization changes HOT 8
- catch case of few spheres before calling convHull HOT 2
- Scattered field PWP is overwritten by total field PWP
- Nested Spheres HOT 3
- error about reshape when I change the number of spheres HOT 4
- Celes: solve "periodic particle array" problem with "plane wave sources". HOT 2
- For-Loops HOT 1
- Environment issue HOT 5
- Questions about CELES HOT 3
- Analysis of multiple wavelengths HOT 3
- Is this project maintaining? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from celes.