|
[Sponsors] |
[swak4Foam] reconstructPar error in MRFsimpleFoam (ami apprach) using GroovyBC velocity inlet |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 13, 2019, 12:07 |
reconstructPar error in MRFsimpleFoam (ami apprach) using GroovyBC velocity inlet
|
#1 | ||
Senior Member
Kmeti Rao
Join Date: May 2019
Posts: 145
Rep Power: 8 |
Hi Dear Foam users,
I am simulating propeller with MRFSimpleFoam using AMI. So far the simulation results and convergence are satisfactory and the forces are close to the analytical results. I wanted to simulate a second propeller in the slipstream of the first propeller. Since changing MRF region size affected the results significantly, I was forced to simulate the two propellers separately. As I have to reproduce the slipstream of first propeller at the inlet of the second propeller, I have used groovyBC from swak4foam to generate the inlet swirl. Again the simulation went very well and the convergence of forces was great. But when I started to reconstruct the result to start these simulation with more powerful PC I got the following error Quote:
Quote:
Krao |
|||
August 16, 2019, 06:32 |
Update
|
#2 |
Senior Member
Kmeti Rao
Join Date: May 2019
Posts: 145
Rep Power: 8 |
my groovyBC as follows for the swirly inlet with linearly varying flow. It would be great if I can get any expert advise on the following logic also, thank you.
boundaryField { inlet { type groovyBC; variables ( "yp=pos().y;" "xp=pos().x;" "r=sqrt(pow(xp,2)+pow(yp,2));" "theta=atan(yp/xp);" "omegaa=466;" "U_t=(r<0.226)?(omegaa*r):0;" "U_tx=U_t*sin(theta);" "U_ty=U_t*cos(theta);" "R=0.225;" "U1=-5.99;" "U_az=(r<0.226)?((r>0.208)?(U1*(4.413-3.413*(r/R))):-7.44):0;" ); valueExpression "vector ( U_tx, U_ty, U_az )"; value uniform (0 0 0); } } Krao Last edited by Krao; August 19, 2019 at 04:41. |
|
August 19, 2019, 05:56 |
|
#3 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
The problem here seems to be that groovyBC tries to compute deltaCoeffs to apply a potential gradient value and AMI does not know how to compute the deltaCoeffs because it usually doesn't know it. You might be able to work around this by replacing groovyBC with groovyBCFixedValue but I can't guarantee that it will work Good luck
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
August 19, 2019, 06:40 |
|
#4 | |
Senior Member
Kmeti Rao
Join Date: May 2019
Posts: 145
Rep Power: 8 |
Dear Mr. Bernhard Gschaider,
Quote:
Kind regards, Krao The problem is solved with the above mentioned procedure Last edited by Krao; August 28, 2019 at 05:36. Reason: Update |
||
Tags |
ami, groovybc, mrfsimplefoam, reconstructpar, swak4faom |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Multiphase flow - incorrect velocity on inlet | Mike_Tom | CFX | 6 | September 29, 2016 02:27 |
Pressure problems with inlet variable velocity | jaimesdiegop | CFX | 2 | September 1, 2016 03:31 |
Compressor Simulation using rhoPimpleDyMFoam | Jetfire | OpenFOAM Running, Solving & CFD | 107 | December 9, 2014 14:38 |
mixerVesselAMI2D's mass is not balancing | sharonyue | OpenFOAM Running, Solving & CFD | 6 | June 10, 2013 10:34 |
Terrible Mistake In Fluid Dynamics History | Abhi | Main CFD Forum | 12 | July 8, 2002 10:11 |