[GiDlist] I have applied boundary conditions over differents

Moderator: GiD Team

Post Reply
geraldos

[GiDlist] I have applied boundary conditions over differents

Post by geraldos »

Hi Everybody,


I am going to customize my problem type for to analyse, by finite
element methods, a bi-dimensional potential problem.

By *.cnd and *.bas files I created a boundary conditions over lines
called "Prescribed_potential" and I want to access the fields of the
conditions

into of the *.bas file by command *tcl(GiD_Info conditions
prescribed_potential geometry).

How can I to do?


My thanks,

Geraldo Belmonte
User avatar
escolano
Posts: 1922
Joined: Sun Sep 05, 1982 10:51 pm

[GiDlist] I have applied boundary conditions over differents

Post by escolano »

In the .bas file in general you must only use *tcl commands if it not
possible do what you want with .bas standard commands
(then with Tcl is possible do much more sophisticated thinks, but probably
less efficiently for big meshes)

typically to access to the fields of the condition applied to nodes or
elements you do something like
*set cond Prescribed_potential *nodes
*loop nodes *onlyincond
*nodesnum *cond(your_question)
*end nodes

I have assumed that your condition was defined 'over nodes', then in next
loop you will iterate on the nodes with the related condition applied over
them,
and with *cond you can have the value of the field you want.
it is recommended to use the name of the question, but it is also possible
to use its numeric index 1, 2, ...
(it is better to be maintained, e.g. if in the future you add new fields to
your condition definition)


----- Original Message -----
From: "geraldos" geraldos at lncc.br
To: gidlist at listas.cimne.upc.edu
Sent: Monday, October 01, 2012 4:03 PM
Subject: [GiDlist] I have applied boundary conditions over differents
contour lines and I want to access theirs fields.


Hi Everybody,


I am going to customize my problem type for to analyse, by finite
element methods, a bi-dimensional potential problem.

By *.cnd and *.bas files I created a boundary conditions over lines
called "Prescribed_potential" and I want to access the fields of the
conditions

into of the *.bas file by command *tcl(GiD_Info conditions
prescribed_potential geometry).

How can I to do?


My thanks,

Geraldo Belmonte




_______________________________________________
GiDlist mailing list
GiDlist at listas.cimne.upc.edu
http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist
Post Reply