Перейти к статье

 

Информация о свойствах контактов, оболочек, балок, пружин, точечных масс

Разработаны команды, которые сохраняют свойства выбранных блоков для балок, оболочек, пружин и точечных масс в указанный пользователем файл. Аналогичным образом сохраняются в файл свойства контактных пар.

Полный синтаксис команд:

list contact {[[id] {[<id>] [(<id range start> to <id range finish>)...]}...] [<name>] [all]
     [except {[<except id>] [(<except id range start> to <except id range finish>)...]}...]}
     [file <filename>]
list beam properties {[[id] {[<id>] [(<id range start> to <id range finish>)...]}...] [all]
     [except {[<except id>] [(<except id range start> to <except id range finish>)...]}...]}
     [file <filename>]
list lumpmass properties {[[id] {[<id>] [(<id range start> to <id range finish>)...]}...] [all]
     [except {[<except id>] [(<except id range start> to <except id range finish>)...]}...]}
     [file <filename>]
list shell properties {[[id] {[<id>] [(<id range start> to <id range finish>)...]}...] [all]
     [except {[<except id>] [(<except id range start> to <except id range finish>)...]}...]}
     [file <filename>]
list spring properties {[[id] {[<id>] [(<id range start> to <id range finish>)...]}...] [all]
     [except {[<except id>] [(<except id range start> to <except id range finish>)...]}...]}
     [file <filename>]

Пример использования:

list contact 1 file 'D:/hh.txt' - выводит свойства контактной пары Contact 1 в файл hh.txt

list shell properties 1 file 'D:/hh.txt' - выводит свойства оболочек 1 в файл hh.txt

list beam properties all file 'D:/hh.txt' - выводит свойства балок 1 в файл hh.txt

list spring properties all file 'D:/hh.txt' - выводит свойства пружин 1 в файл hh.txt

list lumpmass properties all file 'D:/hh.txt' - выводит свойства точечных масс 1 в файл hh.txt

Функции Python, доступные в модуле fidesys:

string get_contact_properties(int id)
int get_contact_properties_count()
list<int> get_contact_properties_ids()
string get_beam_properties(int id) int get_beam_properties_count() list<int> get_beam_properties_ids()
string get_lump_mass_properties(int id) int get_lump_mass_properties_count() list<int> get_lump_mass_properties_ids()
string get_shell_properties(int id) int get_shell_properties_count() list<int> get_shell_properties_ids()
string get_spring_properties(int id) int get_spring_properties_count() list<int> get_spring_properties_ids()

Пример использования:

ids = fidesys.get_shell_properties_ids()
for id in ids:
  print(fidesys.get_shell_properties(id))