You won't see ccxwriter definition if it's used like that:
Code: Select all
src/Mod/Fem/femsolver/calculix/write_constraint_fixed.py:def write_meshdata_constraint(f, femobj, fix_obj, ccxwriter):
You have to check how to function is called:
Code: Select all
src/Mod/Fem/femsolver/writerbase.py: con_module.write_meshdata_constraint(the_file, femobj, the_obj, self)
ccxwriter is self. Silly question, but are you familiar with python self?
https://www.geeksforgeeks.org/self-in-python-class/
I'll be away for a while, but if you post the part of the ccx input file I or someone else might try to help you. Element data is generated from mesh IIRC and how it's linked with the material - I'd check the CalculiX docs.
https://web.mit.edu/calculix_v2.7/Calcu ... index.html
https://web.mit.edu/calculix_v2.7/Calcu ... de113.html
https://web.mit.edu/calculix_v2.7/Calcu ... node7.html <- an example
"material is assigned to the element set Eall by means of the keyword card *SOLID SECTION. "
P.S. I found your question now. You want to extract material parameters from a ccx input file?
Material para,enters are written in: src/Mod/Fem/femsolver/calculix/write_femelement_material.py
Then the definition is used for elements - name of the material is the handle.