CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Propeller case in AMI tutorial

Register Blogs Community New Posts Updated Threads Search

Like Tree7Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 16, 2013, 06:17
Default
  #21
Senior Member
 
Artur's Avatar
 
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 20
Artur will become famous soon enough
Pretty much, yes.
Artur is offline   Reply With Quote

Old   July 17, 2013, 09:53
Default
  #22
Senior Member
 
Artur's Avatar
 
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 20
Artur will become famous soon enough
I have ran a simulation of the same prop with a different hub and set up so that there is a continuous shaft coming from the inlet to the upstream end of the hub. Out of curiosity I checked the Ux velocities on the wall and found the results to be as shown in the picture. Somehow it seems that the Ux velocity is dependent on the curvature of the surface the flow is flowing around...

Note: the shaft starts about 0.5 D upstream of the blades (picture 2) and is assigned a fixedValue (0 0 0) BC for U instead of movingWallVelocity (0 0 0) which is applied to the hub and the blades, as in the propeller tutorial.
Attached Images
File Type: jpg PPTC_shaft_Ux_wall.jpg (19.2 KB, 88 views)
File Type: jpg PPTC_shaft_arrangementl.jpg (9.1 KB, 66 views)
Artur is offline   Reply With Quote

Old   July 18, 2013, 06:51
Default
  #23
Member
 
reza1980's Avatar
 
reza
Join Date: Jan 2013
Location: Goteborg-Sweden
Posts: 79
Rep Power: 13
reza1980 is on a distinguished road
Artur,
I tried to use snappy same as tut but it seems something is wrong.
I created *.stl files and updated the relevant snappy and bloc Dic .
Would you please take a look to my case. It is just 12.5 Mb and I can sent it by email.
Reza
reza1980 is offline   Reply With Quote

Old   July 18, 2013, 07:05
Default
  #24
Senior Member
 
Artur's Avatar
 
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 20
Artur will become famous soon enough
Hi,

I'm a bit busy today so perhaps you want to look at my setup first and then if you can't work it out I can have a look at your case? See the attachments. Execution order is: snappy, topoSet, createPatch, createBaffles.
Attached Files
File Type: txt snappyHexMeshDict.txt (7.0 KB, 45 views)
File Type: txt topoSetDict.txt (4.7 KB, 56 views)
File Type: txt createPatchDict.txt (1.4 KB, 50 views)
File Type: txt createBafflesDict.txt (1.8 KB, 60 views)
neiht likes this.
Artur is offline   Reply With Quote

Old   July 18, 2013, 10:01
Default
  #25
Member
 
reza1980's Avatar
 
reza
Join Date: Jan 2013
Location: Goteborg-Sweden
Posts: 79
Rep Power: 13
reza1980 is on a distinguished road
It seems a little bit different with tut and you have an extra Dic as createBafflesDict . I attached my dic and I hope you have time to look at the.I used same name as tut to simplify .
Best and thanks already
Attached Images
File Type: jpg 1.jpg (91.8 KB, 61 views)
reza1980 is offline   Reply With Quote

Old   July 18, 2013, 10:03
Default
  #26
Member
 
reza1980's Avatar
 
reza
Join Date: Jan 2013
Location: Goteborg-Sweden
Posts: 79
Rep Power: 13
reza1980 is on a distinguished road
I don't know why there is error to attach.
reza1980 is offline   Reply With Quote

Old   July 18, 2013, 10:16
Default
  #27
Senior Member
 
Artur's Avatar
 
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 20
Artur will become famous soon enough
change the file extension to .txt, that should do it
Artur is offline   Reply With Quote

Old   July 18, 2013, 10:19
Default
  #28
Member
 
reza1980's Avatar
 
reza
Join Date: Jan 2013
Location: Goteborg-Sweden
Posts: 79
Rep Power: 13
reza1980 is on a distinguished road
look at this ,please.
Attached Images
File Type: jpg 2.jpg (63.3 KB, 85 views)
File Type: jpg 3.jpg (56.5 KB, 86 views)
Attached Files
File Type: gz test.tar.gz (5.0 KB, 44 views)
reza1980 is offline   Reply With Quote

Old   July 18, 2013, 10:41
Default
  #29
Senior Member
 
Artur's Avatar
 
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 20
Artur will become famous soon enough
Ok so what are the symptoms of it being wrong?
Artur is offline   Reply With Quote

Old   July 18, 2013, 10:43
Default
  #30
Member
 
reza1980's Avatar
 
reza
Join Date: Jan 2013
Location: Goteborg-Sweden
Posts: 79
Rep Power: 13
reza1980 is on a distinguished road
I run ,All run exe file but nothing happens
reza1980 is offline   Reply With Quote

Old   July 18, 2013, 10:44
Default
  #31
Member
 
reza1980's Avatar
 
reza
Join Date: Jan 2013
Location: Goteborg-Sweden
Posts: 79
Rep Power: 13
reza1980 is on a distinguished road
Would you please let me know how tut works?
reza1980 is offline   Reply With Quote

Old   July 18, 2013, 11:23
Default
  #32
Senior Member
 
Artur's Avatar
 
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 20
Artur will become famous soon enough
Going step by step through the allrun.pre

1. run blockMesh - create a rectangular domain
2. extract features of the outerCylinder - will form the new domain, innerCylinder - will form the refinement region, innerCylinderSmall - will form the AMI interface
3. snap the mesh to the inside of the outerCylinder but keeping the cells inside the inner and innerSmall cylinders
4. run topoSet to remove the cellZones created by snappy
5. again, run topoSet and create faceZones which will form the inlet and outlet (note: the inlet and outlet patches from the initial domain are now empty because outerCylinder small to which the mesh has been snapped is smaller than the initial domain)
6. run topoSet yet again to create the cellZone which will form the AMI interface. the steps here are as follows:
6.1 select the cells in the inenrCyl
6.2 select the same cells once again in the set called outerCells
6.3 invert the selection of outerCels thereby selecting all the cells outside the innerCyl
6.4 convert the innerCyl cellSet to a cellZone and then to a faceSet
6.5 pick the faces at the interface between the outerCells and the innerCylinder (I am not entirely sure about this step)
6.6 Select all faces in the faceSet orientated so slave side is in innerCylinderSmallcellSet
6.7 create a dummy face set apparently needed by createPatch application
7. create the inlet & outlet patches from the sets you've created before
8. create baffles from the face zone that is there already
9. split the baffle so that you have master and slave faces of the ami (inner and outer layer as I understand it)

et voila
neiht and Tobias Adam like this.
Artur is offline   Reply With Quote

Old   July 18, 2013, 12:12
Default
  #33
Member
 
reza1980's Avatar
 
reza
Join Date: Jan 2013
Location: Goteborg-Sweden
Posts: 79
Rep Power: 13
reza1980 is on a distinguished road
I should say i am confused when I face createAMi dic
reza1980 is offline   Reply With Quote

Old   July 19, 2013, 03:53
Default
  #34
Member
 
Join Date: Apr 2013
Posts: 32
Rep Power: 13
simt is on a distinguished road
Hi,
Have you considered this?
http://www.extend-project.de/user-fo...transient-case

The movingWallVelocity is applicable for small timesteps only when doing transient simulations.
Artur likes this.
simt is offline   Reply With Quote

Old   July 19, 2013, 04:19
Default
  #35
Senior Member
 
Artur's Avatar
 
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 20
Artur will become famous soon enough
Thanks a lot for that reply! Although I operate at relatively small time steps (dictated by the fine mesh resolution and maxCo) I think this might be the case. I will do a run with the BC you suggested and hopefully this will resolve the issue with the no-slip condition.

@reza: could you please be a bit more specific in terms of what confuses you in the createAmiFacesDict? I'll gladly share with you what I've learned about this tutorial but in order to do that I need to know what your problems are.
Artur is offline   Reply With Quote

Old   July 19, 2013, 06:33
Default
  #36
Senior Member
 
Artur's Avatar
 
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 20
Artur will become famous soon enough
There are still a number of cells where the velocity is very small but non-zero but that is most likely due to my mesh not being perfect (occurs mainly around the feature lines). Other than that it is much much much better, especially for the shaft. Thank you very much for pointing me to the rotatingMovingWall BC.

For anyone who will try to compile the Extend version under more recent releases (I use 2.2.0): you will have to comment out the #include mathConstant.h and replace the mathConstant:: pi with 3.14159265(...). Then just follow the OpenFoam wiki guide on building your BC's and you'll be fine.
Attached Images
File Type: jpg PPTC_Ux_rotatingMowingWallBc.jpg (18.8 KB, 38 views)
Artur is offline   Reply With Quote

Old   July 19, 2013, 06:38
Default
  #37
Member
 
Join Date: Apr 2013
Posts: 32
Rep Power: 13
simt is on a distinguished road
Sorry for not being clear, I'm not really pointing to the rotatingMovingWall bc. I think one can use movingWallVelocity, but expect (small) deviations from the noslip condition. If the deviations are small they should not effect results.

Best regards
simt is offline   Reply With Quote

Old   July 19, 2013, 06:49
Default
  #38
Senior Member
 
Artur's Avatar
 
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 20
Artur will become famous soon enough
Yes, I've seen that with the movingWall BC because despite small Ux components my pressure distributions and forces were very close to what they should have been. But it seems that with rotatingMovingWall I can get slightly more accurate results which I think is always better.

Thanks a lot for your hep!
Artur is offline   Reply With Quote

Old   July 19, 2013, 07:52
Default
  #39
Member
 
Join Date: Apr 2013
Posts: 32
Rep Power: 13
simt is on a distinguished road
If possible, please share if you make a conclusion about the difference between the bc's. I am very interested in this.

Best regards
simt is offline   Reply With Quote

Old   July 19, 2013, 08:23
Default
  #40
Senior Member
 
Artur's Avatar
 
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 20
Artur will become famous soon enough
my run with rotatingMovingWall has now fully converged in terms of forces. I ran it with exact same settings as the previous one for advance coefficient of J = 0.64 (1.601ms-1 advance velocity at ~10 rps). I have experienced pretty much the same rate of convergence and the results accuracy was in of the same order in terms of forces and moments (+/- 2% c.f. the experimental results).

Attached pictures show, in order of appearance:
1. the old case with movingWall BC (already shown a few posts above but included here for consistency)
2. the new case with rotatingMovingWall BC showing Ux velocity using the same scale as the one used for pic 1 -> note the without comparison better representation of the no-slip condition
3. the new case with rotatingMovingWall BC -> note the 5-fold difference in magnitudes of the extreme velocity values and the no-slip condition spread across the blade
Attached Images
File Type: jpg PPTC_Ux_mowingWallBc.jpg (19.4 KB, 111 views)
File Type: jpg PPTC_Ux_rotatingMowingWallBc_largeVarRange.jpg (16.7 KB, 94 views)
File Type: jpg PPTC_Ux_rotatingMowingWallBc.jpg (18.8 KB, 92 views)
kiddmax and snowflying like this.
Artur is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
MRF and employing on a propeller case reza1980 OpenFOAM 10 December 23, 2017 12:29
A questionable Tutorial test case immortality OpenFOAM Running, Solving & CFD 0 December 5, 2012 09:40
propeller tutorial openfoam_user OpenFOAM Running, Solving & CFD 0 February 8, 2012 05:02
tutorial copying troubles / new case Gabbee90 OpenFOAM Running, Solving & CFD 0 June 3, 2011 22:50
FoamX refuses to open an interFoam tutorial case vrecha OpenFOAM Pre-Processing 5 March 12, 2008 13:36


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