|
[Sponsors] |
irregular model simulation with chtMultiregionFoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 28, 2013, 08:47 |
|
#21 | |
Member
Kumudu
Join Date: Oct 2013
Posts: 63
Rep Power: 13 |
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 |
||
December 28, 2013, 09:40 |
|
#22 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
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. |
||
December 28, 2013, 10:18 |
|
#23 | |
Member
Kumudu
Join Date: Oct 2013
Posts: 63
Rep Power: 13 |
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 |
||
December 28, 2013, 13:18 |
|
#24 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quote:
Give it a try and you will see for yourself what I mean |
||
December 28, 2013, 14:43 |
|
#25 | |
Member
Kumudu
Join Date: Oct 2013
Posts: 63
Rep Power: 13 |
Quote:
Best regards, Kumudu |
||
January 5, 2014, 05:57 |
Grading the mesh for chtMultiRegionFoam
|
#26 | |
Member
Kumudu
Join Date: Oct 2013
Posts: 63
Rep Power: 13 |
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 Last edited by wyldckat; January 5, 2014 at 09:34. Reason: Fixed broken [QUOTE] |
||
January 5, 2014, 10:09 |
|
#27 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
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
__________________
Last edited by wyldckat; August 16, 2015 at 14:34. Reason: fixed link |
|
January 5, 2014, 10:40 |
|
#28 | |
Member
Kumudu
Join Date: Oct 2013
Posts: 63
Rep Power: 13 |
Quote:
Thanks for replying me. Sorry. Here is the pdf version. Best regards, Kumudu Last edited by wyldckat; January 5, 2014 at 11:53. Reason: merged the 2 posts, since they were 2 minutes apart... |
||
January 5, 2014, 11:58 |
|
#29 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
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
__________________
Last edited by wyldckat; January 5, 2014 at 11:59. Reason: see "edit:" |
|
January 5, 2014, 12:02 |
|
#30 | |
Member
Kumudu
Join Date: Oct 2013
Posts: 63
Rep Power: 13 |
Quote:
Many many thanks to you. I will do the way you said. Best regards, Kumudu |
||
January 5, 2014, 13:32 |
|
#31 |
Member
Kumudu
Join Date: Oct 2013
Posts: 63
Rep Power: 13 |
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 |
|
January 5, 2014, 13:45 |
|
#32 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
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
__________________
|
|
January 5, 2014, 13:52 |
|
#33 | |
Member
Kumudu
Join Date: Oct 2013
Posts: 63
Rep Power: 13 |
Quote:
Thanks Bruno Kumudu |
||
January 5, 2014, 14:58 |
|
#34 | |||
Member
Kumudu
Join Date: Oct 2013
Posts: 63
Rep Power: 13 |
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 { maxZ -----------> this is the problem { type zeroGradient; value uniform 274; } inlet { type fixedValue; value uniform 274; } outlet { type zeroGradient; value uniform 274; } water_to_soil { type compressible::turbulentTemperatureCoupledBaffleMixed; value uniform 274; neighbourFieldName T; K basicThermo; KName none; } } Quote:
I run the topoSet for inlet and outlet case as this : Code:
runApplication topoSet -dict system/topoSetDict01 Quote:
Thanks Bruno, Again sorry Kumudu Last edited by wyldckat; January 5, 2014 at 15:52. Reason: fixed broken quotes |
||||
January 5, 2014, 16:04 |
|
#35 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
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 createPatch -region water Best regards, Bruno
__________________
|
|
January 5, 2014, 16:33 |
|
#36 | |
Member
Kumudu
Join Date: Oct 2013
Posts: 63
Rep Power: 13 |
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 |
||
January 5, 2014, 17:41 |
|
#37 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
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
__________________
|
|
January 5, 2014, 18:05 |
|
#38 | |
Member
Kumudu
Join Date: Oct 2013
Posts: 63
Rep Power: 13 |
Quote:
I am attaching the file. Thanks again, Kumudu |
||
January 5, 2014, 19:05 |
|
#39 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
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 runApplication topoSet -dict system/topoSetDict01 runApplication createPatch -overwrite runApplication topoSet -dict system/topoSetDict02 runApplication splitMeshRegions -cellZones -overwrite Code:
runApplication blockMesh #define the cell set "cellSetForRefinement" for the refinement and then refine runApplication topoSet -dict system/topoSetDict00 runApplication refineHexMesh -overwrite cellSetForRefinement #define the zones for the regions and split the mesh into regions runApplication topoSet -dict system/topoSetDict02 runApplication splitMeshRegions -cellZones -overwrite #define the faceSets for the inlet and outlet patches and create the patches runApplication topoSet -dict system/topoSetDict01 -region water runApplication createPatch -overwrite -region water Bruno PS: I will probably only be able to answer to questions in 6-7 days from now. Good luck!
__________________
|
|
January 6, 2014, 16:15 |
|
#40 | |
Member
Kumudu
Join Date: Oct 2013
Posts: 63
Rep Power: 13 |
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() { while [ $# -ge 1 ] do if [ ! -e log.refineMesh.$1 ] then echo "creating cell set for primary zone - $1" cp system/topoSetDict.$1 system/topoSetDict topoSet > log.topoSet.$1 2>&1 echo "refining primary zone - $1" refineMesh -dict -overwrite > log.refineMesh.$1 2>&1 fi shift done } runApplication blockMesh refineMeshByCellSet 1 2 3 runApplication $application # ----------------------------------------------------------------- end-of-file Thanks in advance, Kumudu Last edited by wyldckat; January 10, 2014 at 15:19. Reason: merged 2 posts - fixed broken quotes and code markers |
||
Tags |
fields chtmultiregionfoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Simulation of a single bubble with a VOF-method | Suzzn | CFX | 21 | January 29, 2018 01:58 |
Superlinear speedup in OpenFOAM 13 | msrinath80 | OpenFOAM Running, Solving & CFD | 18 | March 3, 2015 06:36 |
LES simulation with Smagorinsky2 model | Zuixy | OpenFOAM Running, Solving & CFD | 3 | October 20, 2011 07:17 |
Turbulence model in a simulation with wide spatial range of Reynolds numbers | Chander | CFX | 33 | September 28, 2011 09:48 |
Experimental And Simulation Data for my model | Timothy Song | Siemens | 0 | January 12, 2009 06:23 |