Skip to content

Commit

Permalink
FEM: 1DFlow: Solver Implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
kgoao committed Feb 23, 2017
1 parent 6837025 commit da69bd9
Show file tree
Hide file tree
Showing 5 changed files with 444 additions and 50 deletions.
8 changes: 7 additions & 1 deletion src/Mod/Fem/FemInputWriter.py
Expand Up @@ -40,7 +40,7 @@ def __init__(self,
contact_obj, planerotation_obj, transform_obj,
selfweight_obj, force_obj, pressure_obj,
temperature_obj, heatflux_obj, initialtemperature_obj,
beamsection_obj, shellthickness_obj,
beamsection_obj, shellthickness_obj, fluidsection_obj,
analysis_type, dir_name
):
self.analysis = analysis_obj
Expand All @@ -60,6 +60,7 @@ def __init__(self,
self.heatflux_objects = heatflux_obj
self.initialtemperature_objects = initialtemperature_obj
self.beamsection_objects = beamsection_obj
self.fluidsection_objects = fluidsection_obj
self.shellthickness_objects = shellthickness_obj
self.analysis_type = analysis_type
self.dir_name = dir_name
Expand Down Expand Up @@ -108,6 +109,11 @@ def get_constraints_temperature_nodes(self):
for femobj in self.temperature_objects: # femobj --> dict, FreeCAD document object is femobj['Object']
femobj['Nodes'] = FemMeshTools.get_femnodes_by_femobj_with_references(self.femmesh, femobj)

def get_constraints_fluidsection_nodes(self):
# get nodes
for femobj in self.fluidsection_objects: # femobj --> dict, FreeCAD document object is femobj['Object']
femobj['Nodes'] = FemMeshTools.get_femnodes_by_femobj_with_references(self.femmesh, femobj)

def get_constraints_force_nodeloads(self):
# check shape type of reference shape
for femobj in self.force_objects: # femobj --> dict, FreeCAD document object is femobj['Object']
Expand Down

0 comments on commit da69bd9

Please sign in to comment.