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

Using user function variables in expressions

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By ghorrocks

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 6, 2023, 08:24
Default Using user function variables in expressions
  #1
New Member
 
Join Date: Jul 2023
Posts: 3
Rep Power: 2
jlamb is on a distinguished road
Hi,

I am trying to model a stent in a blood vessel as a type of porous media. To do this, instead of a 3D porous domain, I am attempting to use a 2D interface with a pressure change as defined in the theory documentation. This seems simple enough with constant Kloss and Kperm coefficients but my aim is to have them vary over the stent to represent a heterogenous interface.

As far as I can work out, this should be doable with User Functions and Expressions. Essentially, I have imported spatial data with a Kloss and Kperm variable as an interpolation function (which appear on the right place of my mesh), and have tried to include them in an expression for the pressure change dP.

Unfortuantely, I cannot get this to work I get the error message 'Bad expression value 'dP' detetcted in parameter 'Pressure Change' in object '/FLOW:Flow Analysis 1/DOMAIN INTERFACE:STENT/INTERFACE MODELS/MASS AND MOMENTUM/MOMENTUM INTERFACE MODEL'. CEL error: The following unrecognised names were referenced: Kloss.Kloss, Kperm.Kperm.

It feels like their should be a simple fix but I can't for the life of me figure out, any help would be much appreciated.
jlamb is offline   Reply With Quote

Old   July 6, 2023, 19:42
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
It says it is just a CEL error, which means you syntax is wrong. Please attach your CCL or output file.
Opaque likes this.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Reply

Tags
cel, interfaces, porous media, user functions


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
whats the cause of error? immortality OpenFOAM Running, Solving & CFD 13 March 24, 2021 07:15
[blockMesh] Errors during blockMesh meshing Madeleine P. Vincent OpenFOAM Meshing & Mesh Conversion 51 May 30, 2016 10:51
[blockMesh] non-orthogonal faces and incorrect orientation? nennbs OpenFOAM Meshing & Mesh Conversion 7 April 17, 2013 05:42
is internalField(U) equivalent to zeroGradient? immortality OpenFOAM Running, Solving & CFD 7 March 29, 2013 01:27
User field function for specific heat deifnition crevoise STAR-CCM+ 2 January 28, 2013 04:25


All times are GMT -4. The time now is 10:43.