# \[GiDlist\] I have applied boundary conditions over differents

**URL:** <https://forum.gidsimulation.com/t/gidlist-i-have-applied-boundary-conditions-over-differents/83>\
**Category:** 2013 - 2005\
**Created:** [October 1, 2012, 2:03pm UTC](https://forum.gidsimulation.com/t/gidlist-i-have-applied-boundary-conditions-over-differents/83 "2012-10-01T14:03:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![geraldos](https://forum.gidsimulation.com/letter_avatar_proxy/v4/letter/g/a87d85/32.png) [@geraldos](https://forum.gidsimulation.com/u/geraldos)\
**Post date:** [October 1, 2012, 2:03pm UTC](https://forum.gidsimulation.com/t/gidlist-i-have-applied-boundary-conditions-over-differents/83/1 "2012-10-01T14:03:44Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![escolano](https://forum.gidsimulation.com/user_avatar/forum.gidsimulation.com/escolano/32/6_2.png) [@escolano](https://forum.gidsimulation.com/u/escolano)\
**Post date:** [October 1, 2012, 2:55pm UTC](https://forum.gidsimulation.com/t/gidlist-i-have-applied-boundary-conditions-over-differents/83/2 "2012-10-01T14:55:53Z")

</div>

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](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)  
To: [gidlist at listas.cimne.upc.edu](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)  
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)_  
\_[http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist\_](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_)
