XANSYS Message: 40949 [Go back to message list]
No rating yet
Rate item:

Subject: Re: CDWRIT,CM
Author: Dan Bohlen
Date: 2002-08-20 16:07:00

Tried CMWRITE in 6.1 It's not there yet.

Thanks

Dan

> -----Original Message-----
> From: John Swanson [mailto:john.swanson@a...]
> Sent: Tuesday, August 20, 2002 3:10 PM
> To: 'xansys@yahoogroups.com'
> Subject: RE: [xansys] Re: CDWRIT,CM

> Have you tried CMWRITE,Fname,Fext,Fdir,ipos,[_ | BLOCK | UNBLOCK]
> where ipos = 0,write at beginning of file, 1, write at
> end of file?
> May be 7.0 addition, may be earlier.
> John Swanson
> Swanson Analysis Services, Inc.

> > -----Original Message-----
> > From: Bohlen, Dan (GEAE) [SMTP:dan.bohlen@a...]
> > Sent: Tuesday, August 20, 2002 2:29 PM
> > To: 'xansys@yahoogroups.com'
> > Subject: RE: [xansys] Re: CDWRIT,CM

> > Hi John,

> > Thanks. You gave me these same macros many years ago when
> you were here
> > and we
> > were discussing "Woody". Not only would a CMWRIT reduce your macro
> > inventory (
> > how many it would be interesting general use macros you
> found the need to
> > generate ) but it would be MUCH faster, if I remember
> correctly how long
> > the
> > NSEL,A,... for each node goes.

> > Dan

> > > -----Original Message-----
> > > From: Crawford, John [mailto:john.crawford@h...]
> > > Sent: Tuesday, August 20, 2002 2:17 PM
> > > To: 'xansys@yahoogroups.com'
> > > Subject: RE: [xansys] Re: CDWRIT,CM

> > > Dan,

> > > Many moons ago when components did not exist I needed the
> > > ability to store
> > > groups of nodes and elements. I called my ASD at the time
> > > and either Mike
> > > Yaksh or Gerry Jones sent me two macros that did something
> > > like this. Some
> > > years later I wrote my own versions of these macros and added
> > > a few bells
> > > and whistles. They're handy for transferring component
> > > definitions from one
> > > model to another and assorted other things.

> > > I have attached at the bottom of this email the text for
> two macros,
> > > ndgroup.mac and elgroup.mac that may be useful. Using them
> > > as a template
> > > you could write similar macros for keypoints, lines, areas,
> > > and volumes.
> > > The basic scheme of things is that these macros generate
> > > another macro that
> > > contains a series of select commands. You then run the
> > > second macro by
> > > entering it's name at the command line to select the entities
> > > of interest.

> > > These macros *ASK for the name of the macro that will contain
> > > the select
> > > commands. I think the syntax for the *ASK command has
> > > changed a bit since I
> > > wrote these macros so check them to make sure they behave in
> > > the manner you
> > > desire. I seem to remember that at one time the text entered
> > > in the *ASK
> > > box had to be in single quotes, and then at a later release
> > > it didn't have
> > > to be in single quotes. Or maybe it was vice-versa. Or
> > > maybe I'm imagining
> > > the whole thing.

> > > You are right about ANSYS needing a CMWRITE command. I've
> > > needed it more
> > > than once. If it were available I could delete these two
> > > macros and make my
> > > macro directory a tiny bit less crowded. That would be a
> good thing.

> > > John Crawford
> > > Honeywell Engines and Systems
> > > Tempe, AZ

> > > ************************* node group macro

-snip-

> > > -----Original Message-----
> > > From: Bohlen, Dan (GEAE) [mailto:dan.bohlen@a...]
> > > Sent: Tuesday, August 20, 2002 10:34 AM
> > > To: 'xansys@yahoogroups.com'
> > > Subject: RE: [xansys] Re: CDWRIT,CM

> > > Hmmm.. I always thought "geometry" was keypoints, lines etc.

> > > OK, I concede the documentation is OK. I still think the
> > > functionality
> > > would be
> > > better to just write the components. There are many ways to
> > > write node and
> > > element definitions: other CDWRIT options, NWRIT, EWRIT etc.

> > > Just one example where one would want to write just the component
> > > definitions:
> > > If I have a 3D model and I want to add pressures I often
> want to make
> > > components
> > > of external nodes defining the cavities. One easy way to is
> > > flatten the 3D
> > > model out to the XY plane, create the components, and
> then write the
> > > components
> > > out, resume, read the CM.CDB back in. This can be
> > > accomplished other ways
> > > too (
> > > NWRIT ; SHPP,OFF ; MODMSH, NOCH ; flatten, make components,
> > > NREAD , but
> > > that's
> > > real clean.)

> > > We also have external programs that could use component
> > > definitions too.

> > > Just a suggestion, maybe not a good one....

> > > Dan Bohlen Phone: (513) 243-4645
> > > Staff Engineer Fax: (513) 786-4166
> > > GE Aircraft Engines M/D K-105

> > > > -----Original Message-----
> > > > From: sheldonimaoka [mailto:sheldon.imaoka@a...]
> > > > Sent: Tuesday, August 20, 2002 12:37 PM
> > > > To: xansys@yahoogroups.com
> > > > Subject: [xansys] Re: CDWRIT,CM

> > > > Hi Dan,

> > > > At least in 6.0 and 6.1, the Commands Reference for
> > > "CDWRITE" states:

> > > > CM --
> > > > Write only node and element component and geometry data to
> > > Fname.Ext.

> > > > As it mentions "component and geometry data," I believe
> that this
> > > > behavior is documented correctly.

> > > > I think that CDWRITE,CM was added as an alternative to
> CDWRITE,GEOM
> > > > to give the user more than one way to write out FE data (FE
> > > data with
> > > > or without component info). I think since you are looking
> > > at writing
> > > > component information only, that is where some
> confusion may have
> > > > arisen.

> > > > Best regards,
> > > > Sheldon
> > > > ANSYS, Inc.

> > > > http://www.ansys.com/ (Official Site)
> > > > http://ansys.net/ansys/ (Cheap imitation)
> > > > "This email is not being provided in my capacity as an
> > > > ANSYS employee. I am solely responsible for the content."

> > > > --- In xansys@y..., "Bohlen, Dan (GEAE)"
> wrote:
> > > > > How is this supposed to work? I assume it would write the
> > > > component definitions
> > > > > - for me ( Ansys 6.0) it writes that plus all the nodes and
> > > > elements. To me
> > > > > that defeats part of the purpose of CDWRIT,CM.

> > > > > Unless there's a good reason I'd request that
> CDWRIT,CM does what
> > > > the manual
> > > > > says it should do only write the component definitions.

> > > > > Dan Bohlen Phone: (513) 243-4645
> > > > > Staff Engineer Fax: (513) 786-4166
> > > > > GE Aircraft Engines M/D K-105


Posts possibly associated with message #40949AuthorDateScore
40933CDWRIT,CMDan Bohlen2002/08/20 
40935Re: CDWRIT,CMSheldon Imaoka2002/08/200
40939Re: CDWRIT,CMDan Bohlen2002/08/20 
40942Re: CDWRIT,CMJohn Crawford2002/08/20 
40943Re: CDWRIT,CMDan Bohlen2002/08/20 
40944Re: CDWRIT,CMJohn Crawford2002/08/20 
40945Re: CDWRIT,CMJohn Swanson2002/08/20 
40948Re: CDWRIT,CMMark Hommel2002/08/20 
40949Re: CDWRIT,CMDan Bohlen2002/08/20 
40950Re: CDWRIT,CMJoe Woodward2002/08/20 
40951Re: CDWRIT,CMMark Hommel2002/08/20 
40968Re: CDWRIT,CMJuha Tyllinen2002/08/21 
40969Re: CDWRIT,CMJohn Crawford2002/08/21