CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM

blockMeshdict

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree3Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   June 14, 2017, 15:15
Default blockMeshdict
  #1
New Member
 
ABHINAVMOHAN
Join Date: Jun 2017
Posts: 15
Rep Power: 2
abhinavmohan is on a distinguished road
Point (3.0001 3.0001 0.43) is not inside the mesh or on a face or edge.
Bounding box of the mesh0 600 0) (2000 2000 3000)
getting this error
I guess it is a simple one !!!! \
thank you
abhinavmohan is offline   Reply With Quote

Old   June 14, 2017, 16:56
Default
  #2
Senior Member
 
M. C.
Join Date: May 2013
Location: Italy
Posts: 223
Rep Power: 10
student666 is on a distinguished road
Can you post your blockMeshDict?
student666 is offline   Reply With Quote

Old   June 14, 2017, 17:11
Default
  #3
Member
 
Brian Willis
Join Date: Mar 2011
Location: Cape Town, South Africa
Posts: 42
Rep Power: 8
Dipsomaniac is on a distinguished road
Your Y coordinate is not within the bounds.
Dipsomaniac is offline   Reply With Quote

Old   June 15, 2017, 06:59
Default
  #4
New Member
 
ABHINAVMOHAN
Join Date: Jun 2017
Posts: 15
Rep Power: 2
abhinavmohan is on a distinguished road
okay I have an STL file with bounding box coordinates
Bounding Box : (648.269 661.283 0) (1518.03 1708.36 2014.5)
how do I make sure that my STL file is inside that blockMesh?
abhinavmohan is offline   Reply With Quote

Old   June 15, 2017, 14:07
Default
  #5
Senior Member
 
M. C.
Join Date: May 2013
Location: Italy
Posts: 223
Rep Power: 10
student666 is on a distinguished road
Into your terminal type
Code:
Blockmesh
touch 1.foam
paraview 1.foam
Inside paraview
Code:
Apply
File --> open --> constant/triSurface/yourFile.stl
Apply
Just have a look

Last edited by student666; June 15, 2017 at 15:12.
student666 is offline   Reply With Quote

Old   June 19, 2017, 04:20
Default
  #6
New Member
 
ABHINAVMOHAN
Join Date: Jun 2017
Posts: 15
Rep Power: 2
abhinavmohan is on a distinguished road
thanks, man
abhinavmohan is offline   Reply With Quote

Old   June 19, 2017, 07:16
Default
  #7
New Member
 
ABHINAVMOHAN
Join Date: Jun 2017
Posts: 15
Rep Power: 2
abhinavmohan is on a distinguished road
convertToMeters 1;

vertices
(
(48 660 -2015)
(2000 660 -2015)
(2000 3000 -2015)
(48 3000 -2015)
(48 660 4000)
(2000 660 4000)
(2000 3000 4000)
(48 3000 4000)
);

blocks
(
hex (0 1 2 3 4 5 6 7) (20 20 20) simpleGrading (1 1 1)
);

edges
(
);

boundary
(
frontAndBack
{
type patch;
faces
(
(0 4 7 3)
(2 6 5 1)
);
}
inlet
{
type patch;
faces
(
(4 5 6 7)
);
}
outlet
{
type patch;
faces
(
(0 3 2 1)
);
}
lowerWall
{
type wall;
faces
(
(1 5 4 0)
);
}
upperWall
{
type patch;
faces
(
(3 7 6 2)
);
}
);




this is my blockMeshdict
i am still getting the same error
abhinavmohan is offline   Reply With Quote

Old   June 19, 2017, 16:29
Default
  #8
Senior Member
 
M. C.
Join Date: May 2013
Location: Italy
Posts: 223
Rep Power: 10
student666 is on a distinguished road
Quote:
Originally Posted by abhinavmohan View Post
okay I have an STL file with bounding box coordinates
Bounding Box : (648.269 661.283 0) (1518.03 1708.36 2014.5)
how do I make sure that my STL file is inside that blockMesh?
Bounding box above is the STL cube containing your STL file defined as the lower (coordinate) point (648.269 661.283 0) and higher (coordinate) point (1518.03 1708.36 2014.5) it is not your block generated by bockMeshDict.
So your blockMeshDict has to be a cube bigger that contains the bounding box of the STL file.

You have to rearrange position of the vertexes.

Some notes:
1 - I still can't figure out what you're trying to do, are you using snappyHexMesh?
2 - If I were you, I would have a further reading of the user guide..
3 - If point 2 is not enough I think that google can help you with this issue; by these times there are many video tutorials that can help you
4 - if point 1 is true, then https://www.google.it/url?sa=t&rct=j...G0TqQaKFG0MCGw ... it's a good starting point

Good luck.
student666 is offline   Reply With Quote

Old   June 20, 2017, 14:36
Default
  #9
New Member
 
ABHINAVMOHAN
Join Date: Jun 2017
Posts: 15
Rep Power: 2
abhinavmohan is on a distinguished road
Quote:
Originally Posted by student666 View Post
Bounding box above is the STL cube containing your STL file defined as the lower (coordinate) point (648.269 661.283 0) and higher (coordinate) point (1518.03 1708.36 2014.5) it is not your block generated by bockMeshDict.
So your blockMeshDict has to be a cube bigger that contains the bounding box of the STL file.

You have to rearrange position of the vertexes.

Some notes:
1 - I still can't figure out what you're trying to do, are you using snappyHexMesh?
2 - If I were you, I would have a further reading of the user guide..
3 - If point 2 is not enough I think that google can help you with this issue; by these times there are many video tutorials that can help you
4 - if point 1 is true, then https://www.google.it/url?sa=t&rct=j...G0TqQaKFG0MCGw ... it's a good starting point

Good luck.

i have read that i tried on the basis of it still cant figure this out would you please help me out
and yes i am using snappyHexMesh
as you can see that my stl file is inside bounding box.
i studied what you told me to according to the best of my knowledge i was able to work through my way espically with bonding box
the error which i get is
it is showing the same problem
i have attached my blockmeshdict
bounding box.PNG

bounding box2.PNG

error.PNG

b1.PNG

b2.PNG
abhinavmohan is offline   Reply With Quote

Old   June 20, 2017, 15:59
Default
  #10
Senior Member
 
M. C.
Join Date: May 2013
Location: Italy
Posts: 223
Rep Power: 10
student666 is on a distinguished road
Ok, so with this picture I can see that stl file is inside your background mesh, but openfoam is complaining about your
Code:
locationInMesh (3.0001 3.0001 0.48)
Have a look to the enclosed picture.
I build your backgoround mesh and the point that is not inside the mesh (the sphere).
It is now easier to see that the point is not inside the mesh...

You have to move your
Code:
locationInMesh
as long as the center of the point is inside your blockMesh...
Attached Images
File Type: jpg Screenshot_2017-06-20_22-16-40.jpg (81.6 KB, 7 views)
student666 is offline   Reply With Quote

Old   June 20, 2017, 16:25
Default
  #11
New Member
 
ABHINAVMOHAN
Join Date: Jun 2017
Posts: 15
Rep Power: 2
abhinavmohan is on a distinguished road
what all do you need?
abhinavmohan is offline   Reply With Quote

Old   June 20, 2017, 16:28
Default
  #12
Senior Member
 
M. C.
Join Date: May 2013
Location: Italy
Posts: 223
Rep Power: 10
student666 is on a distinguished road
Just edited my previous mesaage
student666 is offline   Reply With Quote

Old   June 20, 2017, 16:35
Default
  #13
New Member
 
ABHINAVMOHAN
Join Date: Jun 2017
Posts: 15
Rep Power: 2
abhinavmohan is on a distinguished road
Quote:
Originally Posted by student666 View Post
Just edited my previous mesaage
so all I do is set coordinates for locationInMesh?
what do you suggest I should put?
I tried putting coordinates which were inside but never seemed to work.
abhinavmohan is offline   Reply With Quote

Old   June 21, 2017, 17:18
Default
  #14
New Member
 
ABHINAVMOHAN
Join Date: Jun 2017
Posts: 15
Rep Power: 2
abhinavmohan is on a distinguished road
hey sorry to bother you again
but I tried everything it just doesn't work
abhinavmohan is offline   Reply With Quote

Old   June 21, 2017, 17:36
Default
  #15
Member
 
Brian Willis
Join Date: Mar 2011
Location: Cape Town, South Africa
Posts: 42
Rep Power: 8
Dipsomaniac is on a distinguished road
Can you upload your case folder perhaps?
Dipsomaniac is offline   Reply With Quote

Old   June 21, 2017, 17:40
Default
  #16
New Member
 
ABHINAVMOHAN
Join Date: Jun 2017
Posts: 15
Rep Power: 2
abhinavmohan is on a distinguished road
there you go
as you would have seen from previous conversation that i had with student 666
it seems like my stl file is very much inside the block but i cant figure this location in mesh thing
i have attached both the files
blockMeshDict.txt

snappyhexmesh.txt
abhinavmohan is offline   Reply With Quote

Old   June 21, 2017, 17:47
Default
  #17
Member
 
Brian Willis
Join Date: Mar 2011
Location: Cape Town, South Africa
Posts: 42
Rep Power: 8
Dipsomaniac is on a distinguished road
Try something like this

Code:
 locationInMesh (51.00235 662.000231 -2000.00234);
Dipsomaniac is offline   Reply With Quote

Old   June 21, 2017, 17:48
Default
  #18
New Member
 
ABHINAVMOHAN
Join Date: Jun 2017
Posts: 15
Rep Power: 2
abhinavmohan is on a distinguished road
same error sorry
abhinavmohan is offline   Reply With Quote

Old   June 21, 2017, 18:21
Default
  #19
Member
 
Brian Willis
Join Date: Mar 2011
Location: Cape Town, South Africa
Posts: 42
Rep Power: 8
Dipsomaniac is on a distinguished road
I can recreate your original error

Code:
--> FOAM FATAL ERROR: 
Point (3.0001 3.0001 0.43) is not inside the mesh or on a face or edge.
Bounding box of the mesh:(48 660 -2015) (2000 3000 4000)

    From function Foam::labelList Foam::refinementParameters::findCells(const Foam::polyMesh&) const
    in file snappyHexMeshDriver/refinementParameters/refinementParameters.C at line 103.

FOAM exiting
but when using the location which I specified earlier it disappears again. Unless you send through the full case, its tough to suggest anything else. I applied your blockMeshDict and most of the changes you made to the snappyHexMeshDict to the standard motorbike tutorial and have no problems.
Dipsomaniac is offline   Reply With Quote

Old   June 21, 2017, 18:45
Default
  #20
New Member
 
ABHINAVMOHAN
Join Date: Jun 2017
Posts: 15
Rep Power: 2
abhinavmohan is on a distinguished road
i am sending you my case through private message or you could provide me your email-id?
abhinavmohan is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
2:1 refined 2D blockMeshDict with mergePatchPairs? chrisb2244 OpenFOAM Native Meshers: blockMesh 0 December 2, 2014 00:52
blockMeshDict not Matching Boundary HassanDarian OpenFOAM Meshing & Mesh Conversion 0 March 19, 2014 14:30
OpenFOAM blockMeshDict sihaqqi OpenFOAM Native Meshers: blockMesh 2 February 1, 2013 04:49
PLease somebody help:problem while changing blockMeshDict file vivek070176 OpenFOAM Installation 1 June 11, 2010 17:51
A script for combining two blockMeshDict yingfeng OpenFOAM Native Meshers: blockMesh 0 August 26, 2009 16:05


All times are GMT -4. The time now is 15:15.