[GiDlist] loop over conditions

Moderator: GiD Team

Post Reply
Pascal Kupfer

[GiDlist] loop over conditions

Post by Pascal Kupfer »

Hello,
how can i access properties belonging to different conditions in one loop ?
In the example below, in a loop over the condition "OC" i would like to read
a property belonging to the condition "Shell0" and after that again other
properties of OC. But if i try to set the actual conditions as done below,
somehow the data of condition OC and cond Shell0 mix together.
How could i do that ?

The example:

*set cond OC *elems
*loop elems OnlyInCond
*cond(OCProperty1)
....
....
*set cond Shell0
*cond(Shell0Property)
....
....
*set cond OC
*cond(OCProperty2)
*end loop


thank you for your help,
Pascal

--
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net
Pablo Perez del Castillo

[GiDlist] Is it possible to create two differents files from

Post by Pablo Perez del Castillo »

Hello;

I would like to create two diifferents files from *bas, one for structural
solver (input.dat), and the another for the CFD solver (cfd.dat). is it
possible?
Thanks

Pablo
Javier Mora

[GiDlist] Is it possible to create two differents files from

Post by Javier Mora »

Yes, it is. You have just to create two different *.bas files. For each bas
file (it doesn't matter the name) GiD will create a dat file.

rgds


-----Mensaje original-----
De: gidlist-admin at gatxan.cimne.upc.es
[mailto:gidlist-admin at gatxan.cimne.upc.es]En nombre de Pablo Perez del
Castillo
Enviado el: martes, 09 de diciembre de 2003 16:43
Para: gidlist at gatxan.cimne.upc.es
Asunto: [GiDlist] Is it possible to create two differents files from
*bas??
Importancia: Alta


Hello;

I would like to create two diifferents files from *bas, one for structural
solver (input.dat), and the another for the CFD solver (cfd.dat). is it
possible?
Thanks

Pablo

_______________________________________________
GiDlist mailing list
GiDlist at gid.cimne.upc.es
http://gid.cimne.upc.es/mailman/listinfo/gidlist
Enrique Escolano

[GiDlist] Is it possible to create two differents files from

Post by Enrique Escolano »

Probably you don't want to obtain each time two *.dat files. If you write multiple *.bas files, then obtain multiple *.dat files

You can use a general data to store the type of analysis, and then use the command *include to select your desired bas content

For example, add this to your *.bas file

*if(strcmp(GenData(Analysis_type),"Structural")==0)
*include includes\structural.h
*elseif(strcmp(GenData(Analysis_type),"CFDl")==0)
*include includes\cfd.h
*else
*messagebox Unexpected Analysis type
*endif

And create a subdirectory \includes (inside your problemtype directory), and create the related files "structural.h" and "cfd.h "
Note: it's recommended to not use for this included files the *.bas extension, else GiD can automatically
write a *.dat calculation file for each *.bas file. In this sample it's used a .h extension, but the content must be valid .bas commands.


Enrique Escolano

----- Original Message -----
From: "Pablo Perez del Castillo" pablopdc at terra.es
To: gidlist at gatxan.cimne.upc.es
Sent: Tuesday, December 09, 2003 4:43 PM
Subject: [GiDlist] Is it possible to create two differents files from *bas??


Hello;

I would like to create two diifferents files from *bas, one for structural
solver (input.dat), and the another for the CFD solver (cfd.dat). is it
possible?
Thanks

Pablo

_______________________________________________
GiDlist mailing list
GiDlist at gid.cimne.upc.es
http://gid.cimne.upc.es/mailman/listinfo/gidlist

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20031209/09c1b354/attachment.htm
Post Reply