CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

MEMERR when applying a variable drag coefficient

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 1, 2018, 08:46
Default MEMERR when applying a variable drag coefficient
  #1
New Member
 
Thomas
Join Date: Mar 2018
Location: Germany
Posts: 18
Rep Power: 8
dickes is on a distinguished road
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!
dickes is offline   Reply With Quote

Old   August 1, 2018, 18:46
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,700
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks is offline   Reply With Quote

Old   August 6, 2018, 11:49
Default
  #3
Senior Member
 
Join Date: Jun 2009
Posts: 1,803
Rep Power: 32
Opaque will become famous soon enough
Would you mind sharing the expression for the variable drag coefficient?

It seems the expression is not being resolved correctly.
Opaque is offline   Reply With Quote

Old   August 15, 2018, 10:25
Default
  #4
New Member
 
Thomas
Join Date: Mar 2018
Location: Germany
Posts: 18
Rep Power: 8
dickes is on a distinguished road
Quote:
Originally Posted by Opaque View Post
Would you mind sharing the expression for the variable drag coefficient?

It seems the expression is not being resolved correctly.
There are several equations interconnected inside the Drag Coefficient. I was able to reduce the problem to the use of the variable: Group I Diameter. When I apply a constant to this variable, the next error is due to a 0 in the denominator of the expression of C_D,sphere.

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.
dickes is offline   Reply With Quote

Old   August 17, 2018, 10:57
Default
  #5
New Member
 
Thomas
Join Date: Mar 2018
Location: Germany
Posts: 18
Rep Power: 8
dickes is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
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.
The out File lists the following information:

| 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!
dickes is offline   Reply With Quote

Old   August 17, 2018, 14:01
Default
  #6
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,827
Rep Power: 27
Gert-Jan will become famous soon enough
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?
Gert-Jan is offline   Reply With Quote

Old   August 18, 2018, 06:29
Default
  #7
New Member
 
Thomas
Join Date: Mar 2018
Location: Germany
Posts: 18
Rep Power: 8
dickes is on a distinguished road
Quote:
Originally Posted by Gert-Jan View Post
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?
The error remains when I skip writing the first transient file.

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.
dickes is offline   Reply With Quote

Old   August 20, 2018, 08:24
Default
  #8
Senior Member
 
Join Date: Jun 2009
Posts: 1,803
Rep Power: 32
Opaque will become famous soon enough
In your expressions there is a variable that is missing the "MUSIG FLUID" prefix, <Musig Fluid>.<variable>

Not sure which one in particular.
Opaque 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
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


All times are GMT -4. The time now is 19:13.