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

Pressure Loss Interface

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By evcelica

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 6, 2023, 11:49
Default Pressure Loss Interface
  #1
New Member
 
Join Date: Jul 2023
Posts: 3
Rep Power: 3
jlamb is on a distinguished road
Hi,

I'm trying to set up a pressure loss interface to model a porous material in 2D. I have used the CFX-pre theory book to find the isotropic loss model I would like to use and written it into an expression as CEL as:

dp = -(viscosity/Kperm)*Velocity - Kloss*(density/2)*Velocity^2

I have defined both Kperm and Kloss in expressions with units of [m^2] and [m^-1] respectively. This is where the issue lies. When I put this expression into the 'Pressure Change' box in my interface I get an error 'Expression resolves to invalid units (kg m^-2 s^-1). Expected units ('kg m^-1 s^-2').

I understand where this error is coming from, but cannot figure out what units I should be defining here to fix the error. The units I defined were taken from CFX's own interface (if you initialise a porous domain you can see the permability and resistance loss units), and the expression is taken directly from the theory book and replicated in multiple other sources.

If anyone has any experience with using a Pressure Change interface that would be great.
jlamb is offline   Reply With Quote

Old   July 6, 2023, 11:55
Default
  #2
New Member
 
Join Date: Jul 2023
Posts: 3
Rep Power: 3
jlamb is on a distinguished road
I have just manually adjusted the units, just to see if the rest of the setup was right (fully aware what I have changed them to are probably not correct) and a new error message: 'Non-scalar variable 'Velocity' referenced by parameter 'Pressure Change'. Non-scalars are only allowed as arguments to integrated quantity functions'.
This makes me think I'm barking up the wrong tree entirely, any help would be massively appreciated!
jlamb is offline   Reply With Quote

Old   July 6, 2023, 17:26
Default
  #3
Senior Member
 
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 1,188
Rep Power: 23
evcelica is on a distinguished road
The isotropic loss model you are referring to is a volumetric loss model, meant for use in a porous domain, not across a zero thickness interface. If you look at the units of the equation, they result to dP/dL, not just dP.
Opaque likes this.
evcelica is offline   Reply With Quote

Old   July 6, 2023, 17:43
Default
  #4
Senior Member
 
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33
Opaque will become famous soon enough
Quote:
Originally Posted by jlamb View Post
I have just manually adjusted the units, just to see if the rest of the setup was right (fully aware what I have changed them to are probably not correct) and a new error message: 'Non-scalar variable 'Velocity' referenced by parameter 'Pressure Change'. Non-scalars are only allowed as arguments to integrated quantity functions'.
This makes me think I'm barking up the wrong tree entirely, any help would be massively appreciated!
Warning you that your model involves a vector, when it expects a scalar.

Which velocity do you think your "pressure interface model" (once you settled on which one to use) requires?
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
Opaque is offline   Reply With Quote

Reply

Tags
cfx, interface, pressure change, units


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
viscosity udf don't use correct temperature and strain rate rezvani Fluent UDF and Scheme Programming 8 May 27, 2021 06:40
How to use the CFX periodic interface zhihuawan CFX 61 January 15, 2018 17:20
Question about adaptive timestepping Guille1811 CFX 25 November 12, 2017 18:38
Wrong flow in ratating domain problem Sanyo CFX 17 August 15, 2015 07:20
Hydrostatic pressure in 2-phase flow modeling (long) DS & HB Main CFD Forum 0 January 8, 2000 16:00


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