|
[Sponsors] |
June 25, 2016, 10:31 |
Propeller tutorial with air instead of water
|
#1 |
New Member
Jonathan
Join Date: Apr 2016
Posts: 3
Rep Power: 10 |
Hi everyone,
I want to run the propeller tutorial with air. I've read somewhere that with the pimpleDym-solver the only thing to do were to change Code:
nu[0 2 -1 0 0 0 0] 1e-5; //the kinematic viscosity of water(1e-6) or air(1e-5) |
|
June 27, 2016, 04:58 |
|
#2 |
New Member
Justin Wiegmann
Join Date: Aug 2015
Posts: 20
Rep Power: 11 |
Hi JShnyder,
That is almost all for incompressible flows. I would also adapt the turbulent dissipation by a factor of 10^(-1), because it depends on viscosity. Gravitation is not considered at all in this case example. Regards JW |
|
June 28, 2016, 09:10 |
|
#3 | |
Member
alex
Join Date: Feb 2016
Location: chennai
Posts: 48
Rep Power: 10 |
Quote:
hello shnyder do you know how to set up a propeller case |
||
June 29, 2016, 04:04 |
|
#4 |
New Member
Justin Wiegmann
Join Date: Aug 2015
Posts: 20
Rep Power: 11 |
Hi,
Maybe you can have a look here. I managed my simulations with this description. Of course, there is a difference between transient and stationary simulations. In the stationary case you need for example the MRF function. In the transient case you can use a dynamic mesh (just look into the tutorial cases of pimpleDyMFoam). If you have any further questions to the procedure, don't hesitate to ask. Regards JW |
|
June 30, 2016, 03:19 |
|
#5 |
Member
alex
Join Date: Feb 2016
Location: chennai
Posts: 48
Rep Power: 10 |
hi SirIssac
I am using ANSA for meshing. The link you posted show how to do rotor and stator mesh in snappy hex mesh. basically I am not able to run my ALL RUN script in simpleFOAM rotor disk tutorial i Will post my log files for rotor disk case log create patch ./Allrun: 81: ./Allrun: createPatch: not found log.simpleFoam /*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: v3.0+ | | \\ / A nd | Web: www.OpenFOAM.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : v3.0+-e941ee6c15e9 Exec : simpleFoam Date : Jun 27 2016 Time : 15:30:33 Host : "velan-OptiPlex-9020" PID : 3025 Case : /home/velan/OpenFOAM/velan-v3.0+/run/tutorials/incompressible/simpleFoam/rotorDisk nProcs : 1 sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster allowSystemOperations : Allowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Create mesh for time = 0 SIMPLE: convergence criteria field U tolerance 0.0001 field p tolerance 0.001 field "(k|epsilon|omega)" tolerance 0.001 Reading field p Reading field U Reading/calculating face flux field phi --> FOAM FATAL IO ERROR: Unable to set reference cell for field p Please supply either pRefCell or pRefPoint file: /home/velan/OpenFOAM/velan-v3.0+/run/tutorials/incompressible/simpleFoam/rotorDisk/system/fvSolution.SIMPLE from line 42 to line 49. From function void Foam::setRefCell(const volScalarField&, const volScalarField&, const Foam::dictionary&, Foam::label&, Foam::scalar&, bool) in file cfdTools/general/findRefCell/findRefCell.C at line 105. FOAM exiting log.snappyHEXMESH /*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: v3.0+ | | \\ / A nd | Web: www.OpenFOAM.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : v3.0+-e941ee6c15e9 Exec : snappyHexMesh -overwrite Date : Jun 27 2016 Time : 15:30:32 Host : "velan-OptiPlex-9020" PID : 3022 Case : /home/velan/OpenFOAM/velan-v3.0+/run/tutorials/incompressible/simpleFoam/rotorDisk nProcs : 1 sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster allowSystemOperations : Allowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Create mesh for time = 0 Read mesh in = 0.01 s Overall mesh bounding box : (-1.26 -2.01 -1.26) (1.26 2.01 1.26) Relative tolerance : 1e-06 Absolute matching distance : 5.3722621e-06 Reading refinement surfaces. Read refinement surfaces in = 0.03 s Reading refinement shells. Refinement level 1 for all cells inside fixed.obj Refinement level 4 for all cells inside rotatingZone.obj shellSurfaces : Flipped orientation of surface rotatingZone.obj so point (3.75 6 3.75) is outside. Read refinement shells in = 0.02 s Setting refinement level of surface to be consistent with shells. For geometry fixed.obj detected 0 uncached triangles out of 5012 For geometry rotatingZone.obj detected 0 uncached triangles out of 3964 Checked shell refinement in = 0.05 s Reading features. --> FOAM FATAL IO ERROR: Could not open "/home/velan/OpenFOAM/velan-v3.0+/run/tutorials/incompressible/simpleFoam/rotorDisk/constant/triSurface/fixed.eMesh" file: /home/velan/OpenFOAM/velan-v3.0+/run/tutorials/incompressible/simpleFoam/rotorDisk/system/snappyHexMeshDict.castellatedMeshControls.features from line 47 to line 47. From function void Foam::refinementFeatures::read(const Foam:bjectRegistry&, const Foam::PtrList<Foam::dictionary>&) in file autoHexMesh/refinementFeatures/refinementFeatures.C at line 97. FOAM exiting log.surfaceFeature EXtract ./Allrun: 81: ./Allrun: surfaceFeatureExtract: not found |
|
July 6, 2016, 05:05 |
|
#6 |
New Member
Justin Wiegmann
Join Date: Aug 2015
Posts: 20
Rep Power: 11 |
Hi!
I always do it in the following manner: 1) Meshing of propeller region and then rest of the model without propeller region --> Does not depend on the meshing tool 2) Merge both meshes with mergeMeshes 3) Define the region, where the propeller is inside with topoSet Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.4.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object topoSetDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // actions ( // Get all faces in cellSet { name Rotator; type cellSet; action new; source regionToCell; sourceInfo { nErode 0; insidePoints ((0 -0.1 0)); } } { name Rotator; type cellZoneSet; action new; source setToCellZone; sourceInfo { set Rotator; } } ); fvOptions: Code:
cellZone_3_mrf { type MRFSource; active true; selectionMode cellZone; cellZone Rotator; MRFSourceCoeffs { origin (2.43 1.74 -0.52); axis (0 0 1); omega constant 18.95; //18.95 } } Regards, JW |
|
July 6, 2016, 05:19 |
|
#7 |
New Member
Jonathan
Join Date: Apr 2016
Posts: 3
Rep Power: 10 |
Hi guys,
thanks for your help, it has gotten me a lot further down the road =) It helps to know that I don't have to re-do all my simulations. I haven't tried the rotor-stator experiment yet, but I'll let you know if I make any progress with its setup. |
|
July 27, 2016, 06:18 |
|
#8 | |
Member
alex
Join Date: Feb 2016
Location: chennai
Posts: 48
Rep Power: 10 |
I am getting a error in my simulation. I am getting following warning message if use Decompose par dict
Quote:
|
||
July 27, 2016, 06:20 |
|
#9 | |
Member
alex
Join Date: Feb 2016
Location: chennai
Posts: 48
Rep Power: 10 |
When I run my pimpleDYMFoam
Quote:
|
||
July 27, 2016, 06:49 |
|
#10 |
New Member
Join Date: Oct 2014
Posts: 26
Rep Power: 12 |
Hi crusen mind,
what you get there is just a WARNING not an ERROR statement. It tells you to change your group name in your boundary definition from "wall" to something else because "wall" is allready used by wall-patches. Maybe change it da "WALL" to be sure. But if you're not using the "wall"-group in your field definitions it should not influence your calculations. BTW: Check your CFL-number... regards, teuk |
|
July 27, 2016, 06:55 |
|
#11 | |
Member
alex
Join Date: Feb 2016
Location: chennai
Posts: 48
Rep Power: 10 |
Quote:
After sew iterations my simulation stops displaying this #0 Foam::error:: printStack(Foam::Ostream&) at ??:? #1 Foam:: sigFpe::sigHandler(int) at ??:? #2 ? in "/lib/x86_64-linux-gnu/libc.so.6" #3 Foam:ICPreconditioner::calcReciprocalD(Foam::Fie ld<double>&, Foam::lduMatrix const&) at ??:? #4 Foam:ICSmoother:ICSmoother(Foam::word const&, Foam::lduMatrix const&, Foam::FieldField<Foam::Field, double> const&, Foam::FieldField<Foam::Field, double> const&, Foam::UPtrList<Foam::lduInterfaceField const> const&) at ??:? #5 Foam:ICGaussSeidelSmoother:ICGaussSeidelSmooth er(Foam::word const&, Foam::lduMatrix const&, Foam::FieldField<Foam::Field, double> const&, Foam::FieldField<Foam::Field, double> const&, Foam::UPtrList<Foam::lduInterfaceField const> const&) at ??:? #6 Foam::lduMatrix::smoother::addsymMatrixConstructor ToTable<Foam:ICGaussSeidelSmoother>::New(Foam::w ord const&, Foam::lduMatrix const&, Foam::FieldField<Foam::Field, double> const&, Foam::FieldField<Foam::Field, double> const&, Foam::UPtrList<Foam::lduInterfaceField const> const&) at ??:? #7 Foam::lduMatrix::smoother::New(Foam::word const&, Foam::lduMatrix const&, Foam::FieldField<Foam::Field, double> const&, Foam::FieldField<Foam::Field, double> const&, Foam::UPtrList<Foam::lduInterfaceField const> const&, Foam::dictionary const&) at ??:? #8 Foam::GAMGSolver::initVcycle(Foam::PtrList<Foam::F ield<double> >&, Foam::PtrList<Foam::Field<double> >&, Foam::PtrList<Foam::lduMatrix::smoother>&, Foam::Field<double>&, Foam::Field<double>&) const at ??:? #9 Foam::GAMGSolver::solve(Foam::Field<double>&, Foam::Field<double> const&, unsigned char) const at ??:? #10 Foam::fvMatrix<double>::solveSegregated(Foam::dict ionary const&) at ??:? #11 Foam::fvMatrix<double>::solve(Foam::dictionary const&) at ??:? #12 ? at ??:? #13 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6" #14 ? at ??:? Floating point exception (core dumped) |
||
July 27, 2016, 07:38 |
|
#12 |
New Member
Join Date: Oct 2014
Posts: 26
Rep Power: 12 |
Hi crusen mind,
did you check your CFL- or Courant-number? regards, teuk |
|
July 29, 2016, 01:19 |
|
#13 |
Member
alex
Join Date: Feb 2016
Location: chennai
Posts: 48
Rep Power: 10 |
hi teuk
I have reduced my time step. But I am not getting any solution I will post my check mesh, controldict, Fv solutions checkMesh File PHP Code:
PHP Code:
my Fv solution file PHP Code:
|
|
July 29, 2016, 11:50 |
|
#14 | ||
New Member
Join Date: Oct 2014
Posts: 26
Rep Power: 12 |
Hi crusen mind,
if interpret your checkMesh correct you are using a terahedral mesh? I'm only familiar with hexahedral meshes... But I have some suggestions anyways. Your max nonorthogonality and skewness are pretty high. But maybe that's because of the tetrahedral mesh. Quote:
I'm not sure about GAMG for p-fields. The mesh is not "that" big. Quote:
regards, teuk |
|||
July 29, 2016, 12:08 |
|
#15 | ||
New Member
Join Date: Oct 2014
Posts: 26
Rep Power: 12 |
Hi crusen mind,
if interpret your checkMesh correct you are using a terahedral mesh? I'm only familiar with hexahedral meshes... But I have some suggestions anyways. Your max nonorthogonality and skewness are pretty high. But maybe that's because of the tetrahedral mesh. Quote:
I'm not sure about GAMG for p-fields. The mesh is not "that" big. Quote:
regards, teuk |
|||
July 30, 2016, 03:51 |
|
#16 | |
Member
alex
Join Date: Feb 2016
Location: chennai
Posts: 48
Rep Power: 10 |
Quote:
so courant number ensures stability of the simulation, so would setting higher max co affect simulation? I selected fv solution from propeller case pimpleDYM. Is there any thumb rule to select Fv solution based on meshing. Or simply improving mesh quality with fine meshing, reducing skewness will work? |
||
July 31, 2016, 21:05 |
|
#17 | |||
New Member
Join Date: Oct 2014
Posts: 26
Rep Power: 12 |
Hi crusen mind,
Quote:
By setting higher CFL-number you will run into different uncoupled solutions on your mesh ...in worst case. Quote:
And special decomposition in specific cases... Quote:
But improved mesh quality is always favourable regards, teuk |
||||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Water diffusion into air | MGabr | CFX | 19 | September 3, 2023 20:06 |
compressibleInterFoam case – a flat wall air cavity filling up with water | Zeppo | OpenFOAM Running, Solving & CFD | 0 | October 3, 2015 11:01 |
3D multiphase micro model: mixing effect of air and water at the T junction | ehsanfareed | FLUENT | 2 | March 22, 2015 23:29 |
Evaporatin water in the air | Morteza | FLUENT | 1 | August 20, 2008 06:04 |
VOF-compression of air with rising water | yavuz | FLUENT | 0 | November 26, 2005 10:00 |