Git Product home page Git Product logo

Comments (9)

mohamed82008 avatar mohamed82008 commented on July 17, 2024 1

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.

yijiangh avatar yijiangh commented on July 17, 2024

@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.

pitipatw avatar pitipatw commented on July 17, 2024

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.

pitipatw avatar pitipatw commented on July 17, 2024

update, after I merged #140, the same script cant find the "visualize"

from topopt.jl.

yijiangh avatar yijiangh commented on July 17, 2024

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.

pitipatw avatar pitipatw commented on July 17, 2024

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.

yijiangh avatar yijiangh commented on July 17, 2024

@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.

pitipatw avatar pitipatw commented on July 17, 2024

@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.

pitipatw avatar pitipatw commented on July 17, 2024

I'm on Julia 1.8.5

from topopt.jl.

Related Issues (20)

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.