|
[Sponsors] |
[mesh manipulation] 2 AMI cinder (stick together) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 16, 2019, 18:05 |
2 AMI cinder (stick together)
|
#1 |
Member
sajad alimardani
Join Date: Feb 2018
Posts: 31
Rep Power: 8 |
hi my frinds
i have to use 2 AMI Cylinder (stick together) with Rotation opposite direction. What should I do? someone have a example. please share with us. please advise me openfoam3.0.1 Greetings, sajad. Last edited by sajjjad; April 18, 2019 at 11:34. |
|
April 20, 2019, 00:36 |
|
#2 |
Member
sajad alimardani
Join Date: Feb 2018
Posts: 31
Rep Power: 8 |
Let question other way to say.
I want use Ami between Two propeller(Sticking). but Ami cylinder very near to blades and give error(text above) .(I think error for this) now 1- how use AMI for Ami cylinder very near to Rotating body? 2-There is another way(simple and beter way) Instead AMI? thank you sajjad. |
|
April 21, 2019, 07:23 |
|
#3 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Quick answers: I got the PMs you sent me... with only the information you've provided, I'm unable to say much, because the "createPatchDict" seems OK.
If you could share the mesh, preferably one that is a lot simpler and without the blades, it would be easier to help. The best I'm able to tell you is that:
__________________
|
|
April 21, 2019, 11:53 |
|
#4 | |
Member
sajad alimardani
Join Date: Feb 2018
Posts: 31
Rep Power: 8 |
Quote:
thank you very much. I cant use MRF becuse I must run unsteady. this file is system folder please look this. I can sent my complete file your mail address? Greetings.sajad |
||
April 21, 2019, 14:58 |
|
#5 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Quick answers:
Without the STL files for the AMI patches, there isn't much I can do... that said, I strongly suggest that you set the refinement levels for the feature edges all down to "0", because refined edges are usually troublesome. No, it will simply get lost in the list of unread emails that takes me about a year to sift through... Keep it simple and re-adapt the case to not have the blades, only have the STL cylinders. Or better yet, if possible, use the "cylinder" feature that snappyHexMesh provides, e.g.: Code:
cylinder { type searchableCylinder; point1 (0 -4 0); point2 (0 4 0); radius 0.7; } If you were using OpenFOAM 5 or 6, you could create base meshes with blockMesh that were already cylindrical and more easily matching between sides, examples:
If it's still too large, then use a file sharing website... and if you don't want to make the case accessible to the public, then send me the link via private message. However, I will not be able to look at it before the next weekend |
|
April 22, 2019, 04:25 |
|
#6 | |
Member
sajad alimardani
Join Date: Feb 2018
Posts: 31
Rep Power: 8 |
Quote:
Thank you so much for your advice. I set the refinement levels for the feature edges all down to "0" and made cylinder with snappyHexMesh I see first time AMI for second AMI path. but Unfortunately give this AMI error(new error). https://drive.google.com/open?id=1j6...93Esu3V7UlieHK this address for my case. Greetings.sajad |
||
April 28, 2019, 15:33 |
|
#7 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Greetings Sajad,
OK, I think I now understand the main issue: there are faces with a weight of zero that are not matching those on the other patch... What I mean is that the actual combination of faces that exist are as follows:
Then you will have to use topoSet with a "topoSetDict" that is configured to:
Code:
actions ( // gather all faces from patch { name innerCylinderAftBetweenCyls; type faceSet; action new; source patchToFace; sourceInfo { name "innerCylinder-aft"; } } //select only the faces that are within the box { name innerCylinderAftBetweenCyls; type faceSet; action subset; source boxToFace; sourceInfo { //You need to update these values box (0 0 0) (1 1 1); } } // gather all faces from patch { name innerCylinderForeBetweenCyls; type faceSet; action new; source patchToFace; sourceInfo { name "innerCylinder-fore"; } } //select only the faces that are within the box { name innerCylinderForeBetweenCyls; type faceSet; action subset; source boxToFace; sourceInfo { //The box can be the same as above box (0 0 0) (1 1 1); } } ); In case the box isn't practical or doesn't work, try using: Code:
// Faces with normal to within certain angle aligned with vector. source normalToFace; sourceInfo { normal (0 0 1); // Vector cos 0.01; // Tolerance (max cos of angle) } Then you have to use createPatch to create a new pair of cyclicAMI based on these two "faceSets", e.g.: Code:
{ //- Master side patch name AMI_between1; patchInfo { type cyclicAMI matchTolerance 0.0001; neighbourPatch AMI_between2; transform noOrdering; } constructFrom set; set innerCylinderAftBetweenCyls; } { //- Slave side patch name AMI_between2; patchInfo { type cyclicAMI; matchTolerance 0.0001; neighbourPatch AMI_between1; transform noOrdering; } constructFrom set; set innerCylinderForeBetweenCyls; } Then after you get it up and running, check if there are any 0 weights: Code:
AMI: Patch source sum(weights) min/max/average = 0, 6.92893, 0.995144 Best regards, Bruno
__________________
|
|
April 28, 2019, 17:17 |
|
#8 | |
Member
sajad alimardani
Join Date: Feb 2018
Posts: 31
Rep Power: 8 |
Quote:
thank you so much. I'll do your advise and I will report the result. Greetings,sajad |
||
May 2, 2019, 11:06 |
|
#9 |
Member
sajad alimardani
Join Date: Feb 2018
Posts: 31
Rep Power: 8 |
hi Dear Bruno
I know you are very busy. but I cant fixed it and I have no another choice.sorry I don't know my works is correct!! in paraview patch AMI_between not exist . please look at my file. Greetings, sajad |
|
May 5, 2019, 14:43 |
|
#10 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Quick answer: I need 2 things:
Code:
checkMesh -allTopology -allGeometry Last edited by wyldckat; May 5, 2019 at 14:44. Reason: see "edit:" |
|
May 5, 2019, 14:49 |
|
#11 | |
Member
sajad alimardani
Join Date: Feb 2018
Posts: 31
Rep Power: 8 |
Quote:
It does not seem to create AMI_between patch! thank you. Greetings, sajad |
||
May 5, 2019, 15:47 |
|
#12 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Quick answer: OK... this looks like it's going to be a bit of a tough diagnosis to do...
So, the one detail I'm able to see is that the log for createPatch told us this: Code:
Adding new patch AMI_between1 as patch 12 from { type cyclicAMI matchTolerance 0.0001; neighbourPatch AMI_between2; transform noOrdering; } Code:
{ //- Master side patch name AMI_between1; patchInfo { type cyclicAMI; matchTolerance 0.0001; neighbourPatch AMI_between2; transform noOrdering; } constructFrom set; set innerCylinderAftBetweenCyls; } The reason as to why I also made this mistake in a previous post of mine, was because it was already a mistake in the AMI1 definition you have: Code:
{ //- Master side patch name AMI1; patchInfo { type cyclicAMI; matchTolerance 0.0001; neighbourPatch AMI2; transform noOrdering; } constructFrom patches; patches (innerCylinder-fore); } Now, this is what I'm able to diagnose from just these files. The next step is something only you can diagnose. Run the following commands: Code:
foamToVTK -faceSet innerCylinderAftBetweenCyls foamToVTK -faceSet innerCylinderForeBetweenCyls This is just in case the opposite sides of the cylinders were chosen, because if they are not on the same shared plane, then you need to correct the normals defined in "topoSetDict". |
|
May 5, 2019, 18:43 |
|
#13 | |
Member
sajad alimardani
Join Date: Feb 2018
Posts: 31
Rep Power: 8 |
Quote:
Bruno seem that No matter which i normal to choose (I tried 4 modes. 2 modes at all doesnt create patchs and 2 modes...).nface BetweenAMI is zero!.and innerCylinderForeBetweenCyls look outercylinder and innerCylinderaftBetweenCyls look propeller. Greetings, sajad |
||
May 6, 2019, 19:19 |
|
#14 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Hi Sajad,
We are having some considerable difficulties in thinking about the same geometrical part... I looked at the past posts and the geometry you had provided sometime ago... and apparently the problem is that we aren't thinking about the same patches. So, what I ask you to do is the following steps:
Best regards, Bruno |
|
May 7, 2019, 06:15 |
|
#15 | |
Member
sajad alimardani
Join Date: Feb 2018
Posts: 31
Rep Power: 8 |
Quote:
innerCylinder-fore pair of innerCylinder-fore_slave innerCylinder-aft pair of innerCylinder-aft_slave and those correct in paraview. Bruno just surface that is shared between cylinder no exist!!!(please look picture). and this file just AMI interfaces. Greetings,sajad |
||
May 11, 2019, 20:13 |
|
#16 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Hi Sajad,
I started looking into this yesterday (Saturday), but didn't manage to try things for myself. Nonetheless, after snappyHexMesh is finished running, there is something you might not have noticed:
Best regards, Bruno |
|
May 12, 2019, 17:22 |
|
#17 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Quick answer: I managed to find the time to look into this, because I was curious on whether we could get this to work or not... well, it seems to sort of work, but I haven't tested simulating with it, so the normals in "topoSetDict" could be incorrect.
Furthermore, I strongly suggest that you correct the base mesh to align properly with the cylinders, because not having a mesh aligned with the cylinders on the Y-Z plane is wreaking havoc on the patches we are trying to create, namely the "AMI*_between". If you look at the patches when it's done running, you will see that there are still faces missing and that is because the faces that are meant to be on these patches, are inclined due to having to respect the mesh quality. Attached is the revised case. You can use Meld or Kompare to see the changes I've done. It has "partially fixed" in the name, because I didn't correct the base mesh. |
|
May 18, 2019, 11:23 |
|
#18 | |
Member
sajad alimardani
Join Date: Feb 2018
Posts: 31
Rep Power: 8 |
Quote:
Thank you very much. You know, For a a few day I'm didn't working and I did not notice the new message.sorry man. I listen to your advice and tell you the result of our work. Greetings,sajad |
||
May 19, 2019, 16:45 |
|
#19 |
Member
sajad alimardani
Join Date: Feb 2018
Posts: 31
Rep Power: 8 |
Hi Dear Bruno
I'm embarrassed for bother,sorry Bruno. i modification base mesh. and that is worked. thank you. but when i added propellers to snappy, foam give this error. i searched and some people tell is this bug foam but when alone cylinder it is worked.!!! Bruno possible error for that propellers close to cylinder ami? and one cylinder not rotating. i fixed just when i search for error some guys tell this error for axis rotation .i check cylinder and rotation is correct. one file is your file with beter base mesh.that is ok and runed. secend file(google drive) is propeller added to code. https://drive.google.com/open?id=1eH...TKri18ktxUjNJ2 Greetings, sajad Last edited by sajjjad; May 20, 2019 at 15:04. |
|
April 22, 2020, 22:02 |
|
#20 |
New Member
Rafael Medina
Join Date: Mar 2020
Posts: 1
Rep Power: 0 |
Hi sajjad
My name is Rafael and I am new using openFoam, I am doing the same thing, I am working with two amis (stick together) with opposite rotation, I used topoSet to create these AMIs and everything works, I did not have any error with this tool I would like to know if you were able to solve your problem and if you obtained results. This is part of my error.I don't know if it's a solver problem or if I put a wrong value. Could you help me? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
mapField error | rvl565 | OpenFOAM Pre-Processing | 1 | September 6, 2018 16:13 |
Translating and Rotating AMI | HiddenSquid | OpenFOAM Pre-Processing | 1 | October 25, 2017 03:59 |
Compressor Simulation using rhoPimpleDyMFoam | Jetfire | OpenFOAM Running, Solving & CFD | 107 | December 9, 2014 13:38 |
dynamic Mesh is faster than MRF???? | sharonyue | OpenFOAM Running, Solving & CFD | 14 | August 26, 2013 07:47 |
mixerVesselAMI2D's mass is not balancing | sharonyue | OpenFOAM Running, Solving & CFD | 6 | June 10, 2013 09:34 |