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

How to use user-define database file? (.scm)

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By shanheplus

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 12, 2020, 10:45
Default How to use user-define database file? (.scm)
  #1
New Member
 
SHAN He
Join Date: Apr 2020
Posts: 17
Rep Power: 6
shanheplus is on a distinguished road
I defined the R134a_liquid material as following.
I referred the FLUENT database "propdb.scm"'s format.
However, it does work?
I don't know why.
Wish for answering me.
Thanks.

Code:
 
(r134a_liquid
  fluid
  (chemical-formula . r134a<l>)
  (density (polynomial piecewise-linear (268 . 1311.6) (268.1 . 1311.3) (268.2 . 1311) (268.3 . 1310.6) (268.4 . 1310.3) (268.5 . 1310) (268.6 . 1309.7) (268.7 . 1309.3) (268.8 . 1309) (268.9 . 1308.7) (269 . 1308.4) (269.1 . 1308) (269.2 . 1307.7) (269.3 . 1307.4) (269.4 . 1307.1) (269.5 . 1306.7) (269.6 . 1306.4) (269.7 . 1306.1) (269.8 . 1305.8) (269.9 . 1305.4) (270 . 1305.1) (270.1 . 1304.8) (270.2 . 1304.5) (270.3 . 1304.1) (270.4 . 1303.8) (270.5 . 1303.5) (270.6 . 1303.2) (270.7 . 1302.8) (270.8 . 1302.5) (270.9 . 1302.2) (271 . 1301.8) (271.1 . 1301.5) (271.2 . 1301.2) (271.3 . 1300.9) (271.4 . 1300.5) (271.5 . 1300.2) (271.6 . 1299.9) (271.7 . 1299.6) (271.8 . 1299.2) (271.9 . 1298.9) (272 . 1298.6) (272.1 . 1298.2) (272.2 . 1297.9) (272.3 . 1297.6) (272.4 . 1297.3) (272.5 . 1296.9) (272.6 . 1296.6) (272.7 . 1296.3) (272.8 . 1295.9) (272.9 . 1295.6) (273 . 1295.3) (273.1 . 1294.9) (273.2 . 1294.6) (273.3 . 1294.3) (273.4 . 1294) (273.5 . 1293.6) (273.6 . 1293.3) (273.7 . 1293) (273.8 . 1292.6) (273.9 . 1292.3) (274 . 1292) (274.1 . 1291.6) (274.2 . 1291.3) (274.3 . 1291) (274.4 . 1290.6) (274.5 . 1290.3) (274.6 . 1290) (274.7 . 1289.6) (274.8 . 1289.3) (274.9 . 1289) (275 . 1288.6) (275.1 . 1288.3) (275.2 . 1288) (275.3 . 1287.6) (275.4 . 1287.3) (275.5 . 1287) (275.6 . 1286.6) (275.7 . 1286.3) (275.8 . 1286) (275.9 . 1285.6) (276 . 1285.3) (276.1 . 1285) (276.2 . 1284.6) (276.3 . 1284.3) (276.4 . 1284) (276.5 . 1283.6) (276.6 . 1283.3) (276.7 . 1283) (276.8 . 1282.6) (276.9 . 1282.3) (277 . 1281.9) (277.1 . 1281.6) (277.2 . 1281.3) (277.3 . 1280.9) (277.4 . 1280.6) (277.5 . 1280.3) (277.6 . 1279.9) (277.7 . 1279.6) (277.8 . 1279.3) (277.9 . 1278.9)))
  (specific-heat (polynomial piecewise-linear (268 . 1327.5) (268.3 . 1328.3) (268.6 . 1329) (268.9 . 1329.8) (269.2 . 1330.6) (269.5 . 1331.3) (269.8 . 1332.1) (270.1 . 1332.9) (270.4 . 1333.7) (270.7 . 1334.5) (271 . 1335.3) (271.3 . 1336.1) (271.6 . 1336.9) (271.9 . 1337.7) (272.2 . 1338.5) (272.5 . 1339.3) (272.8 . 1340.1) (273.1 . 1340.9) (273.4 . 1341.7) (273.7 . 1342.5) (274 . 1343.4) (274.3 . 1344.2) (274.6 . 1345) (274.9 . 1345.9) (275.2 . 1346.7) (275.5 . 1347.5) (275.8 . 1348.4) (276.1 . 1349.2) (276.4 . 1350.1) (276.7 . 1351) (277 . 1351.8) (277.3 . 1352.7) (277.6 . 1353.6) (277.9 . 1354.4)))
  (thermal-conductivity (polynomial piecewise-linear (268 . 0.094308) (268.3 . 0.094174) (268.6 . 0.09404) (268.9 . 0.093905) (269.2 . 0.093771) (269.5 . 0.093637) (269.8 . 0.093503) (270.1 . 0.09337) (270.4 . 0.093236) (270.7 . 0.093102) (271 . 0.092969) (271.3 . 0.092835) (271.6 . 0.092702) (271.9 . 0.092568) (272.2 . 0.092435) (272.5 . 0.092302) (272.8 . 0.092169) (273.1 . 0.092036) (273.4 . 0.091903) (273.7 . 0.09177) (274 . 0.091637) (274.3 . 0.091504) (274.6 . 0.091371) (274.9 . 0.091239) (275.2 . 0.091106) (275.5 . 0.090974) (275.8 . 0.090841) (276.1 . 0.090709) (276.4 . 0.090577) (276.7 . 0.090444) (277 . 0.090312) (277.3 . 0.09018) (277.6 . 0.090048) (277.9 . 0.089916)))
  (viscosity (polynomial piecewise-linear (268 . 0.000268) (268.3 . 0.0002683) (268.6 . 0.0002686) (268.9 . 0.0002689) (269.2 . 0.0002692) (269.5 . 0.0002695) (269.8 . 0.0002698) (270.1 . 0.0002701) (270.4 . 0.0002704) (270.7 . 0.0002707) (271 . 0.000271) (271.3 . 0.0002713) (271.6 . 0.0002716) (271.9 . 0.0002719) (272.2 . 0.0002722) (272.5 . 0.0002725) (272.8 . 0.0002728) (273.1 . 0.0002731) (273.4 . 0.0002734) (273.7 . 0.0002737) (274 . 0.000274) (274.3 . 0.0002743) (274.6 . 0.0002746) (274.9 . 0.0002749) (275.2 . 0.0002752) (275.5 . 0.0002755) (275.8 . 0.0002758) (276.1 . 0.0002761) (276.4 . 0.0002764) (276.7 . 0.0002767) (277 . 0.000277) (277.3 . 0.0002773) (277.6 . 0.0002776) (277.9 . 0.0002779)))
  (molecular-weight (constant . 102.03))
  (reference-temperature (constant . 273.8221)))
khebab likes this.
shanheplus is offline   Reply With Quote

Old   April 13, 2020, 10:26
Default User-Defined Database
  #2
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
For user-defined materials, you do not need to write a scheme file manually. You can directly create a new material within Fluent using GUI. If you really want to save it in .scm, say, for sharing with others or for use in other cases, write it from Fluent's Materials Panel. Click on user-defined database and give it a new name. Then select materials from the case to save it in the database. You can write it manually but you have to follow rather strict format.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   February 26, 2023, 02:16
Default
  #3
New Member
 
khebab
Join Date: Feb 2023
Posts: 2
Rep Power: 0
khebab is on a distinguished road
I have the same issue
I think because Refrigerants have a variable properties !

Hope you answer !
what was your solution for this case !!
khebab is offline   Reply With Quote

Reply


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
[swak4Foam] Installation Problem with OF 6 version Aurel OpenFOAM Community Contributions 14 November 18, 2020 16:18
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 Seroga OpenFOAM Community Contributions 9 June 12, 2015 17:18
friction forces icoFoam ofslcm OpenFOAM 3 April 7, 2012 10:57
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 19:08
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51


All times are GMT -4. The time now is 12:27.