|
[Sponsors] |
Boundary Condition For Mapped Fields in OpenFOAM |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 28, 2013, 17:12 |
|
#21 |
Senior Member
Hasan K.J.
Join Date: Dec 2011
Location: Bristol, United Kingdom
Posts: 200
Rep Power: 15 |
I have seen it long ago when i started using snappyHexMesh
The geometry I am struggling with is is just a simple blade but it has a small step on top if i have attached the STL for a better idea about the geometry. just a small box around it - I am loosing bits and bobs of the step on the blade and the corners of the blade - and the step kinda disappears on the lower side of the blade :/ dunno what could cause that Thanks, Hasan K.J |
|
December 28, 2013, 17:40 |
|
#22 |
Senior Member
Hasan K.J.
Join Date: Dec 2011
Location: Bristol, United Kingdom
Posts: 200
Rep Power: 15 |
Hey Bruno,
So from the picture above, when i do mesh merging, i will have issues with the overlapping mesh right ? since i have lost a small bit of geometry and since the internal meshing is going to have that piece of geometry they will overlap and I am going to have issues, From what you had mention before - this is the AMI patch of the external mesh btw Thanks, Hasan K.J |
|
December 29, 2013, 15:48 |
|
#23 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Hasan,
Yes, that's going to be a problem. The tutorials I was implying from openfoamwiki.net were these: Quote:
Bruno
__________________
|
||
December 30, 2013, 16:17 |
|
#24 |
Senior Member
Hasan K.J.
Join Date: Dec 2011
Location: Bristol, United Kingdom
Posts: 200
Rep Power: 15 |
Hey Bruno
the above tutorials were beautiful would have given me a better idea if they had attached a SnapyHexDict file.. I have an another question. I was trying to stitch two mesh and when i did that it got stuck here and nothing is happening after that no error no nothing, what could be happening, i left it on the HPC for 8 hrs nothing happened. Code:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Create mesh for time = 0 Coupling partially overlapping patches Internal_Ext and Internal Resulting internal faces will be in faceZone Internal_ExtInternalCutFaceZone Any uncovered faces will remain in their patch Adding pointZone Internal_ExtInternalCutPointZone at index 0 Adding faceZone Internal_ExtInternalMasterZone at index 1 Adding faceZone Internal_ExtInternalSlaveZone at index 2 Adding faceZone Internal_ExtInternalCutFaceZone at index 3 Sliding interface parameters: pointMergeTol : 0.3 edgeMergeTol : 0.05 nFacesPerSlaveEdge : 5 edgeFaceEscapeLimit : 10 integralAdjTol : 0.15 edgeMasterCatchFraction : 0.4 edgeCoPlanarTol : 0.8 edgeEndCutoffTol : 0.0001 Reading all current volfields Hasan K.J |
|
December 30, 2013, 16:26 |
|
#25 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Hasan,
Quote:
By the way, please post code and output text from the screen/log, by using with the [CODE] markers, as explained in the respective link on my signature. Best regards, Bruno
__________________
|
||
December 30, 2013, 16:36 |
|
#26 |
Senior Member
Hasan K.J.
Join Date: Dec 2011
Location: Bristol, United Kingdom
Posts: 200
Rep Power: 15 |
Hey bruno,
- The mesh has 15mil+ cells - I am running it without a 0 folder. - I was running it on serial. - It has quite a bit of RAM had never had issue regarding that before so never even bothered to check how big was the ram per node on the HPC. - What should i do to run it in parallel the command i currently use to stitch it is stitchMesh -partial -toleranceDict toleranceDict -overwrite Internal_Ext Internal Thanks, Hasan K.J |
|
December 30, 2013, 16:42 |
|
#27 | |
Senior Member
Hasan K.J.
Join Date: Dec 2011
Location: Bristol, United Kingdom
Posts: 200
Rep Power: 15 |
Hey Bruno,
Regarding the SnappyHex Quote:
Thanks, Hasan K.J |
||
December 30, 2013, 17:08 |
|
#28 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Hasan,
I suggest that you test one of those stitching example cases from the other thread on that topic and check what are the steps it takes to stitch the mesh. Because that way you will know what is the next step that stitchMesh should have done for your case. stitchMesh can only be executed in serial mode. And 15 million cells is a lot for a single core to handle. You can try doing a simple test with 100 kcell, 500 kcell, 1 Mcell and see how much longer it takes with the increased number of cells. I'm guessing here, but expect the time it takes to be exponentially or geometrically proportional to the number of cells. I don't know what is the topology of the HPC machine/cluster you are using, so it might be sharing the remaining cores with other runs or the memory might be being shared among all machines, which would lead to pretty slow timings if 15 GB is shared among a 2 to 10 machines in a NUMA system. It's even possible that the process is freezing and is locked out by the HPC job scheduler, if the process takes too long, and gives priority to other runs. Essentially, there are too many unknowns, but the list above should help you isolate the problem. By the way: why are you stitching the mesh? Is it because you don't want to rely on AMI? Best regards, Bruno
__________________
|
|
December 30, 2013, 17:15 |
|
#29 |
Senior Member
Hasan K.J.
Join Date: Dec 2011
Location: Bristol, United Kingdom
Posts: 200
Rep Power: 15 |
- Oki i will start with my trial and error procedures
- I wanted to give it a Try stitching to see if it works, then AMI shouldn't be necessary - might aswell try it now and learn it for later use. - AMI is still my next option, just waiting for the results from the new BC that you suggested for my mapped case. - If the BC works, all of the above would be unnecessary for me Thanks, Hasan K.J |
|
December 31, 2013, 17:32 |
|
#30 |
Senior Member
Hasan K.J.
Join Date: Dec 2011
Location: Bristol, United Kingdom
Posts: 200
Rep Power: 15 |
Hey Bruno,
you are good in coding and you seem to have answer for anything and everything !! this would be my last question for this year so can please give it a try The question is here. http://www.cfd-online.com/Forums/ope...tml#post468240 Thanks, Hasan K.J |
|
January 3, 2014, 00:29 |
|
#31 |
Senior Member
Hasan K.J.
Join Date: Dec 2011
Location: Bristol, United Kingdom
Posts: 200
Rep Power: 15 |
Hey Bruno,
The results are here. The boundary conditions worked out well but not up to the mark. I am not getting the result that i want. I tired top slant - outlet inlet and bottom slant inlet outlet that you prescribed results were not good, the flow was ever so slightly trying to turn upwards (here i want it to turn downwards) - so figured ill reverse it so i used top slant - inlet outlet bottom slant - outlet inlet and outlet - outlet inlet I have image attached, the flow is not turning enough it kinda tries to exit asap with a higher velocity that it should be do you have any BC in mind for the outlet, i have tried inlet outlet, outlet inlet and Zerogradient it dint work what do you think about fixedgradient is even a bc for outlet and is calculate BC feasible for outlet ? - what could be causing that streak of nut behind the airfoil. - from the graphs you can see that the flow is not turning enough I have also attached images of the Nut which actually plays a major role in this case. - so the problem still persists however it has improved from before you prescription of the BC for the top and bottom was the right one can you think one for the outlet aswell - I also used a denser Windtunnel mesh with 11 million cells for mapping this time and made sure the solution was converged Images below: from left - Nut Mapped, U Mapped, Nut after simulation, U after simulation. graph - left - from the win tunnel simulation, right from this simulation Kind Regards, Hasan |
|
January 11, 2014, 18:25 |
|
#32 |
Senior Member
Hasan K.J.
Join Date: Dec 2011
Location: Bristol, United Kingdom
Posts: 200
Rep Power: 15 |
Hey Bruno,
Any suggestions on the above Question Regards, Hasan K.J |
|
January 11, 2014, 18:51 |
|
#33 | |||||||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Hasan,
That depends... any updates regarding the information above? I say this because it was on my to-do list of threads that I want to answer to, which is on my list at http://wyldckat.github.io ... but I guess you haven't looked at it Quote:
Quote:
OK, "inletOutlet" stands for, and I quote from here: https://github.com/OpenFOAM/OpenFOAM...tchField.H#L31 Quote:
Anyway, the correct settings, at least in theory, should be:
Bad boundary conditions... as ascertained from the previous statement. Quote:
Quote:
Quote:
Quote:
Best regards, Bruno
__________________
|
||||||||
Tags |
boundary condition, mapfields, openfoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
questions about boundary condition type of openfoam 2.2.0 | shuoxue | OpenFOAM Pre-Processing | 3 | May 27, 2013 02:47 |
Ship wave Boundary Condition in OpenFoam | keepfit | OpenFOAM Running, Solving & CFD | 1 | May 24, 2012 11:24 |
asking for Boundary condition in FLUENT | Destry | FLUENT | 0 | July 27, 2010 01:55 |
External Radiation Boundary Condition for Grid Interface | CFD XUE | FLUENT | 0 | July 9, 2010 03:53 |
External Radiation Boundary Condition (Two sided wall), Grid Interface | CFD XUE | FLUENT | 0 | July 8, 2010 07:49 |