If your GiD version doesn’t has this split volume command, update to the last 8.2b beta version,
or to the new 9.0-rc release candidate version (but this 9.x version will require a new password, different of the 8.x)
Off course you can do the split volume manually: delete the old volume and create the new ones selecting its contour surfaces
Regards
Enrique
----- Original Message -----
From: anjaney vatsal
To: gidlist at gid.cimne.upc.edu
Sent: Friday, June 06, 2008 1:21 PM
Subject: Re: [GiDlist] batch file
Hi,
I am sorry but it could find anything for the 3rd step,ie, split the volume.
On Thu, Jun 5, 2008 at 9:36 PM, Enrique Escolano escolano at cimne.upc.edu wrote:
There not exists a direct tool to intersect a volume against a surface. You must do this steps:
1- Intersect the cube and the circle surfaces: Geometry-Edit-Intersection-Multiple surfaces (and can select all)
2- The four cube surfaces are not splitted in two parts, you must do it with: Geometry-Edit-Divide-Surface-Split
select the surface and the splitting line. repeat it for the four surfaces.
3- Split the volume: select the volume and the surface that can split it (the square surface that divide it in two parts)
Enrique
----- Original Message -----
From: anjaney vatsal
To: gidlist at gid.cimne.upc.edu
Sent: Thursday, June 05, 2008 8:13 PM
Subject: Re: [GiDlist] batch file
Hi Enrique,
I think I would go for Tcl. But while working, I got this problem:
I have a cuboid of some know dimension(in layer0). There is a circular surface(in layer1) surrounding that cuboid (see attachment). I want to divide the cuboid into two seperate volumes by this circle. Is it possible. I tried using intersection commands. It’s not working.
Regards
Anjaney
On Thu, Jun 5, 2008 at 12:23 PM, Enrique Escolano escolano at cimne.upc.edu wrote:
Tcl is a powerful scripting language
From a Tcl procedure you can open an read your file, and send GiD commands to be processed with the GiD_Process command, someting like this:
set x 0
set y 0
set z 0
GiD_Process Mescape geometry create point $x $y $z
Selection is a common problem when automatizing tasks from scripts, sometimes it’s not possible to know how many entities you will obtain and its identifiers.
a solution can be work with layers: set a layer to use, new entities will be created in this layer, then you select the layername instead the entities ids.
In some cases you can also know the new entity id, because number are set increasing from the last one
set lastpointid [GiD_Info Geometry Maxnumpoints]
GiD_Process Mescape geometry create point $x $y $z
set pointid [expr $lastpointid+1]
I recommend you to try to do what you want from a Tcl procedure, and if do you have a very expensive operation, like calculate your planes intersection, do it with an
external program (written in a compiled language like C/C++ or FORTRAN), that read from a file the required input and write also an output file that can be read again from the tcl procedure to convert into GiD entities.
Regards
Enrique
----- Original Message -----
From: anjaney vatsal
To: gidlist at gid.cimne.upc.edu
Sent: Thursday, June 05, 2008 12:48 PM
Subject: Re: [GiDlist] batch file
Hi Enrique,
If the geometrical figures that I have to draw are stored in a text file in form of coordinates or equations, is there any way to read these input files and then use it for creating figures- even using some other tool/language that GID is compatible with?
How can I get id no. of a surface if I am writing a batch file? As the geometries vary, the id nos of surfaces to be selected will differ. For general case, I have been thinking if it is possible to select any entity by specifying conditions. For example, is it possible to chop off part of the plane lying outside a known volume. Can I give some conditional command in this case? The major problem is if it can be done using batch file.
Well, I am going through all the methods you told me in your last email but I doubt what I want to do can simply be done using GID only. I think I would have to use some other tool as well and I can do meshing using GID. If it is not possible to do with GID, please suggest me some other tool which I can use along with GID.
Thanking you.
Anticipating you response
Anjaney Vatsal
On Wed, Jun 4, 2008 at 9:35 PM, Enrique Escolano escolano at cimne.upc.edu wrote:
Hello,
To select an entity simply must specify the id number. You can also say a range a:b that mean from a to b
you can omit b or use ‘end’ as the last available entity number, then 1:end select all entities of a type
An interesting way to select entities when automatizing from scripts is to separate in layers and specify the layername where the entities are, e.g
layer:Layer1
It’s possible also apply filters to the selection, to keep entities that satisfy some conditional
When selecting points, an unusual way is to specify a plane equation
plane:a,b,c,d,r
Read GiD help about User basics-Entity selection
Sorry, but It doesn’t exist any command to select entities near a coordinate.
Enrique
----- Original Message -----
From: anjaney vatsal
To: gidlist at gid.cimne.upc.edu
Sent: Wednesday, June 04, 2008 7:15 PM
Subject: [GiDlist] batch file
Hiii,
I have to draw geometries in GID using batch file. I am facing difficulties as I am not aware of some commands like that for selecting a particular entity (surafce, volume etc) or all entities. Please tell me how to get the commands for batch files. Is there any direct command to draw a volume when its coordinates are known?
Anjaney Vatsal
-------------- next part --------------
An HTML attachment was scrubbed…
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20080606/25a2ea3a/attachment.htm