[GiDlist] problem in bas file

Moderator: GiD Team

Post Reply
Mark Smith

[GiDlist] problem in bas file

Post by Mark Smith »

Hi you might be able to do someting like this (it worked for me recently)

*loop elems
*loop materials
*if(Matnum==Elemsmat)
......
......
......
*end materials
*end elems


Regards
Mark

-----Original Message-----
From: Andreas Friedberg [mailto:andiatje at mailszrz.zrz.tu-berlin.de]
Sent: 05 August 2001 22:38
To: GiD mailinglist
Subject: [GiDlist] problem in bas file


Hi everybody,

I have a problem specific to the template file I wrote for the tochnog
solver. In the input file for a calculation with tochnog, the materials are
assigned to the elements of the generated mesh. I do this assignement
through the materials file. As I try to implement a template file for
geotechnical analysis with the modified Cam Clay plasticity model, I have to
assign initial values (preconsolidation mean pressure and void ratio) to the
nodes belonging to the elements which were assigned the material specified
by the Cam Clay model. So I have a list of elements which belong to this
material (with *elemsmat I can sort that out in the template file), but I
need a nodes list (something a command like *nodesmat could do, but that
doesn't exist).
I tried to get this list with the following commands:

*loop elems
*if(ElemsMat==imaterial)
*ElemsConec
*endif
*end elems

with imaterial being the number of the plastic material specified by the Cam
Clay model.
The problem with this set of commands is the fact that I get almost all the
points repeated several times in the list. Could you help me get that list
of nodes belonging to a certain material without every node being repeated
several times in the list?

best regards, Andreas Friedberg



--------------------------------------------------------------------------
Linx Printing Technologies plc
+44 (0)1480302100
http://www.linx.co.uk/
This e-mail may contain privileged/confidential information and may be
read, copied and used only by the intended recipient. If you have received
it in error, please contact the sender by return e-mail or by
telephoning +44 (0)1480 302100.
Please then delete the e-mail and do not disclose its contents to any
person.

Any information in this message that does not relate to the official
business of Linx shall be understood as neither given nor endorsed by Linx.
We reserve the right to monitor all e-mail communications through our
internal and external networks.
--------------------------------------------------------------------------
Post Reply