how can I use esys.pycad.transformations?

Asked by Luci Livadaru

I have a small technical question about escript. First, I would like to say that it's a wonderful FEM package and I will be using it much in the future, as well as recommending it to anyone.

My question is related to building a domain using pycad. In particular, I would like to use the facilities included in esys.pycad.transformations.

Unfortunately, I cannot figure out from all the documentation I was able to find how to use these functions to copy say a Line or a CurveLoop that I previously created. I cannot tell if this even possible. For example, something like:

a = esys.pycad.transformations.Translation b=[1,1,1])

works, but I cannot tell what it does.

If I create a CurveLoop, say curv1, and I like to create a translated copy of it, by doing

curv2 = esys.pycad.transformations.Translation(curv1, b=[1,1,1])

I get an error:
TypeError: __init__() got multiple values for keyword argument 'b'

Does someone know how to use these transformations?
Are they supposed to create copies of any kind of primitives, as I understand?
Are there some examples out there on how to use these?
Many thanks!

Question information

Language:
English Edit question
Status:
Answered
For:
esys-escript Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Lutz Gross (l-gross) said :
#1

Try:

curv2 = esys.pycad.transformations.Translation(b=[1,1,1])*curv1

Can you help with this problem?

Provide an answer of your own, or ask Luci Livadaru for more information if necessary.

To post a message you must log in.