|
[Sponsors] |
MEMERR when applying a variable drag coefficient |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 1, 2018, 08:46 |
MEMERR when applying a variable drag coefficient
|
#1 |
New Member
Thomas
Join Date: Mar 2018
Location: Germany
Posts: 18
Rep Power: 8 |
Hallo everyone,
I am modeling the bottling process of non-carbonated beverages using the inhomogenuous MUSIG Modell for bubbles and air-entainment. When I Change the drag cofficient in the Fluid Pair Modells Tab for the liquid/gas from a constant drag coefficient to an Expression found in a paper, I get the following error in the first iteration of the solver: | Writing transient file 0_full.trn | | Name : Transient Results 1 | | Type : Standard | | Option : Every Timestep | +--------------------------------------------------------------------+ Details of error:- ---------------- Error detected by routine PSHDIR CDRNAM = /FLOW/GETVAR/PHYS_ZONE_DIR/MULTIFLUID_MODELS/ /SIZGRP CRESLT = NONE Current Directory : /FLOW/SOLUTION/TSTEP0/CLOOP0/ZN1/VERTICES +--------------------------------------------------------------------+ | ERROR #001100279 has occurred in subroutine ErrAction. | | Message: | | Stopped in routine MEMERR | | | | | | | | | | | +--------------------------------------------------------------------+ The Simulation is transient. I already raised the Memory allocation factor from 1 to 3 but the error prevails. The expressions I use are from the paper Hänsch et al 2012 A multi-field two-fluid concept for transitions between different scales of interfacial structures Thanks in advance! |
|
August 1, 2018, 18:46 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,700
Rep Power: 143 |
CFX error messages are not very helpful. It appears to be suggesting it is looking for a size group (or the size distribution from MUSIG?) while it is writing the results file but not finding it so crashing. So check your MUSIG setup to make sure the size groups are properly defined, and stay well defined at the limits of the ranges you expect to see.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
August 6, 2018, 11:49 |
|
#3 |
Senior Member
Join Date: Jun 2009
Posts: 1,803
Rep Power: 32 |
Would you mind sharing the expression for the variable drag coefficient?
It seems the expression is not being resolved correctly. |
|
August 15, 2018, 10:25 |
|
#4 | |
New Member
Thomas
Join Date: Mar 2018
Location: Germany
Posts: 18
Rep Power: 8 |
Quote:
My expressions for the drag coefficients are the following: Cd bubb = max(Cd sphere,min(Cd elipse,Cd cap)) Cd cap = 8/3 Cd cg = (1 - phi morph)*Cd bubb + phi morph * Cd cont Cd cont = max(phi fs * Cd fs,(1 - phi fs)*Cd drop) Cd drop = 0.44 Cd elipse = 2/3 * (Eo)^0.5 Cd fs = 0.01 Cd sphere = 24 / Re particle* (1 + 0.1 * Re particle^0.75) Eo = (water.Density - gas.Density) * 9.81 [m s^-2] * dG1^2 / surface \ tension Re particle = water.Density * slip velocity * dG1 / water.Dynamic \ Viscosity a fs = 100 ab = 20 alpha cg crit = 0.3 dG1 = Group I Diameter dx = 2 [mm] mag gas vf gradient = (gas.Volume Fraction.Gradient X^2 + gas.Volume \ Fraction.Gradient Y^2 + gas.Volume Fraction.Gradient Z^2)^0.5 mag water vf gradient = (water.Volume Fraction.Gradient_x^2 + \ water.Volume Fraction.Gradient_y^2 + water.Volume \ Fraction.Gradient_z^2)^0.5 mag water vf gradient post = (water.Conservative Volume \ Fraction.Gradient X^2 + water.Conservative Volume Fraction.Gradient \ Y^2 + water.Conservative Volume Fraction.Gradient Z^2)^0.5 n = 4 nabla alpha cg crit = 1/(n*dx) phi fs = 0.5 * tanh(a fs * dx * (mag gas vf gradient-nabla alpha cg \ crit)) + 0.5 phi morph = 0.5 * tanh(ab*(gas.Volume Fraction - alpha cg crit)) + 0.5 slip velocity = (((gasDisp.Velocity_x * gasDisp.Volume \ Fraction)/(gasDisp.Volume Fraction)-water.Velocity_x )^2 +((gasDisp.Velocity_y * \ gasDisp.Volume Fraction )/(gasDisp.Volume Fraction)-water.Velocity_y )^2 \ +((gasDisp.Velocity_z * gasDisp.Volume Fraction)/(gasDisp.Volume Fraction)-water.Velocity_z )^2)^0.5 surface tension = 0.073 [N m^-1] Last edited by dickes; August 17, 2018 at 11:00. |
||
August 17, 2018, 10:57 |
|
#5 | |
New Member
Thomas
Join Date: Mar 2018
Location: Germany
Posts: 18
Rep Power: 8 |
Quote:
| MUSIG Size Group Information | +--------------------------------------------------------------------+ Domain name : fluid MUSIG fluid : continuous Group Polydispersed Fluid Diameter Mass Group 1 gas 8.5000E-03 3.8104E-07 Domain name : fluid MUSIG fluid : bubbles Group Polydispersed Fluid Diameter Mass Group 1 gasDisp 1.5000E-03 2.0941E-09 Group 2 gasDisp 2.5000E-03 9.6948E-09 Group 3 gasDisp 3.5000E-03 2.6602E-08 Group 4 gasDisp 4.5000E-03 5.6540E-08 Group 5 gasDisp 5.5000E-03 1.0323E-07 Group 6 gasDisp 6.5000E-03 1.7040E-07 Group 7 gasDisp 7.5000E-03 2.6176E-07 So I am not sure why the solver is not able to find the variable. Any further help is useful! |
||
August 17, 2018, 14:01 |
|
#6 |
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,827
Rep Power: 27 |
According to your first post, you get the error while writing a full transient file 0_full.trn at iteration 0. That is before any iteration/calculation has started.
(Normally this is only used to check if the initial guess/initial condition is setup correctly.) Do you also get the error if you do not write a trn-file at iteration 0? What if you write a trn-file at different iterations? Is this question related to your previous question regarding DIAMCLIP_FL1? |
|
August 18, 2018, 06:29 |
|
#7 | |
New Member
Thomas
Join Date: Mar 2018
Location: Germany
Posts: 18
Rep Power: 8 |
Quote:
My question regarding DIAMCLIP_FL1 is in the same simulation. I am trying to activate the different expressions from the paper Hänsch et al 2012 A multi-field two-fluid concept for transitions between different scales of interfacial structures To narrow the error message down I activate the different expressions one by one. The variable Drag Coefficient (Cd cg) is activated in the FLUID PAIR MODELS tab for momentum transfer. The Interfacial Area Density (Ad cg) is activated for Interphase Transfer (when the Error DIAMCLIP_FL appears). When I use both expressions at the same time the error MEMERR remains. Update: The DIAMCLIP_FL error is solved! MEMERR from the Group I Diameter prevails. Last edited by dickes; August 18, 2018 at 08:03. |
||
August 20, 2018, 08:24 |
|
#8 |
Senior Member
Join Date: Jun 2009
Posts: 1,803
Rep Power: 32 |
In your expressions there is a variable that is missing the "MUSIG FLUID" prefix, <Musig Fluid>.<variable>
Not sure which one in particular. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
wrong SU2 calculation for lift and drag coefficient for NAC4421 | mechy | SU2 | 7 | January 9, 2017 05:18 |
How can I calculate force for lift coefficient and drag coefficient ? | gemxx | CFX | 3 | July 4, 2015 08:37 |
Strange values in drag coefficient of a fuselage | Victor31 | FLUENT | 5 | May 14, 2014 11:30 |
emag beta feature: charge density | charlotte | CFX | 4 | March 22, 2011 09:14 |
Plot drag coefficient against Y(distance) | edwin | FLUENT | 0 | February 4, 2008 09:41 |