Comments (9)
For the CUDA problem, I have never encountered this before. @mohamed82008 I thought we've got rid of all CUDA dependencies?
I think that may be GLMakie's fault.
from topopt.jl.
@pitipatw PR #140 starts to support visualize(problem; cell_colors=color_per_cell)
where color_per_cell
is a vector of dimension length(x)
. You can also change the color scheme to make sure it matches red for compression and blue for tension scheme by changing the default colormap=ColorSchemes.Spectral_10
.
The only caveat is that you have to compute the per-cell stress from the FEA solver, and pass it into cell_colors
.
from topopt.jl.
Im currently using TopOpt 0.7.0 but still getting "got unsupported keywords "cell_color", "colormap".
I saw these keywords written in the visualization.jl file too.
I merged #140 to my local machine.
Is there any other possible version conflict I could look for?
from topopt.jl.
update, after I merged #140, the same script cant find the "visualize"
from topopt.jl.
Can you try ] add Example#master
?
Also, you have to open a new Julia session after you pull a new version to trigger compilation for the visualization module.
from topopt.jl.
I tried ] add Example#master
, still cant find the "visualize".
I also notice an error about CUDA.jl outdated, so I updated it and now it seems that either Julia or Visual Studio can't find my CUDA runtime library.
I will keep using ver0.6.0 for now.
from topopt.jl.
@pitipatw the visualize
module is only loaded when Makie
is imported as well. Try this:
using Makie, GLMakie, TopOpt
using TopOpt.TrussTopOptProblems.TrussVisualization: visualize
Also, what julia version you are using?
For the CUDA problem, I have never encountered this before. @mohamed82008 I thought we've got rid of all CUDA dependencies?
from topopt.jl.
@yijiangh Thank you for the help
I already have the
using Makie, GLMakie, TopOpt TopOpt.TrussTopOptProblems.Trussvisualization:visualize
on top of the script.
The script I'm using is basically the truss 3d example with some adjustments for input from GH through JSON.
The second line is the one that throws the error of can't find visualize
from topopt.jl.
I'm on Julia 1.8.5
from topopt.jl.
Related Issues (20)
- Missing CITATION.bib HOT 2
- Issues installing when QuadraticModels.jl is installed HOT 6
- Replace INP to Ferrite parser
- Wrap the output of each function in a struct and use for dispatch HOT 1
- Remove SIMP and ContinuationSIMP structs HOT 1
- Load swapping and unrelated results HOT 1
- Nonlinear FEA - material and geometric nonlinearity HOT 6
- Use LinearSolve.jl
- Bring back adaptive CSIMP
- Visualizer not displaying supports for problems parsed from `.inp` files
- [doc] explain truss input file format in documentation HOT 3
- Make sliders in the visualizers ratio of the problem's overall dimension instead of a physical dimension directly HOT 1
- StressTruss missing "getdim" HOT 1
- Makie and GLMakie problem HOT 1
- Function for fixing dimensions of x according to the black and white entry of the problem
- using type TrussFEACrossSec{Float64} with TrussSolver
- Setting up a TopOpt problem from scratch with a given Ferrite mesh and boundary conditions HOT 4
- Fix documentation build with strict Documenter
- Correct format of .inp file 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 topopt.jl.