XML File Format Series
1. Exploring the XML File Format
2. Exploring the XML File Format - Part 2
3. Exploring the XML File Format - Part 3 - SLOPE/W
John asked some specific questions about the file format, which makes it much easier to add a Part 3 to my series about the GeoStudio xml file format.
Nate, the reason I asked for the XSD is that I would like to write an XML-file from scratch, perform a batch calculation with it (Bishop, using CU-values) and then read the stability result (Safety factor). Could you tell me: A) which blocks are realy needed in the XML to do this (I guess I do not have to write the View block for instance)? B) where I can find the result in the XML? I see there are other (result) files but was wondering whether the result would be in the xml as well.
I’ll give you some suggestions here, but you’ll need to do some tests to see if I’m 100% accurate and if it matches your needs. I suggest you use GeoStudio to create an analysis similar to what you need, then do a File - Save As, change the “Save as type” to “GeoStudio File (*.xml)”, and save it. That will give you an xml file you can look through for starters, without having to go through the hassle of a zip file all the time. Now find the portions of the file you think may not be necessary, and delete them (or comment them out) one at a time, save it, try opening it in GeoStudio and see if there are any errors reported. For example, you’ll need the Analyses section, but within that section you can likely get rid of the InputFiles. Here are the major sections I’m guessing you should be able to get rid of completely without the SLOPE/W solver caring:
- BCs - slope doesn’t use boundary conditions
- Contour - only used if you’re using GeoStudio to look at the results (and I think it will open fine without this section, just using defaults)
- Functions - unless you’re using functions of course, in which case you can still get rid of the Boundary subsection and keep only Material.
- MeshItems - no mesh in slope
- SketchItems - that’s only for markup
- View - that’s just view preferences
Which leaves you with only:
- Analyses - the analysis settings
- Contexts - the “associations” I’ve described in the past, such as which material is associated with which region in which analysis.
- Coordinates - this one may even be optional, since we really only use units for labelling things.
- FileInfo - define at least the FileVersion–this helps GeoStudio load the xml data correctly.
- Functions if you use any
- GeometryItems - defines your regions, lines and points
- Materials - defines the materials
- SlopeItems - defines slope-specific objects such as slip surface definition.
Results
The results are not stored in the xml file. There are lots of results generated, and xml is too verbose and would inflate the file size unnecessarily. Instead results of finite element analyses are all stored in csv files–with a bonus that they are easy to open in a spreadsheet application, as well as being easy to parse in code. Results of slope analyses are not in csv format; they are in text files which are supposed to be easy to figure out. Here’s what the GeoStudio 2007 User’s Guide says about them:
All of the SLOPE/W output files have column descriptions that explain what each data set represents. If you have specific questions or it is not clear, please contact GEO-SLOPE via e-mail at support [at] geo-slope [dot] com. The following files are created by SLOPE/W: Factor of safety: *.FAC Slice forces: *.FRC01 and OPTFRC Probability and sensitivity: *.PRO01 and OPTPRO Permanent deformation (Newmark with QUAKE/W): *.NEW
Open a solved gsz file in your favourite zip application (I use 7-Zip), and you’ll see a folder with the same name as your analysis. Each solved analysis stores its results in its own folder. Inside that folder you’ll see another xml file–that’s a snapshot of the main xml file as it was when the analysis was solved. You’ll also see additional numbered folders, these are the time steps. Each time step’s results gets its own folder. All these result folders will contain csv files (for finite element analyses) or .fac/.frc files (for slope/w). The .fac file summarizes the factors of safety. The .frc01 file contains the computed forces for all slices of the critical slip surface. If you’ve opted to store results for more than one critical slip surface, then the next most critical will be stored in .frc02, and so on. The User’s Guide suggests you email support if you need help understanding the format of the result files. If you need a quick answer, that’s still your best bet, but I’m also happy to answer questions through blog comments as I have time.












