We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Th cone geometry in the API returns a semielipsoidal shape instead of a cone:
Cone(float64, float64) Shape 3D Cone with diameter and height in meter. The top of the cone points in the +z direction. x
The equation in the file shape.go is not the one of a cone: https://github.com/mumax/3/blob/e45ea8b62bc544ec6df67648c1b72a3bbfd4f17f/engine/shape.go
// 3D Cone with the vertex down.
func Cone(diam, height float64) Shape {
return func(x, y, z float64) bool { return z >= 0 && sqr64(x/diam)+sqr64(y/diam)+0.25*sqr64(z/height) <= 0.25 }
}
The text was updated successfully, but these errors were encountered:
Here a minimal code and a snapshot of the geometry.
Nx:= 60 Ny:= 60 Nz:= 60 h:= 400.0e-9 SetGridsize(Nx,Ny,Nz) SetCellsize(600.0e-9/Nx, 600.0e-9/Ny, 600.0e-9/Nz)
coneshape:= cone( 600.0e-9, 300.0e-9).Transl(0,0,-300.0e-9)
SetGeom(coneshape) save(geom) snapshot(geom)
Sorry, something went wrong.
No branches or pull requests
Th cone geometry in the API returns a semielipsoidal shape instead of a cone:
Cone(float64, float64) Shape
3D Cone with diameter and height in meter. The top of the cone points in the +z direction. x
The equation in the file shape.go is not the one of a cone: https://github.com/mumax/3/blob/e45ea8b62bc544ec6df67648c1b72a3bbfd4f17f/engine/shape.go
// 3D Cone with the vertex down.
func Cone(diam, height float64) Shape {
}
The text was updated successfully, but these errors were encountered: