> Communication by mails is not simple :-).
I agree ;')
> 1.
> > The FEM.py would "just" have a command to start the solver
> >> I would say yes for meshing / conditions, no for starting the solver. The
> >> reason is really simple: for a trivial problem this would be doable, but I
> >> do not see how this is within scope of the PythonOCC project.
>
> Cannot a python program execute a sh command like:
> "Code_Aster_Installation_Folder/as_run Code_Aster_export_file.export"?
> This is what I call "a command to start the solver." It is much like any
> other command to start any other executable :-).
Sure, it would be os.system('as_run ***').
Trivial, right?
Far easier than authoring a .export file ;')
Btw, the working you show in the exporter is _awesome_! Its much more like the
Code_Saturn wizard, which I think is much better engineerd than ASTK.
Pierre, it would be great to have a pythonocc-code-aster project.
We simply have to distinct between "core pythonocc" and contributed projects.
Again, I think the mariage between pythonOCC & Code_Aster is something really
really important!
> 2.
> >> I do think that there is sufficient reason to implement meshing and
> >> boundary / initial conditions in pythonOCC however.
> Please Jelle, I beg you, what do you mean by "to implement [...] boundary /
> initial conditions"?
> => is it only to create groups of elements or nodes in the generated mesh?
> => if not, do you mean that you will modify boundary / initial conditions of
> an existing model?
> => if so, how?
In Salome terminology, its would be GroupOnGeom ( adding groups to Brep
topology ), and methods for adding / subtracting groups.
Those groups than can be used in the .comm simulation specification.
f1,f2,f3,f4,f5,f6 = Topo(box).faces()
smesh_mesh.GroupOnGeom(f1,'load')
smesh_mesh.GroupOnGeom(f4,'fixate')
So, its just defining and naming a group. That's all.
> It would be really graceful of you to definitely shed some light on this
> topic (and also maybe detail this part in the FEM.py sketch).
Did I do so?
> I thank you in advance for your help.
Thanks for _your_ help Pierre!!
-jelle
_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users