
[Sponsors] 
October 5, 2010, 05:21 
variable diffusion coefficient

#1 
New Member
ali
Join Date: Jun 2010
Posts: 15
Rep Power: 8 
Hi
I like the diffusion coefficient in additional variable as a function of shear strain rate can define. When I do this (in cfx expression language)I'm faced with the following message. Please help if possible. Grateful kinematic diffusivity:0.18*(radious^2)*shear strain rate cfx message: Parameter 'Kinematic Diffusivity' in object '/FLOW:Flow Analysis 1/DOMAINomain 1/FLUID MODELS/ADDITIONAL VARIABLE:Concentration of LDL' has been assigned an expression that references the following unavailable variables: Shear Strain Rate 

October 5, 2010, 20:22 

#2 
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 13,432
Rep Power: 104 
The error message is completely clear to me. The variable name is "Shear Strain Rate"  you need the capital letters.
The names of all variables is listed in the documentation. 

October 19, 2010, 06:34 
variable diffusion coefficient

#3 
New Member
ali
Join Date: Jun 2010
Posts: 15
Rep Power: 8 
thank you ghorrocks
I did do it . But once again gave the same error message.</SPAN></SPAN></SPAN></SPAN> Parameter 'Kinematic Diffusivity' in object '/FLOW:Flow Analysis 1/DOMAINomain 1/FLUID MODELS/ADDITIONAL VARIABLE:Concentration of LDL' has been assigned an expression that references the following unavailable variables: Shear Strain Rate 

October 19, 2010, 17:50 

#4 
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 13,432
Rep Power: 104 
Have you tried the variabel short name "sstrnr"


October 19, 2010, 18:28 

#5 
Senior Member
Michael P. Owen
Join Date: Mar 2009
Posts: 196
Rep Power: 10 
The variable Shear Strain Rate is unavailable for this purpose. Instead create an algebraic additional variable and set it equal to the Shear Strain Rate and use that.


October 23, 2010, 02:57 
kinematic diffusivity

#6 
New Member
ali
Join Date: Jun 2010
Posts: 15
Rep Power: 8 
hi michael_owen
My relationship to the coefficient of diffusion into expression, I've defined and then define an algebraic equation and enter the name expression. How i can impose the algebraic equation in the diffusion coefficient ? Last edited by alinematollahi; October 24, 2010 at 01:02. 

October 24, 2010, 00:59 
immediate helpvariable kinematic diffusivity

#7 
New Member
ali
Join Date: Jun 2010
Posts: 15
Rep Power: 8 
hi
Please on how to create a relationship for the diffusion coefficient based on the shear strain rate below.I need immediate help.thank you radious=0.01m kinematic diffusivity:0.18*(radious^2)*shear strain rate cfx message: Parameter 'Kinematic Diffusivity' in object '/FLOW:Flow Analysis 1/DOMAINomain 1/FLUID MODELS/ADDITIONAL VARIABLE:Concentration of LDL' has been assigned an expression that references the following unavailable variables: Shear Strain Rate 

October 24, 2010, 06:11 

#8 
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 13,432
Rep Power: 104 
Michael has suggested how to do it. Have a look in the documentation and tutorials about additional variables for tips on how to set it up. The idea is basically: Set up an additional variable which is defined by a CEL expression. Set the CEL expression to simply be "=Shear Strain Rate". Then you should be able to refer to the additional variable in your kinematic diffusivity CEL expression.
On another matter: Please do not post duplicates of this post on other threads, it does not help. Also if you need urgent help then talk to CFX support. That is what you pay them for. This forum is not appropriate for urgent work, people only post here when they feel like it. 

October 25, 2010, 08:42 

#9  
Senior Member
Michael P. Owen
Join Date: Mar 2009
Posts: 196
Rep Power: 10 
Quote:
This is pretty hard to decipher. If I understand you correctly, you've defined an Additional Variable with the same dimensions as the Shear Strain Rate, you've turned on the use of that Additional Variable in you domain, set it to Algebraic, and entered Shear Strain Rate as the expression that defines the Additional Variable, and now you are looking for how to use that in the kinematic diffusivity? Just reference your Additional Variable the same way you are trying to reference the Shear Strain Rate in the expression for the the kinematic diffusivity. If your Additional Variable is called "ShearStrainRate" (no spaces), then make your expression for the Kinematic Diffusivity equal to 0.18*(radious^2)*ShearStrainRate. 

October 26, 2010, 01:25 

#11 
New Member
ali
Join Date: Jun 2010
Posts: 15
Rep Power: 8 
hi michael,thank you
You think wrong about my problem . I'm working on blood flow as single phase and I need the equation of mass transport(concentration) with the fluid equations(navierstockes) can solve (additional variable with unit (kg m^3)).i select "transport equation" in the domain, with define it,i need the diffusion coefficient(kinematic diffusivity with unit(m^2 s^1)) that i want to define it as a function of shear strain rate. i think that with this work that fluid and mass transfer equations are coupled(is it correct?)how with defining expression or algebric equation i define the"kinematic diffusivity"?this is my problem 

October 26, 2010, 05:55 

#12 
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 13,432
Rep Power: 104 
If you do as Michael suggests you will not be truly coupling the fluid and mass transfer equations but linking them with an explicittype function as I suspect the CEL will get calculated on the values from the last iteration. As long as you keep your timestep under control it should work  need to do a sensitivity check to make sure it is OK.


October 26, 2010, 08:45 

#13  
Senior Member
Michael P. Owen
Join Date: Mar 2009
Posts: 196
Rep Power: 10 
Quote:


October 28, 2010, 04:54 

#14 
New Member
ali
Join Date: Jun 2010
Posts: 15
Rep Power: 8 
thank you very much michael_owen
if you help me,I'm very grateful. 

November 15, 2010, 06:10 

#15 
New Member
ali
Join Date: Jun 2010
Posts: 15
Rep Power: 8 
hi
my problem is not solve.Can someone help me? thank you 

November 16, 2010, 08:47 

#16 
Member
Join Date: Dec 2009
Posts: 42
Rep Power: 9 
It doesn't mattter whether you try to use Shear Strain Rate, sstrnr, or an Additional Variable because the solver knows (directly or indirectly) that you are trying to use a variable which is not allowed to be used to define the parameter Kinematic Difffusivity.
The variables that can be used are defined in the Dependency List for the parameter, and all the parameters are defined in the RULES file. Often, the Dependency List can be extended to include other viariables without error (although sometimes it does not work). You can include in your CCL file the following lines: RULES: PARAMETER: Kinematic Diffusivity Dependency List = ANY END END This will override the default settings for your current run and remove any need to modify the installation version. This will get past the error regarding allowing variables, but the solver may still fail if the dependency has not been coded/allowed internally. 

Thread Tools  
Display Modes  


Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
Moving mesh  Niklas Wikstrom (Wikstrom)  OpenFOAM Running, Solving & CFD  122  June 15, 2014 06:20 
How to implement anisotropic diffusion coefficient  benk  OpenFOAM  1  March 25, 2010 22:41 
Automotive test case  vinz  OpenFOAM Running, Solving & CFD  98  October 27, 2008 09:43 
Species diffusion coefficient  iceabc  FLUENT  1  June 10, 2004 10:04 
Replace periodic by inletoutlet pair  lego  CFX  3  November 5, 2002 21:09 