Quote:
I didn't really had time to go through the tutorial you sent me, because, I got some error in running the prepared case in the campus server. So, I am still figuring it out. Then, I have to look in to the tutorial you sent me. Thanks again. Best regards, Kumudu |
1 Attachment(s)
Quote:
The idea is that a "faceSet" allows you to select a specific group of faces in the mesh; this means that you could define the new "inlet" patch from, for example, a few faces from "maxY", instead of renaming the complete patch "maxY" in the respective region. Attached is the image "example.png", that gives a better idea of what createPatch can do. In it you will see the possible scenarios:
The detail I was trying to indicate in the previous post, is that the faces selected with "f0", cannot be morphed directly into a circle. For that, you would need an additional application that would manipulate the mesh in a way that it would distort the mesh, by using the selection "f0" to know which faces needed to be manipulated. The conclusion from all of this... is this: when you come to the point that you need the cylinder shape for the I-pipe, you need to design it directly in "blockMeshDict". Because topoSet and createPatch will only be able to do assign names to the existing mesh. |
Quote:
wow. You are a great teacher:). Thanks alot. So, what if I create the cylindrical tube using topoSet, cylinderToCell. You mean I still cannot rename it using createPatch or faceSet. Only square shapes. Thanks thanks. Kumudu |
Quote:
Give it a try and you will see for yourself what I mean ;) |
Quote:
Best regards, Kumudu |
Grading the mesh for chtMultiRegionFoam
1 Attachment(s)
Quote:
The instructions you gave worked perfectly. Now I have another problem, As I didn't give any cell expansion ratio, the number of cells are so high. Therefore, I cannot load the soil region to view in the paraview. So, I need to grade my blockMesh, as in the attached picture. Can you tell me how to do this?. Thanks in advance. Kumudu |
Hi Kumudu,
I cannot open properly the DOCX file because I'm using LibreOffice. If you could attach in PDF format, it would be easier for me to properly see the content. In general, there are at least 3 ways for creating a cell expansion:
Best regards, Bruno |
1 Attachment(s)
Quote:
Thanks for replying me. Sorry. Here is the pdf version. Best regards, Kumudu |
Hi Kumudu,
Ah, much better! The PDF is a lot clearer! I think you can easily use the current configuration you have for "blockMeshDict". You need to create a "cellSet" that selects all cells that are to be refined and then use refineHexMesh: http://openfoamwiki.net/index.php/RefineHexMesh Example: Code:
refineHexMesh c0
Bruno |
Quote:
Many many thanks to you. I will do the way you said. Best regards, Kumudu |
Dear Bruno,
Can you tell me, whether the following steps are correct ? 1.blockMesh 2.topoSet defining faceSet for inlet and outlet 3.createPatch -overwrite(rename the patches as inlet and outlet) 4. topoSet defining regions 5.topoSet to define cellSet that corresponding to fine mash 6.refineHexMesh 7.splitMeshRegions -cellZones -overwrite Thanks , Best regards, Kumudu |
Hi Kumudu,
Good thing you listed the whole list. I forgot about splitMeshRegions. My advice is to do it in this order:
Best regards, Bruno |
Quote:
Thanks Bruno Kumudu:) |
Quote:
I am sorry for disturbing you. I actually did the other way around for the previous case, without go into refining the mesh 1.blockMesh 2.topoSet defining faceSet for inlet and outlet 3.createPatch -overwrite(rename the patches as inlet and outlet) 4. topoSet defining regions 5.topoSet to define cellSet that corresponding to fine mash 6.refineHexMesh 7.splitMeshRegions -cellZones -overwrite But, it gave me the solution. However, there was a problem in that. It showed maxZ in the polyMesh/water, which shouldn't be there. But, Glyne showed that the direction of the velocity is correct. I just copied 0/water/T, Code:
boundaryField Quote:
I run the topoSet for inlet and outlet case as this : Code:
runApplication topoSet -dict system/topoSetDict01 Quote:
Thanks Bruno, Again sorry Kumudu |
Hi Kumudu,
The "-region" option, I referred to it here: http://www.cfd-online.com/Forums/ope...tml#post467877 post 18 Examples: Code:
topoSet -region water Best regards, Bruno |
Quote:
Thanks. Yes, as you said, I looked in to the "0/water/polyMesh/boundary". There are faces associated to the maxZ. So, it means, if I included the topoSet for faceSet defining inlet and outlet in the system/water/topoSet01 and run (I don't understand the correct way to run) topoSet -region water -dict system/water/topoSetDict1 and then, include the createPatch in the system/water/createPatchDict and run as createPatch -region water -dict system/water/createPatchDict But, I got an error running the createPatch when I included the system/water/createPatch previously saying "cannot find the createPatch". At that time I didn't included the -region option. I actually didn't previously understood the "-region option". Sorry. Could you please tell me the correct way to run it?. I think the command lines are wrong. Best regards, Kumudu |
Hi Kumudu,
I need to see the full command you used and the full output message from that command. Otherwise, I can't deduce what went wrong. The reason why there are still faces associated to "maxZ" is probably because the inlet and outlet do not fully replace all faces for it. If you can share the case you have right now, it's easier to help you. Best regards, Bruno |
1 Attachment(s)
Quote:
I am attaching the file. Thanks again, Kumudu |
Hi Kumudu,
First problem - this line: Code:
topoSet -dict system/topoSetDict1 Code:
topoSet -dict system/topoSetDict01 Same goes for "system/topoSetDict2" -> "system/topoSetDict02". As to explain what I meant before - you currently have got this: Code:
runApplication blockMesh Code:
runApplication blockMesh Bruno PS: I will probably only be able to answer to questions in 6-7 days from now. Good luck! |
Dear Bruno,
Thank you very much. I actually run, topoSet -dict system/topoSetDict01 I didn't use the Allrun command. That is why I forgot to put the correct name for the topoSet in the Allrun file. Sorry for that. Now I understand correctly. Thank you very much. Without your help , I will be stuck in my thesis.Now I am really happy:). Thanks, Kumudu --------------------------------- Quote:
I will need to run the refineMeshDict for more than once. I saw that refineMesh has been used in the multiphase/cavitatingFoam/les/throttle/Allrun as follows, Code:
refineMeshByCellSet() Thanks in advance, Kumudu |
All times are GMT -4. The time now is 20:58. |