ladybug-tools / butterfly

:butterfly: A light python API for creating and running OpenFoam cases for CFD simulation.
http://ladybug-tools.github.io/butterfly.html
GNU General Public License v3.0
248 stars 70 forks source link

Snappyhexmesh error, point is not within Mesh #233

Closed Christoffertpaulsen closed 7 years ago

Christoffertpaulsen commented 7 years ago

Hello

I tried create an outdoor wind simulation, for my own 3D model. I have used the example file as given with the installation, and tried an online tutorial by Mostapha. It worked fine with the example, but when I tried to do it on my own, the SnappyHexMesh component showed an error:"

  1. Solution exception: --> snappyHexMesh Failed! --> FOAM FATAL ERROR: Point (15.72323 63.68281 10.59472) is not inside the mesh or on a face or edge. Bounding box of the mesh:(-241 2.334047e+07 0) (69 2.334114e+07 103.5)

    From function static Foam::labelList Foam::refinementParameters::findCells(bool, const Foam::polyMesh&, const pointField&) in file snappyHexMeshDriver/refinementParameters/refinementParameters.C at line 206.

FOAM exiting"

I'm not sure what point it is talking about, any idea?

Christoffertpaulsen commented 7 years ago
skaermbillede 2017-05-09 kl 13 05 00
TheodoreGalanos commented 7 years ago

Hi @Christoffertpaulsen

OF is quite clear on the error. Your locationInMesh is not currently inside your boundary domain.

To solve this you can connect a boundingbox component to points output of the windTunnel component and then get the center point of that with a volume component. You can then connect the point from the volume component to the locationInMesh input of SHM component.

Also, make sure you are recreating a new case (e.g. adding a new filename) and not just running SHM on a new geometry without adjusting the previous inputs.

Let us know if that fixes things.

Kind regards, Theodore.

Christoffertpaulsen commented 7 years ago

Hey Theodore

Thank you, it got me a step further! But now when i changed the name to Air_simulation_hjulmagervej I encountered another error, with the component LoadProbesValue:

  1. Solution exception:Failed to load values: Failed to find probes folder folder at C:\Users\Christoffer\butterfly\air_simulation_hjulmagervej\postProcessing\probes

I checked if the folder was there, but I couldn't find the postProcessing folder.

TheodoreGalanos commented 7 years ago

@Christoffertpaulsen

I have a feeling your probes are under the previous folder name. If the mesh is the same you can move them to the new folder, at the requested location. If the mesh is different simply re-run your case with the new settings.

Kind regards, Theodore.

Christoffertpaulsen commented 7 years ago

Thank you Theodore so far. I really apprieciate it and the program! I just seem to not get it, because not it looks like the simulation is running. One minor thing is, that my model disapears when i try to run the component Solutions. Any idea why this happened?

Christoffertpaulsen commented 7 years ago

I actually figured out to simulate on another simple model. I had to change my Brep that went into the GenTestPts component. So that it had the right trimmed surface, matching to the model. But still I had some errors, so I would really like to send you my files, since the model seen in Rhino still disapears in some of the views and the resualt visualization does not work either. I hope you can assist me.

Kind regards Christoffer

mostaphaRoudsari commented 7 years ago

@Christoffertpaulsen can you upload your model here? or send your model to the grasshopper forum?

Christoffertpaulsen commented 7 years ago

I have uploaded my files to: http://www.grasshopper3d.com/group/ladybug/forum/topics/problems-with-butterfly-won-t-simulate-proberly

Christoffertpaulsen commented 7 years ago

I actually made it work, thank you! But it still seems that my 3D model dispears except from the perspective view. Furthermore I tried to keep on the simulations udklip 2 and got something out of it! But I would like the Legend to be visible as well, which I can not. Any solutions to how I can? I have attached a screenshot, of how it looks like, when I have set the component to preview.

Thank you!

mostaphaRoudsari commented 7 years ago

I close this issue in favor of the discussion on Grasshopper group.