-
-
September 25, 2018 at 3:02 am
DanMynhart
SubscriberHi there,
I'm trying to model the flow of a viscous oil through a straight pipeline. I have made a PVT file in PVTP (Schlumberger software) but I am not sure how to import into Ansys.
Is there a way I can create a similar database in Ansys?
Regards,
Dan
-
September 25, 2018 at 6:07 am
Keyur Kanade
Ansys EmployeeI am not sure about PVT files. Can you please elaborate on it? What exactly this file has?
In Fluent, you can always define new material and can give user specific properties to this material.
Regards,
Keyur
-
September 25, 2018 at 6:08 am
DrAmine
Ansys EmployeeYou can check if your fluid is included in the NIST library inside Fluent. The list of materials supported by REFPROP v9.1 can be found in the Fluent User's Guide 7.16.4.
Otherwise have to write some UDF to read the content of your PVT file and fill in the material definition by using dedicated DEFINE Macros. Which porperties are included in the PVT file?
-
September 30, 2018 at 2:27 am
DanMynhart
SubscriberHi Keyur,
The file is made using schlumberger software (petroleum experts - .pvi file) and contains information such as the mole% and mass% of the fluid. The fluid is a waxy crude oil with a Wax appearance temperature of 40 degrees celcius. The point of this simulation is to bulding a start up model that determine the pressure required to start up a pipe line that has wax deposition.
The predefined hydrocarbons in ANSYS are not enough to represent the fluid composition. Other information such as Wax appearance temperature, wax content, viscosity and density should also be required at a minimum.
Therefore I need some advice on how to build a file that ANSYS can import and run through a simulation.
In the meantime I will investigate the UDF option.
Many thanks.
-
September 30, 2018 at 2:52 am
DanMynhart
SubscriberThank you Amine also!
-
October 1, 2018 at 4:16 am
DanMynhart
SubscriberI am trying to build a working UDF, but keep getting this error.
Error: The UDF library you are trying to load (libudf11112) is not compiled for parallel use on the current platform (win64).nnThe system cannot find the file specified.
nnU:Waxy Crude Oil PipelineUDF_RukthongRukthongTrial_filesdp0FFFFluentlibudf11112win643ddp_hostlibudf.dll
Error Object: #f
-
October 1, 2018 at 4:17 am
DanMynhart
Subscriber/*********************************************************************/
/* UDF for specifying a temperature-dependent viscosity property */
/*********************************************************************/
D1;
FD1;
temp;
viscosity;
volume; /* real variable named volume is declared globally */
main(compute_volume, domain)
{
/* code that computes volume of some zone */
volume = ((3.141*D1*D1)/4)*FD1;
}
C_T(cell_viscosity, cell, thread)
{
viscosity; /* local variable */
temp = C_T(cell, thread); /* local variable */
if (temp > 288.)
viscosity = 5.5e-3;
else if (temp > 286.)
viscosity = 143.2135 - 0.49725 * temp;
else
viscosity = 1.;
return viscosity;
}
-
October 1, 2018 at 4:17 am
DanMynhart
SubscriberThis is the code we are using...
-
October 1, 2018 at 4:31 am
Keyur Kanade
Ansys EmployeeHello,
If you have udf which is working in serial mode then you will need to make some changes to that udf to work in parallel mode. Please see following link.
https://www.learncax.com/knowledge-base/blog/by-category/cfd/parallelization-of-udfs-in-ansys-fluent
Also for defining property you can use DEFINE_PROPERTY macro as shown in image below.
Regards,
Keyur
-
- You must be logged in to reply to this topic.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- Suppress Fluent to open with GUI while performing in journal file
- Floating point exception in Fluent
- What are the differences between CFX and Fluent?
- Heat transfer coefficient
- Getting graph and tabular data from result in workbench mechanical
- The solver failed with a non-zero exit code of : 2
- Difference between K-epsilon and K-omega Turbulence Model
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error in cfd post
-
2656
-
2120
-
1347
-
1118
-
461
© 2023 Copyright ANSYS, Inc. All rights reserved.