Page 1 of 1

[ GiDlist ]

Posted: Wed Aug 01, 2001 9:54 am
by peter adey
Sorry If I did not pose the question well.
Basically I am trying to setup a problem type to
create a .dat file which my solver can read.
The solver requires the value of the conditions
applied to the nodes of an element to be listed in the
.dat file.

Like this
NORMALFLUX 9 -6.000E+03 -6.000E+03 -6.000E+03
-6.000E+03 -6.000E+03 -6.000E+03
-6.000E+03 -6.000E+03 -6.000E+03
12 -6.000E+03 -6.000E+03 -6.000E+03
-6.000E+03 -6.000E+03 -6.000E+03
-6.000E+03 -6.000E+03 -6.000E+03
But I am having problems setting up the .bas file to
do this.
I can get GID to create a dat file listing the
elements and nodes, but I need the conditions on the
nodes of the element. How can I setup the .Bas file to
do this?

Thanks,
Peter Adey.


--- Enrique Escolano escolano at cimne.upc.es wrote:
I do not understand the question well.

To show the conditions, you can directly select the
draw button in the
condition window.

Please, it specifies a little plus its question.

----- Original Message -----
From: "peter adey" peteadey1 at yahoo.com
To: gidlist at gatxan.cimne.upc.es
Sent: Tuesday, July 31, 2001 10:35 AM


Hi
I want to be to setup a problemtype .bas file to
display the conditions on the nodes of an element.
Therefore, to create something like this.

NORMALFLUX 9 -6.0000000E+03
-6.0000000E+03
-6.0000000E+03
-6.0000000E+03
-6.0000000E+03
-6.0000000E+03
-6.0000000E+03
-6.0000000E+03
-6.0000000E+03
NORMALFLUX 12 -5.0000000E+04
-5.0000000E+04
-5.0000000E+04
-5.0000000E+04
-5.0000000E+04
-5.0000000E+04
-5.0000000E+04
-5.0000000E+04
-5.0000000E+04

Many thanks,

Peter Adey

__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute
with Yahoo! Messenger
http://phonecard.yahoo.com/




__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

[ GiDlist ]

Posted: Wed Aug 01, 2001 6:10 pm
by Enrique Escolano
To create a probleme type, you must create a group of configuration files: *.prb,*.cnd,*.bas, etc.
See the web page of gid to download a ProblemType creation tutorial:
http://gid.cimne.upc.es/support/index.html


It seems that in your sample the type of used element is the 9 nodes Quadrilateral.

If all the nodes of a element have the same condition value, then apply the condition over body elems (not over nodes)
and repeat the value for the 9 nodes.

for example, the file "problemtype".cnd contain a condition some

NUMBER: 1 CONDITION: Normal_Flux
CONDTYPE: over surfaces
CONDMESHTYPE: over body elems
QUESTION: Flux_Value
VALUE: 0
END CONDITION

and the file "problemtype".bas for example is

NORMALFLUX *\
*Set Cond Normal_Flux *elems
*loop elems *OnlyInCond
*ElemsNum *\
*Cond(Flux_Value) *Cond(Flux_Value) *Cond(Flux_Value)
*Cond(Flux_Value) *Cond(Flux_Value) *Cond(Flux_Value)
*Cond(Flux_Value) *Cond(Flux_Value) *Cond(Flux_Value)
*end elems

If each node have a different condition value, then apply the condition over nodes
and search the i-node of the element inside a loop over the nodes wiht the condition

"problemtype".cnd

NUMBER: 1 CONDITION: Normal_Flux
CONDTYPE: over surfaces
CONDMESHTYPE: over nodes
QUESTION: Flux_Value
VALUE: 0
END CONDITION

"problemtype".bas

NORMALFLUX
*loop elems
*ElemsNum*\
*set var cont=0
*for(i=1;i=nnode;i=i+1)
*set var inode=ElemsConec(*i,int)
*Set Cond Normal_Flux *nodes
*loop nodes *OnlyInCond
*if(NodesNum==inode)
*Cond(Flux_Value)*\
*break
*endif
*end nodes
*if(cont==2)

*if(innode)
*\
*endif
*set var cont=0
*else
*set var cont=operation(cont+1)
*endif
*end for
*end elems

It is attached a small problemtype named Peter.gid (with the second sample code)
----- Original Message -----
From: "peter adey" peteadey1 at yahoo.com
To: gidlist at gatxan.cimne.upc.es
Sent: Wednesday, August 01, 2001 10:54 AM
Subject: Re: [ GiDlist ]


Sorry If I did not pose the question well.
Basically I am trying to setup a problem type to
create a .dat file which my solver can read.
The solver requires the value of the conditions
applied to the nodes of an element to be listed in the
.dat file.

Like this
NORMALFLUX 9 -6.000E+03 -6.000E+03 -6.000E+03
-6.000E+03 -6.000E+03 -6.000E+03
-6.000E+03 -6.000E+03 -6.000E+03
12 -6.000E+03 -6.000E+03 -6.000E+03
-6.000E+03 -6.000E+03 -6.000E+03
-6.000E+03 -6.000E+03 -6.000E+03
But I am having problems setting up the .bas file to
do this.
I can get GID to create a dat file listing the
elements and nodes, but I need the conditions on the
nodes of the element. How can I setup the .Bas file to
do this?

Thanks,
Peter Adey.


--- Enrique Escolano escolano at cimne.upc.es wrote:
I do not understand the question well.

To show the conditions, you can directly select the
draw button in the
condition window.

Please, it specifies a little plus its question.

----- Original Message -----
From: "peter adey" peteadey1 at yahoo.com
To: gidlist at gatxan.cimne.upc.es
Sent: Tuesday, July 31, 2001 10:35 AM


Hi
I want to be to setup a problemtype .bas file to
display the conditions on the nodes of an element.
Therefore, to create something like this.

NORMALFLUX 9 -6.0000000E+03
-6.0000000E+03
-6.0000000E+03
-6.0000000E+03
-6.0000000E+03
-6.0000000E+03
-6.0000000E+03
-6.0000000E+03
-6.0000000E+03
NORMALFLUX 12 -5.0000000E+04
-5.0000000E+04
-5.0000000E+04
-5.0000000E+04
-5.0000000E+04
-5.0000000E+04
-5.0000000E+04
-5.0000000E+04
-5.0000000E+04

Many thanks,

Peter Adey

__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute
with Yahoo! Messenger
http://phonecard.yahoo.com/




__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20010801/ca1efea2/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Peter.gid.zip
Type: application/x-zip-compressed
Size: 752 bytes
Desc: not available
Url : http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20010801/ca1efea2/attachment.bin