We’re updating our badges platform. Badge issuance is temporarily paused, but all completions are being recorded and will be fulfilled once the platform is live. Thank you for your patience.
3D Design

3D Design

Topics related to Ansys Discovery and Ansys SpaceClaim.

How to import a cloud image into a geometry for modeling

    • h395523899
      Subscriber

      I want to use other people's fluent results to conduct research. But I only have the result cloud, how do I convert this result cloud map into my workbench for modeling.



      At present, my idea is to use the software to read the graph of this cloud map, but I don't know how to import the coordinate data into the workbench for modeling.


       

    • Keyur Kanade
      Ansys Employee

      i assume you have an image. you can use this image to build the geometry in spaceclaim. check following. 


      https://www.youtube.com/watch?v=_vusNUzqOMk


      if this helps you, please mark this as 'is solution' to help others on forum. 

    • Keyur Kanade
      Ansys Employee

      here is another one. 


      https://www.youtube.com/watch?v=sM1RHK6UqBU


       

    • h395523899
      Subscriber

      I think this method is suitable for simple models, but my cloud image is more complicated, and it would be complicated to follow the picture.


      Is there any way to read the data directly from the distribution location collected on the cloud map.



      I don't know if you can see the cloud image I uploaded.

    • peteroznewman
      Subscriber

      What do the colors represent? What are you calling "geometry"?


      For example, if blue is void and all other colors are solid, that defines some geometry, but without a definition, it's just an image.

    • h395523899
      Subscriber

      Geometry is spaceclaim


      This figure is a cloud map of the concentration distribution of simulated liquid-carrying sand.


      I now want to build a model from this cloud map result. Simulate fluid flow conditions under these conditions.

    • peteroznewman
      Subscriber

      If the sand grains are impermeable, the liquid concentration would be zero.
      Does that mean the sand is red or blue in the image?


      The image is just pixels. Do you have the physical size of the image in mm?
      What is the diameter of one grain of sand?

    • h395523899
      Subscriber

      The red part is the high concentration part of the sand.


      My idea is to model the red part as a porous medium.


        There is no physical size data for the image yet, but I can read the red and blue position coordinate data on this image by other software.


      The diameter of the sand is around 0.5mm


       


      So my question is whether I can load the position coordinate data of the red and blue regions into the spaceclaim.

    • Rob
      Forum Moderator

      What do you want to model once you've built the geometry?  

    • peteroznewman
      Subscriber

      There are many colors between red and blue. You need to do some image processing and make this a binary image, just red and blue (or black and white). Do you know how to do that?


       

    • h395523899
      Subscriber

      Yes, there are a lot of colors between the clouds, but I don't need too precise cloud distribution. I can collect the position coordinates of the red and blue distributions on this cloud map by writing a program.


      Do you mean that if I can convert the color distribution of this image into a binary image, I can input it into the spaceclaim?

    • Rob
      Forum Moderator

      In SpaceClaim you can trace shapes manually: not sure I'd want to do that with this model. In bitmap format there are other tools that will extract shapes (typically for 3d scans) but I'm not sure they'll be as effective in 2d: they pick colour (grey) scale and extrapolate between slices. 

    • peteroznewman
      Subscriber

      If you open this image in matlab, there are image processing tools that can find the blobs of blue and the pixel coordinates of the edges of the blue blobs.  Do you have a higher resolution image than the one you posted above?


      To convert pixels to mm you must supply a scale factor, 1 pixel pitch = 0. mm.


      Then you could take the edge coordinates in mm of the blue blobs and make a 3D curve in DesignModeler; the Z coordinate would be 0. I have to investigate the SpaceClaim, it may be able to bring in a 2D curve.


       

    • Amine Ben Hadj Ali
      Ansys Employee

      This is the wrong community for that. Image processing is what you need. Go for Scilab or Matlab. If you have the fluent results you might create isosurface at threshold mass fraction and export to STL CAD format. 

Viewing 13 reply threads
  • The topic ‘How to import a cloud image into a geometry for modeling’ is closed to new replies.