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

Export Data Access Macross. Plot Second-Order Pressure.

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By LuckyTran

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 11, 2017, 15:46
Default Export Data Access Macross. Plot Second-Order Pressure.
  #1
New Member
 
Brian
Join Date: May 2017
Posts: 2
Rep Power: 0
BrianGrass is on a distinguished road
Hello community! I'm new in Fluent and I want to know if what I'm trying to do is possible and if it is, how can I do it.

I need to plot the Interstitial Fluid Pressure for a solid tumor surrounded by interstitial fluid being subjected to focused ultrasound waves (both high intensity and low intensity).

I have an UDF for first-order parameters defined like this:

DEFINE_SOURCE(msource,c,t,dS,eqn)
{
real source;
source = (CSV * (VFP - C_P(c, t) - SIG * (PIV-PIF))) - (CSL * (C_P(c, t) - ILP));
dSn[eqn] = 0.0;
return source;
}

(One for tumor tissue and another for normal tissue).

C_P(c, t) stands for the data access macros that accesses the pressure in a cell designated by the pointer c contained in the cell thread designated by the pointer t. The variables CSV, CSL, VFP, SIG, PIV, PIF, ILP are all constant-valued parameters that may take on different values over different cell-threads.

I need to calculate the second-order pressure for this problem, which is a function of C_P(c, t) and the fluid velocity as follows

<P_{2}> = a *<C_P(c, t)^{2}> + b *<V_1^{2}>

Being a and b constants, V_{1} the first-order fluid velocity and P_{2} the second-order pressure.

My attempt to solve this, due to my lack of experience with Fluent is import the calculated values of C_P(c, t) and then write another UDF for the second-order pressure as above and finally import that UDF to solve for P_{2}.

Also I want the instantaneous values of P_{2} over stationary surfaces, not just the mean-valued terms.

Is this possible? Is there another way to do something like this?

I'm looking forward to your answers! Thank you very much for your time.

My best regards!

Brian.
BrianGrass is offline   Reply With Quote

Old   May 13, 2017, 12:35
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,672
Rep Power: 65
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
This could even be done with a custom-field-function instead of a UDF route, but custom-field-functions can't be run in parallel unless you have the latest v18.

Quote:
Originally Posted by BrianGrass View Post
My attempt to solve this, due to my lack of experience with Fluent is import the calculated values of C_P(c, t) and then write another UDF for the second-order pressure as above and finally import that UDF to solve for P_{2}.
This is basic programming / computer science here. Either you have a separate routine to calculate C_P(c,t) or you duplicate that routine into the P_2. The choice is your's and either can work. But if you calculate them separately you need to have UDM assigned for both, which isn't a big deal anyway.

When you are in a steady solver x-velocity is the mean velocity. When you are in a transient solver x-velocity is the instantaneous velocity and the mean variables have a new name.
BrianGrass likes this.
LuckyTran is offline   Reply With Quote

Old   May 13, 2017, 15:15
Default
  #3
New Member
 
Brian
Join Date: May 2017
Posts: 2
Rep Power: 0
BrianGrass is on a distinguished road
Thank you very much!

Do you know of any tutorial that explain how to do that?
BrianGrass is offline   Reply With Quote

Reply

Tags
data access macross, fluent, second-order pressure


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
Periodic flow using Cyclic - comparison with Fluent nusivares OpenFOAM Running, Solving & CFD 30 December 12, 2017 05:35
Utility to export field data tbrycekelly OpenFOAM Post-Processing 0 July 13, 2016 10:42
CFX Solver stopped with error when requested for backup during solver running Mfaizan CFX 40 May 13, 2016 06:50
Calculation of the Governing Equations Mihail CFX 7 September 7, 2014 06:27
pressure gradient term in low speed flow Atit Koonsrisuk Main CFD Forum 2 January 10, 2002 10:52


All times are GMT -4. The time now is 06:00.