FEM: element flow 1D, deactivate not supported fluid types

This commit is contained in:
Bernd Hahnebach
2019-07-04 17:55:42 +02:00
parent de74fe1027
commit 791701dbfa
3 changed files with 8 additions and 1 deletions

View File

@@ -277,6 +277,7 @@ class _TaskPanelFemElementFluid1D:
QtCore.SIGNAL("cellChanged(int, int)"),
self.pump_characteristics_changed
)
# some fluid types deactivated since they are not implemented in ccx writer
self.parameterWidget.cb_section_type.addItems(
_FemElementFluid1D._FemElementFluid1D.known_fluid_types
)

View File

@@ -33,7 +33,9 @@ __url__ = "http://www.freecadweb.org"
class _FemElementFluid1D:
"The FemElementFluid1D object"
known_fluid_types = ['Liquid', 'Gas', 'Open Channel']
known_fluid_types = ['Liquid']
# 'Gas', 'Open Channel' are not impemented in ccx writer
# known_fluid_types = ['Liquid', 'Gas', 'Open Channel']
known_liquid_types = [
'PIPE MANNING',
'PIPE ENLARGEMENT',

View File

@@ -817,10 +817,14 @@ class FemInputWriterCcx(writerbase.FemInputWriter):
material
)
section_geo = liquid_section_def(fluidsec_obj, section_type)
'''
# deactivate as it would result in section_def and section_geo not defined
# deactivated in the App and Gui object and thus in the task panel as well
elif fluidsec_obj.SectionType == 'Gas':
section_type = fluidsec_obj.GasSectionType
elif fluidsec_obj.SectionType == 'Open Channel':
section_type = fluidsec_obj.ChannelSectionType
'''
f.write(section_def)
f.write(section_geo)
elif 'shellthickness_obj'in ccx_elset: # shell mesh