In examples/large_deformation/hyperelastic.py a rotation by displacements is applied. By using a similar function the vectors defining the force couples could be defined for dw_surface_ltr (IMHO). Does it make sense?
r.
----- Reply message -----
From: "Andre Smit" <freev...(a)gmail.com>
To: <sfepy...(a)googlegroups.com>
Subject: Torque
Date: Sat, Dec 18, 2010 05:10
What is the best way to apply a torque load to a model?
--
Andre
--
You received this message because you are subscribed to the Google Groups "sfepy-devel" group.
To post to this group, send email to sfepy...(a)googlegroups.com.
To unsubscribe from this group, send email to sfepy-devel...(a)googlegroups.com.
For more options, visit this group at http://groups.google.com/group/sfepy-devel?hl=en.
I am currrently looking for FEM packages to help me solve a system of
beams and columns, basically a collection of 1D bernoulli/timoshenko
line elements.
I started reading SfePy docs and i am getting the idea that doing the
above is not really possible here, am i right?
Are only 2D area elements permitted in SfePy?
Or is there any direct support for solving 1D line elements too..
Cheers
Nimish
Hi !
First of all, congratulation for this great piece of software !
I was trying to build and install SfePy system-wide (2014.1 or 2014.2), but
ran into troubles. I followed the instructions on the website ("python
setup.py build", then "python setup.py install").
There was no special error during the build (some warnings from gcc) or the
installation.
However, when I try to run the tests, nothing is working :
> 79 test file(s) executed in 0.55 s, 92 failure(s) of 103 test(s)
The errors are due to python that fails to import SfePy modules :
./run_tests.py --debug tests/test_cmesh.py
> ....
> ....
> ....
> File "tests/test_cmesh.py", line 96, in test_cmesh_counts
> from sfepy.discrete.fem import Mesh
> File "/scratch/packages/sfepy-2014.2/sfepy/discrete/__init__.py", line
> 8, in <module>
> from variables import Variables, Variable, FieldVariable,
> create_adof_conns
> File "/scratch/packages/sfepy-2014.2/sfepy/discrete/variables.py", line
> 12, in <module>
> import sfepy.linalg as la
> File "/scratch/packages/sfepy-2014.2/sfepy/linalg/__init__.py", line 1,
> in <module>
> from extmods.crcm import rcm, permute_in_place
> ImportError: No module named crcm
I don't understant, because everything is installed in my
/usr/local/lib/python2.7/
(I run an ubuntu 14.04)
If I do an inplace build, everything works fine (but I really want to
install SfePy system-wide...)
I really don't know how to fix that... any idea ?
Thank you very much !
G.
See [1] - the arguments depend on the kind of function.
[1] http://sfepy.org/doc-devel/users_guide.html#functions
----- Reply message -----
From: "Matthew Dornfeld" <mdor...(a)gmail.com>
To: <sfepy...(a)googlegroups.com>
Subject: [sfepy-devel] How does SfePy determine which arguments to pass to functions.
Date: Mon, Aug 25, 2014 19:30
I'm looking at this example here htt p://sfepy.org/doc-devel/examples/diffusion/poisson_functions.html. I see how all the functions are defined out in Python space. Then they're passed to SfePy by storing them in the functions dict, but there doesn't seem to be any specific mention of which arguments are passed to these functions by SfePy. How exactly does this work? Are the same variables passed to each function?
--
You received this message because you are subscribed to the Google Groups "sfepy-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sfepy-devel...(a)googlegroups.com.
To post to this group, send email to sfepy...(a)googlegroups.com.
Visit this group at http://groups.google.com/group/sfepy-devel.
I'm looking at this example here htt
p://sfepy.org/doc-devel/examples/diffusion/poisson_functions.html. I see
how all the functions are defined out in Python space. Then they're passed
to SfePy by storing them in the functions dict, but there doesn't seem to
be any specific mention of which arguments are passed to these functions by
SfePy. How exactly does this work? Are the same variables passed to each
function?
Hi,
I'm trying to use sfepy to model the temperature distribution at steady
state, where theres a heat source, conduction through a solid, and
convection across a solid/liquid interface. Struggling with the convection
part... I've been doing some reading and I think I need to enforce a
convective boundary condition, sometimes known as a robin boundary
condition. This would add a term where you integrate the temperature of
the liquid across the interface surface. Does this sound right? Are there
any examples of doing something like this?
Thanks,
Geoff
Hi Robert,
Me again :) but I think this one is easy... in the previous thread about
flux I was computing electric field from voltage in the post processing
step. I would like to compute energy density also, from electric field. I
believe its something like this, in the post_process hook:
# compute the electric field
electric_field = pb.evaluate('ev_grad.i1.Omega( v )', mode='el_avg')
electric_field *= -1.0
out['electric_field'] = Struct(name='Electric field', mode='cell',
data=electric_field, dofs=None)
# compute the energy density
energy_density = pb.evaluate('dw_volume_dot.i1.Omega(p.sigma, ef, ef)',
ef=electric_field)
out['energy_density'] = Struct(name='Energy density', mode='cell',
data=energy_density, dofs=None)
However, I get an error when its parsing the variables. How do I specify
ef variable properly? I attached the relevant files in case its necessary.
Thank you,
Geoff
FYI: As SciPy 0.12.0 is out and one of the release highlights is "Support for
Python 2 and Python 3 from the same code base (no more 2to3)", we can think
seriously about updating SfePy in this respect as well, cf. [1].
r.
[1] https://github.com/sfepy/sfepy/issues/164