File tree Expand file tree Collapse file tree 3 files changed +12
-16
lines changed
Expand file tree Collapse file tree 3 files changed +12
-16
lines changed Original file line number Diff line number Diff line change 22
33
44
5- mesh_path = "/ ../3rdparty/data/square_beam.mesh"
5+ mesh_path = "../3rdparty/data/square_beam.mesh"
66tag_path = "../3rdparty/data/square_beam.txt"
77
88settings = pf .Settings ()
Original file line number Diff line number Diff line change 1- import polyfempy
1+ import polyfempy as pf
22import numpy as np
3- import Settings
4- import Problems
53
64
75
86
9- solver = polyfempy .Solver ()
7+ solver = pf .Solver ()
108
119
1210#some setup
1311mesh_path = "../3rdparty/data/circle2.msh"
1412output = "inflation.obj"
1513
16- settings = Settings .Settings ()
14+ settings = pf .Settings ()
1715settings .discr_order = 2
1816settings .normalize_mesh = True
1917settings .vismesh_rel_area = 0.00001
20- settings .scalar_formulation = polyfempy .ScalarFormulations .Laplacian
18+ settings .scalar_formulation = pf .ScalarFormulations .Laplacian
2119
22- problem = Problems .GenericScalar ()
20+ problem = pf .GenericScalar ()
2321problem .add_dirichlet_value ("all" , 10 )
2422problem .rhs = 0
2523settings .set_problem (problem )
3533
3634# now we got the solution of the first laplacian, we use it as rhs for the second one
3735# setup zero bc and use sol as rhs
38- problem = Problems .GenericScalar ()
36+ problem = pf .GenericScalar ()
3937problem .add_dirichlet_value ("all" , 0 )
4038problem .rhs = 0
4139settings .set_problem (problem )
Original file line number Diff line number Diff line change 1- import polyfempy
2- import Settings
3- import Problems
1+ import polyfempy as pf
42
53
64
75
86
97mesh_path = "../3rdparty/data/square_beam_h.HYBRID"
108
11- settings = Settings .Settings ()
9+ settings = pf .Settings ()
1210settings .discr_order = 1
1311settings .normalize_mesh = False
1412
1816settings .set_material_params ("nu" , 0.35 )
1917
2018settings .nl_solver_rhs_steps = 5
21- settings .tensor_formulation = polyfempy .TensorFormulations .NeoHookean
19+ settings .tensor_formulation = pf .TensorFormulations .NeoHookean
2220
23- problem = Problems .Torsion ()
21+ problem = pf .Torsion ()
2422problem .fixed_boundary = 5
2523problem .turning_boundary = 6
2624problem .axis_coordiante = 2
3230settings .set_problem (problem )
3331
3432
35- solver = polyfempy .Solver ()
33+ solver = pf .Solver ()
3634
3735
3836solver .settings (settings .serialize ())
You can’t perform that action at this time.
0 commit comments