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

Design 3D is failed to generate DBA for condensable gas

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 9, 2024, 09:00
Smile Design 3D is failed to generate DBA for condensable gas
  #1
New Member
 
Zhiyuan Liu
Join Date: Oct 2018
Location: China
Posts: 26
Rep Power: 8
Saeef is on a distinguished road
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.
Saeef 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
AMR InterFoam Miguel Hernandez OpenFOAM Running, Solving & CFD 1 October 4, 2022 17:25
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 06:21
Constant velocity of the material Sas CFX 15 July 13, 2010 09:56
GA's in aerodynamic design srinath Main CFD Forum 1 May 31, 2004 04:25
Gas pressure question Dan Moskal Main CFD Forum 0 October 24, 2002 23:02


All times are GMT -4. The time now is 15:33.