Quote:
Did the solver work for you successfully? I have some problem with compiling the both solver and the two phase mixture model. Regards, Mostafa |
Thanks vigges, i am trying to make the solver work for this case file http://sourceforge.net/projects/viscoelasticof/
mr Favero (I think) and Jasak had a paper with this model. I'll keep you guys updated on results and what to do. Thanks adambarfi for the input, i had no idea what dimensions to use. Do you have any definition of the "parameters for solvent shear-thinning viscosity"? (mu0 muInf...) I am grinding literature about this now but it's rather hard to look for dimensions lile 'a' and 'b' :D |
hi SuperScale
can you share your files of system with me, for example , fvSchemes, fvSolution? |
Quote:
Anyway, here it is... fvSchemes: Code:
/*--------------------------------*- C++ -*----------------------------------*\ |
sorry, i'll post the rest later today...
|
adambarfi, may i ask you why you defined CrossPowerLaw and the BirdCarreau thing? i can't find it in the solver and it is not asked when i run the simulation without it
|
fvSolution:
Code:
/*--------------------------------*- C++ -*----------------------------------*\ Code:
/*--------------------------------*- C++ -*----------------------------------*\ Code:
/*--------------------------------*- C++ -*----------------------------------*\ |
OK i think i figured out what these parameters are (mu0, muInf...)
It's to model the shear-thinning behaviour, and the equation can be found in viscoelasticTwoPhaseMixture.C at the top. The equation is: Code:
if (viscosityType_ == "ShearThinning") (eta - eta_inf) / (eta_0 - eta_inf) = 1 / (1 + (K * kappa) ^ m) while the Carreau model looks like: (eta - eta_inf) / (eta_0 - eta_inf) = 1 / (1 + (K * kappa) ^ 2) ^ m/2 now; etaL is eta mu0 is eta_0 [Pa.s] muInf is eta_inf [Pa.s] k is K (a constant with the dimensions of time) [s] kappa is the shear-rate m is a dimensionless constant Regarding 'a' and 'b', depending on the model used, 'a' is either m/2 or 1 and 'b' is either 2 or m. I also found some values for it. For polyarylamide: eta_0=1.82Pa.s, eta_inf=2.6mPa.s, K=1.5s and m=0.6. I copied the Giesekus model into viscoelasticTwoPhaseMixture.C from the extend version, recompiled it and running it now. if it works i'll upload the case file and solver. Anyone has more info about 'a' and 'b'? i kept the transport model 'Newtonian' |
Does any one have a test case for this solver?
:confused: |
1 Attachment(s)
the case I ran it just one time is attached.
hope it helps you all viscoelastic FOAMers :D Regsrds, Mostafa |
Reading g
Calculating field g.h time step continuity errors : sum local = 0, global = 0, cumulative = 0 DICPCG: Solving for pcorr, Initial residual = 0, Final residual = 0, No Iterations 0 time step continuity errors : sum local = 0, global = 0, cumulative = 0 Courant Number mean: 0 max: 0 Starting time loop Courant Number mean: 0 max: 0 Interface Courant Number mean: 0 max: 0 deltaT = 1.19048e-05 Time = 1.19048e-05 MULES: Solving for alphawater Phase-1 volume fraction = 0.825498 Min(alpha1) = 0 Max(alpha1) = 1 MULES: Solving for alphawater Phase-1 volume fraction = 0.825498 Min(alpha1) = 0 Max(alpha1) = 1 --> FOAM FATAL ERROR: updateCoeffs(const scalarField& snGradp) MUST be called before updateCoeffs() or evaluate() to set the boundary gradient. From function fixedFluxPressureFvPatchScalarField::updateCoeffs( ) in file fields/fvPatchFields/derived/fixedFluxPressure/fixedFluxPressureFvPatchScalarField.C at line 151. FOAM exiting I have this error when i run the solver can any one help? |
Quote:
thank you.It was helpful. |
Dear Arash,
Can you attach your solver, I think there're some problems with the solver. |
2 Attachment(s)
sure...
my solver is the solver which have been posted in previous posts by Mr Bruno santos... sorry but I can't run your test case by this solver. Thank you very much for your reply. :) |
OK, what i noticed while running this solver is that when I make use of the viscoelastic parameters (rho, etaS, etaP, lambda and aplha) i.e. i assign them a value that is bigger than 0, i have huge pressure fluctuations in the results. for example, i set p_rgh to be 1e5, and it shouldn't change much from that value, but when i check the results, in some time-steps the pressure range goes from -3e7 to 1e6 then from 2.48e5 to -1.2e5 (the same spots in the previous timesteps now have a different sign/foretoken). it fluctuates heavily. did anyone experience this in OpenFOAM before? Any solution recommended?
|
adambarfi, the case file you uploaded is not correct. the boundary conditions in 0/ do not agree with the geometry and mesh (which is from the dam break case)
for example in U you have walls, axiss, tray, inlet, outlet and frontAndBackPlanes which you don't have in the boundary file. also, may i ask you which version of openfoam you are using? thanks |
Quote:
The mesh was compiled before and the geometry is not as the same as the dam break case. you can run whatever geometry you want. just you need to change the boundary conditions. For example you can use the geometry and boundary conditions of dam break case. Regards, Mostafa |
ok, i did set it up and run it. works. it's ridiculous how much faster your case works than mine (the setup of fvSolusions and fvSchemes was very different) just shows how much more i need to learn about the program. Anyway, thank you again. i'll continue to work on this :)
|
Quote:
good luck, Mostafa |
question
Hi Mr Mahmoudi
which version of openfoam you have used for this test case? and is your solver same as the solver which i have been attached in my last post? :confused: |
All times are GMT -4. The time now is 13:10. |