# \[GiDlist\] More about .... I have applied boundary conditions

**URL:** <https://forum.gidsimulation.com/t/gidlist-more-about-i-have-applied-boundary-conditions/84>\
**Category:** 2013 - 2005\
**Created:** [October 2, 2012, 7:46pm UTC](https://forum.gidsimulation.com/t/gidlist-more-about-i-have-applied-boundary-conditions/84 "2012-10-02T19:46:47Z")\
**Posts on this page:** 4\
**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 2, 2012, 7:46pm UTC](https://forum.gidsimulation.com/t/gidlist-more-about-i-have-applied-boundary-conditions/84/1 "2012-10-02T19:46:47Z")

</div>

Hi Escolano,

I am going better explain my problem below.

I work with galerkin discontinuous and I can to apply different  
polynomial order over different elements.

Thus I want to apply over different surfaces different interpolations  
and

I d’like to obtain the following output:

APPROXIMATIONS  
[number\_of\_approximation]  
[approximation\_id] type\_of\_interpolation (e.g. Lagrange ou Legendre)  
[polynomial\_order] [integration\_order]  
.  
.  
.

ELEMENT  
[number\_of\_element]  
[element\_id] [approximation\_id] [material\_id] [node\_1] [node\_2] …  
[node\_(nno\_by\_element)]  
.  
.  
.

However I not access the fields of the approximations applied as  
“conditions”, but only as “material”.

How I can to access the fields the questions applied over surfaces as  
“conditions”?

My thnaks,  
  
  
Geraldo Belmonte  
  
  
Em 2012-10-02 07:00, [gidlist-request at listas.cimne.upc.edu](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist) escreveu:  
_Send GiDlist mailing list submissions to_  
_[gidlist at listas.cimne.upc.edu](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)_  
_To subscribe or unsubscribe via the World Wide Web, visit_  
\_[http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist\_](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_)  
_or, via email, send a message with subject or body ‘help’ to_  
_[gidlist-request at listas.cimne.upc.edu](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)_  
_You can reach the person managing the list at_  
_[gidlist-owner at listas.cimne.upc.edu](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)_  
_When replying, please edit your Subject line so it is more specific_  
_than “Re: Contents of GiDlist digest…”_

_Today’s Topics:_  
_1. I have applied boundary conditions over differents contour_  
_lines and I want to access theirs fields. (geraldos)_  
_2. Re: I have applied boundary conditions over differents_  
_contour lines and I want to access theirs fields. (Enrique_  
_Escolano)_  
  
  
_----------------------------------------------------------------------_  
_Message: 1_  
_Date: Mon, 01 Oct 2012 11:03:44 -0300_  
_From: geraldos [geraldos at lncc.br](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)_  
_Subject: [GiDlist] I have applied boundary conditions over differents_  
_contour lines and I want to access theirs fields._  
_To: [gidlist at listas.cimne.upc.edu](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)_  
_Message-ID: [f3961128a11fbd8ad9f8009af267e21e at lncc.br](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)_  
_Content-Type: text/plain; charset=UTF-8; format=flowed_  
_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_  
  
  
  
  
  
_------------------------------_  
_Message: 2_  
_Date: Mon, 1 Oct 2012 16:55:53 +0200_  
_From: “Enrique Escolano” [escolano at cimne.upc.edu](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)_  
_Subject: Re: [GiDlist] I have applied boundary conditions over_  
_differents contour lines and I want to access theirs fields._  
_To: [gidlist at listas.cimne.upc.edu](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)_  
_Message-ID: [2AF6264253074160BF328E3AD42C1FA9 at mediador](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)_  
_Content-Type: text/plain; format=flowed; charset=“iso-8859-1”;_  
_reply-type=original_  
_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_)  
  
  
_------------------------------_

* * *

_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_)

_End of GiDlist Digest, Vol 27, Issue 2_  
_\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*_

---

<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 3, 2012, 8:56am UTC](https://forum.gidsimulation.com/t/gidlist-more-about-i-have-applied-boundary-conditions/84/2 "2012-10-03T08:56:12Z")

</div>

Read again my previous answer, I think that it wa exactly what you are  
asking:  
first use \*set cond … to specify the current condition, and then inside a  
loop over nodes/elems you can ask for \*cond(fieldname)  
e.g.

file .cnd:

CONDITION: Approximation  
CONDTYPE: over surfaces  
CONDMESHTYPE: over body elements  
QUESTION: Id  
VALUE: 0  
END CONDITION

file .bas:  
…  
\*set cond Approximation \*elems  
\*loop elems \*onlyincond  
\*elemsnum \*cond(Id) \*elemsmat \*elemsconec  
\*end elems

----- 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: Tuesday, October 02, 2012 9:46 PM  
Subject: [GiDlist] More about … I have applied boundary conditions over  
differents contour lines and I want to access theirs fields.  
  
  
_Hi Escolano,_  
_I am going better explain my problem below._  
_I work with galerkin discontinuous and I can to apply different_  
_polynomial order over different elements._  
_Thus I want to apply over different surfaces different interpolations_  
_and_  
_I d’like to obtain the following output:_  
_APPROXIMATIONS_  
_[number\_of\_approximation]_  
_[approximation\_id] type\_of\_interpolation (e.g. Lagrange ou Legendre)_  
_[polynomial\_order] [integration\_order]_  
_._  
_._  
_._  
_ELEMENT_  
_[number\_of\_element]_  
_[element\_id] [approximation\_id] [material\_id] [node\_1] [node\_2] …_  
_[node_(nno\_by\_element)]\_  
_._  
_._  
_._  
_However I not access the fields of the approximations applied as_  
_“conditions”, but only as “material”._  
_How I can to access the fields the questions applied over surfaces as_  
_“conditions”?_  
_My thnaks,_

_Geraldo Belmonte_

_Em 2012-10-02 07:00, [gidlist-request at listas.cimne.upc.edu](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist) escreveu:_  
_Send GiDlist mailing list submissions to_  
_[gidlist at listas.cimne.upc.edu](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)_  
_To subscribe or unsubscribe via the World Wide Web, visit_  
\_[http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist\_](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist_)  
_or, via email, send a message with subject or body ‘help’ to_  
_[gidlist-request at listas.cimne.upc.edu](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)_  
_You can reach the person managing the list at_  
_[gidlist-owner at listas.cimne.upc.edu](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)_  
_When replying, please edit your Subject line so it is more specific_  
_than “Re: Contents of GiDlist digest…”_

_Today’s Topics:_  
_1. I have applied boundary conditions over differents contour_  
_lines and I want to access theirs fields. (geraldos)_  
_2. Re: I have applied boundary conditions over differents_  
_contour lines and I want to access theirs fields. (Enrique_  
_Escolano)_  
  
  
_----------------------------------------------------------------------_  
_Message: 1_  
_Date: Mon, 01 Oct 2012 11:03:44 -0300_  
_From: geraldos [geraldos at lncc.br](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)_  
_Subject: [GiDlist] I have applied boundary conditions over differents_  
_contour lines and I want to access theirs fields._  
_To: [gidlist at listas.cimne.upc.edu](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)_  
_Message-ID: [f3961128a11fbd8ad9f8009af267e21e at lncc.br](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)_  
_Content-Type: text/plain; charset=UTF-8; format=flowed_  
_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_  
  
  
  
  
  
_------------------------------_  
_Message: 2_  
_Date: Mon, 1 Oct 2012 16:55:53 +0200_  
_From: “Enrique Escolano” [escolano at cimne.upc.edu](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)_  
_Subject: Re: [GiDlist] I have applied boundary conditions over_  
_differents contour lines and I want to access theirs fields._  
_To: [gidlist at listas.cimne.upc.edu](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)_  
_Message-ID: [2AF6264253074160BF328E3AD42C1FA9 at mediador](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)_  
_Content-Type: text/plain; format=flowed; charset=“iso-8859-1”;_  
_reply-type=original_  
_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_)  
  
  
_------------------------------_

* * *

_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_)

_End of GiDlist Digest, Vol 27, Issue 2_  
_\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*_

* * *

_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_)

---

<div class="post-metadata">

**Author:** ![Bettina\_Schr\_ouml\_de](https://forum.gidsimulation.com/letter_avatar_proxy/v4/letter/b/46a35a/32.png) [@Bettina\_Schr\_ouml\_de](https://forum.gidsimulation.com/u/Bettina_Schr_ouml_de)\
**Post date:** [October 17, 2012, 10:24am UTC](https://forum.gidsimulation.com/t/gidlist-more-about-i-have-applied-boundary-conditions/84/3 "2012-10-17T10:24:49Z")

</div>

Dear Sir or Madam,

I tried to create a hexaedron volume mesh with gid and had the error :This volume cannot be structured or semistructured because it is not a prismatic volume. But I don’t know why I get this error. I looked at your example library and found the cajon3D there it is possible and the error doesn’t occur. If I by myself construct a problem similar to that one I get again the upper mentioned error message. Now I wanted to ask you whether there is a tutorial which explains how to construct a cajon like that one, so that I can see why in your example there is no such an error message but in mine there is.

Thank you for your efforts

Yours sincerely  
  
  
Schröder, Bettina  
  
  
Universität Kassel, FB 14  
Fachgebiet Baumechanik / Baudynamik  
Mönchebergstraße 7 - Raum 1309  
34109 Kassel

Tel. : 0561/804-2698  
Fax : 0561/804-3631  
Mail : [schroederbettina at uni-kassel.de](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)  
Web: [www.uni-kassel.de/fb14/mechanics](http://www.uni-kassel.de/fb14/mechanics)  
  
  
  
  
  
  
  
-------------- next part --------------  
An HTML attachment was scrubbed…  
URL: [http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20121017/8113e9c6/attachment.htm](http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20121017/8113e9c6/attachment.htm)

---

<div class="post-metadata">

**Author:** ![abelcs](https://forum.gidsimulation.com/user_avatar/forum.gidsimulation.com/abelcs/32/8_2.png) [@abelcs](https://forum.gidsimulation.com/u/abelcs)\
**Post date:** [October 17, 2012, 11:08am UTC](https://forum.gidsimulation.com/t/gidlist-more-about-i-have-applied-boundary-conditions/84/4 "2012-10-17T11:08:40Z")

</div>

Dear Bettina,  
  
  
  
Could you please send me the model (it is not needed to send it to the  
gidlist, you can send it to my particular e-mail: [abelcs at cimne.upc.edu](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)), so  
as I can check it?  
  
  
  
Regards,  
  
  
  
ABEL  
  
  
  
  
\

* * *

Abel Coll Sans - Civil Engineer

CIMNE - International Center for Numerical Methods in Engineering

Ofice c-2, C1 building - Campus Nord UPC

Gran Capità s/n, 08034 Barcelona

T: 34 - 93 401 74 03 Fax: 34 - 93 40 65 17

* * *

De: [gidlist-bounces at listas.cimne.upc.edu](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)  
[mailto:[gidlist-bounces at listas.cimne.upc.edu](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)] En nombre de Bettina Schröder  
Enviado el: miércoles, 17 de octubre de 2012 12:25  
Para: [gidlist at listas.cimne.upc.edu](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)  
Asunto: [GiDlist] Prismatic volumes  
  
  
  
Dear Sir or Madam,  
  
  
  
I tried to create a hexaedron volume mesh with gid and had the error :This  
volume cannot be structured or semistructured because it is not a prismatic  
volume. But I don’t know why I get this error. I looked at your example  
library and found the cajon3D there it is possible and the error doesn’t  
occur. If I by myself construct a problem similar to that one I get again  
the upper mentioned error message. Now I wanted to ask you whether there is  
a tutorial which explains how to construct a cajon like that one, so that I  
can see why in your example there is no such an error message but in mine  
there is.  
  
  
  
Thank you for your efforts  
  
  
  
Yours sincerely  
  
  
  
  
  
Schröder, Bettina  
  
  
  
  
  
Universität Kassel, FB 14

Fachgebiet Baumechanik / Baudynamik

Mönchebergstraße 7 - Raum 1309

34109 Kassel  
  
  
  
Tel. : 0561/804-2698

Fax : 0561/804-3631

Mail : [schroederbettina at uni-kassel.de](http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist)

Web: [www.uni-kassel.de/fb14/mechanics](http://www.uni-kassel.de/fb14/mechanics)  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
-------------- next part --------------  
An HTML attachment was scrubbed…  
URL: [http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20121017/66c12aec/attachment-0001.htm](http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20121017/66c12aec/attachment-0001.htm)
