|
[Sponsors] |
Design 3D is failed to generate DBA for condensable gas |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Zhiyuan Liu
Join Date: Oct 2018
Location: China
Posts: 26
Rep Power: 7 ![]() |
Hi,
I'm trying to use the Design 3D for a R134a compressor optimization. However, I found the D3D can not generate the DBA when compressor efficency is selected! The error is caused by the Cfview Macro python. project_file = '' data_filename = '' solution_file = '3D' quantity_name = 'C_ISEN_EFF_TOT2TOT' entry_type = 'REAL_ENTRY' from f3d_macro import * GAMMA=search_GAMMA(project_file) Pt1 =search_PT_inlet (project_file) Pt2 =search_PT_outlet(project_file) Tt1 =search_TT_inlet (project_file) Tt2 =search_TT_outlet(project_file) Efficiency =((Pt2/Pt1)**((GAMMA-1)/GAMMA)-1) / ((Tt2/Tt1)-1) f = open (data_filename, 'w', 0) f.write ('PARAMETER\n') s = 'NAME %s\n' %(quantity_name) f.write (s) s = 'TYPE %s\n' %(entry_type) f.write (s) s = 'VALUE %12.6f\n' %(Efficiency) f.write (s) f.close () FileCloseProject() Quit () Obviously, such an efficiency definition is only suitable for ideal gases. How define a new Macro_py to use the efficiency in .mf file as output. |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
AMR InterFoam | Miguel Hernandez | OpenFOAM Running, Solving & CFD | 1 | October 4, 2022 16:25 |
mass flow in is not equal to mass flow out | saii | CFX | 12 | March 19, 2018 05:21 |
Constant velocity of the material | Sas | CFX | 15 | July 13, 2010 08:56 |
GA's in aerodynamic design | srinath | Main CFD Forum | 1 | May 31, 2004 03:25 |
Gas pressure question | Dan Moskal | Main CFD Forum | 0 | October 24, 2002 22:02 |