fcFEM - FEA from start to finish

About the development of the FEM module/workbench.

Moderator: bernd

User avatar
PrzemoF
Veteran
Posts: 3380
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: fcFEM - FEA from start to finish

Post by PrzemoF »

OK, if that's the case I'd say do some reading on object oriented programming first. For most guys Fortran is ancient magic. Or
User avatar
johnwang
Veteran
Posts: 1028
Joined: Sun Jan 27, 2019 12:41 am

Re: fcFEM - FEA from start to finish

Post by johnwang »

PrzemoF wrote: Wed May 11, 2022 9:20 pm ccxwriter is self.
In Mod\Fem\femsolver\calculix\writer.py:

Code: Select all

class FemInputWriterCcx(writerbase.FemInputWriter):
    def __init__(
        self,
        analysis_obj,
        solver_obj,
        mesh_obj,
        member,
        dir_name=None,
        mat_geo_sets=None
    ):
	......
    # ********************************************************************************************
    # write calculix input
    def write_solver_input(self):
    	......
        # materials and fem element types
        write_femelement_material.write_femelement_material(inpfile, self)

    

And in Mod\Fem\femsolver\calculix\write_femelement_material.py

Code: Select all

def write_femelement_material(f, ccxwriter):
So self=ccxwriter.
hfc series CAE workbenches for FreeCAD (hfcNastran95, hfcMystran, hfcFrame3DD, hfcSU2 and more)
User avatar
HarryvL
Veteran
Posts: 1091
Joined: Sat Jan 06, 2018 7:38 pm
Location: Netherlands

Re: fcFEM - FEA from start to finish

Post by HarryvL »

Thanks
Post Reply