XANSYS Message: 41110 [Go back to message list] [bookmark on del.icio.us]
No rating yet Subject: Re: [APDL] *vread with mixed character/number array. Author: Eric Miller Date: 2002-08-26 11:29:00Fern,
I think you will see a lot of use of XML as Workbench grows and matures. It already uses XML to transfer data from the ANSYS solver to the workbench post-processor (I know, those of you who know XML and know what is an ANSYS Result set are asking the obvious questions and issuing the appropriate groans, but that is another topic for another time). Also, material properties are described with XML as are components in the GUI.
I personally am not a fan of XML because it is SO VERBOSE. (hence my sarcastic comment above on the ANSYS results) Tags are cool if your web layout tool makes all of them, but writing them all out makes me grumpy.
Having said that, XML is still growing in popularity and is gaining more and more fans every day. When produced via OOPS type code, it is not so bad (if, like everything OOPS, someone else took the time to write the library that does the reading and writing).
I can't really get my mind around how you would write an XML parser for APDL, but I think you will find that future ANSYS products that are going to support this technology through the workbench.
I won't give up my fixed format or comma delimited formatting till they pry the punch cards from my cold, dead fingers...
Submitted with less than average seriousness,
Eric
Eric Miller Director, CAD & Software Services Phoenix Analysis & Design Technologies (480) 813-4884, x103 www.padtinc.com
> -----Original Message----- > From: Fernand A. Thomassy [mailto:fernand.thomassy@s...] > Sent: Monday, August 26, 2002 8:20 AM > To: xansys@yahoogroups.com > Subject: RE: [xansys] [APDL] *vread with mixed character/number array.
> John and all,
> This may be silly but ... I've become interested in XML > lately and consider > myself pretty ignorant on the subject. From what little I've > read it seems > that we could benefit greatly if ANSYS supported this type of data > formatting. XML support would take care of all the issues we've been > discussing about comments, headers and arbitrary sizes.
> My personal interest stems from the fact that my primary > kinematics/dynamics > software, ADAMS, is moving towards standardizing on XML.
> Anyone out there have a more informed opinion on XML?
> Kind regards . . . Fern
> Fernand A. Thomassy, P.E. > Principal Engineer > Engine Design Section > Southwest Research Institute > mailto:fernand.thomassy@s... > http://enginedesign.swri.org
> > -----Original Message----- > > From: Eric Miller [mailto:eric@p...] > > Sent: Monday, 26 August, 2002 10:00 AM > > To: 'xansys@yahoogroups.com' > > Subject: RE: [xansys] Re: [APDL] *vread with mixed character/number > > array.
> > John,
> > Yes! Anything along these lines, or anything else you might > > add would be scarfed up by those of us out here who find APDL > > so useful.
> > > -----Original Message----- > > > From: John Swanson [mailto:john.swanson@a...] > > > Sent: Monday, August 26, 2002 4:57 AM > > > To: 'xansys@yahoogroups.com' > > > Subject: RE: [xansys] Re: [APDL] *vread with mixed > character/number > > > array.
> > > How about for the first pass: > > > 1. Ignore blank lines > > > 2. Ignore all characters from ! to end of line > > > a. If ! is in column 1, treat as blank line (ignore) > > > 3. Ignore lines which have invalid data in any numeric field > > > 4. Set _RETURN to the last read line number > > > This would occur it the number of items to be read per > line is entered > > > in field 11 (the field after nskip).
> > > I am also looking for adding to the *GET,Par,FILE the > > > ability to find the next line in a file containing a (up > to 32 char) > > > string. This might return the first 32 characters of the line > > > containing the string, and set _RETURN to the line which contains > > > the string. This would facilitate finding data in a file.
> > > A second phase might be to add a "include" set of characters > > > in field 12 and a "ignore" set of characters in field 13, where > > > include and ignore would be based on the character in column 1. > > > Is there anyone out there other than Bob who would be interested > > > in this?
> > > John Swanson > > > Swanson Analysis Services, Inc.