66!! the cursor below the next paragraph and type
77!! C-x C-e to check settings
88
9- !(progn (when (featurep 'ansys-mode) (unload-feature 'ansys-mode))(setq ansys-highlighting-level 2 ansys-dynamic-highlighting-flag t)(load-file "../ansys-mode.el")(ansys-mode))
9+ !! (progn (when (featurep 'ansys-mode) (unload-feature 'ansys-mode))(setq ansys-highlighting-level 2 ansys-dynamic-highlighting-flag t)(load-file "../ansys-mode.el")(ansys-mode))
1010
1111!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1212!! self contained mechanical example
1313finish
1414/clear
15- !y ! answer query in interactive mode
15+ !! y ! answer query in interactive mode
1616
1717/units,mpa !indicate mm-t-s unit system
1818!! /units
2222Steel = 1
2323ID = Steel
2424real = Steel
25- et,ID,solid186 ! 3d, 20 node
25+ et,ID,solid186 ! 3d, 20 node
2626!@@ -- Material --
27- mp,nuxy,Steel,0.3 ! Poisson No
27+ mp,nuxy,Steel,0.3 ! Poisson No
2828mp,ex,Steel,200000 ! Elastic modulus
2929!@@ -- Modeling --
3030block,0,1,0,1,0,1
@@ -51,16 +51,16 @@ solve
5151/post1
5252/view,,1,1,1
5353plnsol,u,sum,2
54- /image,save,test !save XWindow Dump xwd or bmp on Windows
54+ /image,save,test ! save XWindow Dump xwd or bmp on Windows
5555/sys,convert test test.png
5656
5757!! end of self contained example
5858!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
5959
6060
6161!@@ -- ignored characters and condensed input line ($ operator)
62- finishThisNightmare $ /cle !/clear
63- y !answer query
62+ finishThisNightmare $ /cle ! /clear
63+ y ! answer query
6464/prep7
6565otto = 9
6666right = 'wrong'
@@ -71,7 +71,7 @@ c***, this is %right% ! no % parameter expansion of %otto%
7171!@@ -- variable definitions and functions
7272k ! keypoint at (0,0,0)
7373N = _RETURN !_RETURN value of k command, No of keypoints
74- _aaa = 9 !reserved underscore "_" variables
74+ _aaa = 9 ! reserved underscore "_" variables
7575Pi = acos(-1) $ True=1 $ False=0
7676Xc = 0 $ Yc = 'char' ! character string variables
7777R1 = 4 $ R2=20
@@ -81,14 +81,14 @@ R1 = 4 $ R2=20
8181N=1.0
8282Alpha1=sin( 14.5) - 360./ (2*N)
8383Alpha2=+360./(2*N)
84- Steel=1! Steel
85- Depth=ARG1 !ARG{1-9}, AR{10-19} = "*use" variables
86- Xc= != empty rhs clears variables
84+ Steel=1 ! Steel
85+ Depth=ARG1 ! ARG{1-9}, AR{10-19} = "*use" variables
86+ Xc= ! = empty rhs clears variables
8787
8888!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
8989/prep7
9090cyl4,Xc,Yc,R1,Alpha1,R2,Alpha2,Depth
91- mp, nuxy,Steel,0.3 ! Poisson No
91+ mp, nuxy,Steel,0.3 ! Poisson No
9292mp, ex,Steel,200000 ! Elastic modulus
9393!@@@ - parameter substitution
9494/com, === Material %Steel% is steel. ===
@@ -136,13 +136,13 @@ dcgomg,x,y,z ! rotational acceleration about global coord. sys.
136136
137137!@@@ - coupling -
138138nsel,s,loc,x,1
139- cp,next,uy,all !couple dofs
139+ cp,next,uy,all ! couple dofs
140140
141141!@@ -- boundary conditions --
142142
143143/prep7
144144
145- !kbc,1 ![0] (antype,static): ramped 1:stepped loading
145+ !! kbc,1 ! [0] (antype,static): ramped 1:stepped loading
146146
147147!@@@ - displacements -
148148
@@ -160,7 +160,7 @@ flist,all
160160!@@@ - inertia relief -
161161
162162!! LOADS: nonlinearities aren't supported, fix all DOFs!
163- irlf,1 !0: none,1:ir on,-1:printout masses
163+ irlf,1 ! 0: none,1:ir on,-1:printout masses
164164nsel,s,loc,x,1
165165
166166!@@@ - corriolis effects -
@@ -170,7 +170,7 @@ dcgomg,x,y,z ! rotational acceleration about global coord. sys.
170170
171171!@@@ - coupling -
172172nsel,s,loc,x,1
173- cp,next,uy,all !couple dofs
173+ cp,next,uy,all ! couple dofs
174174
175175allsel
176176/pbc,all,on
@@ -179,40 +179,40 @@ gplot
179179!@@@ - magnetics -
180180
181181!! fmagbc,'Component' ! flag force calculation
182- bfa,all,js, ! js current density
182+ bfa,all,js, ! js current density
183183bflist,all
184184dl,all,,asym ! flux parallel to lines
185- nsel,s,ext ! select exterior nodes
186- dsym,asym ! flux parallel to lines
185+ nsel,s,ext ! select exterior nodes
186+ dsym,asym ! flux parallel to lines
187187/prep7 $ /title,ototo
188188
189- /prep7 * comment
189+ /prep7 * comment!
190190fini * comment
191- otto = 3 * 4
191+ otto = 3 * 4 ! comment
192192
193193f $ fi $ fin $ fini $ finis $ finish $ finisher
194194Alu = 1 $ Steel = 3
195- n! ! variables max. 32 chars long & condensed ($) input lines % % &
195+ n ! variables max. 32 chars long & condensed ($) input lines % % &
196196v123456789_123456789_123456789_123= 1 $ Alu=2 $ Steel= 3
197197False = 0$True =1 $ Yes = 'no' bla otto bla
198198*if,ARG9,eq,AR19,then ! ARG1-9, AR10-19 *use/commandline macro variables
199- AR20 = 20 !AR20 - AR99 local macro variables
199+ AR20 = 20 ! AR20 - AR99 local macro variables
200200*endif
201201
202202
203203vall,1,2
204204_bla = 3 ! _vars: macro reserved words
205- otto = !`=' without rhs: variable clean up
205+ otto = ! `=' without rhs: variable clean up
206206bla =
207207Alpha3 = 4
208208
209209
210210nsel,s,_hans,otto,'_otto'
211211!! APDL get/parametricfunctions & old style (deprecated) Ansys comments
212- var1=sinh(cos(.3 *5)) !old style Ansys comments!!!!!
213- var2 = tan(nx(.3*5)) ! not an old style Ansys comment
214- var3 = %Yes% $ *if ! this is not a valid % string substition
215- /xml ! undocumented command /xml
212+ var1=sinh(cos(.3 *5)) ! old style Ansys comments!!!!!
213+ var2 = tan(nx(.3*5)) ! not an old style Ansys comment
214+ var3 = %Yes% $ *if ! this is not a valid % string substition
215+ /xml ! undocumented command /xml
216216*afun,rad
217217/fil $ /filname%bla%
218218!! string, message commands and comment behaviour && %$$% %% :bla: &&&
@@ -243,7 +243,7 @@ alkd %D &
243243%E%/%E
244244!! commands which do not allow arguments
245245/prep7 $ FINISH ! $ is nothing behind?
246- /prep7 !nothing behind?
246+ /prep7 ! nothing behind?
247247/prep7 nothing behind allowed
248248X2=3
249249rectngaaaaa,var1,_X2,var2,X2 ! 2d rectangle
@@ -266,7 +266,7 @@ lfillt,(1:2),(3:4),5
266266 *cyclon
267267 *exit
268268*enddo
269- ! goto branching
269+ !! goto branching
270270*go,:branch
271271aselsalsdkfjaölsdkfjaölskdjf,all
272272:branch
@@ -275,12 +275,12 @@ a $ al $ all $ alls $ allse $ allsel $ allselllllll
275275
276276nsel,s,loc,x,1
277277 ,s,loc,x,1
278- cp,next,uy,all !couple dofs
278+ cp,next,uy,all ! couple dofs
279279f,1,fx,1
280- !flist ! list force nodes
280+ !! flist ! list force nodes
281281alls
282282/pbc,all,on
283- !gplot
283+ !! gplot
284284/eof
285285
286286!-----------------------------------------------------------------------
@@ -320,13 +320,13 @@ iadd = arg1
320320/TSPE, 15, 1.000, 1, 0, 0
321321xx = 1.05
322322yy = .9
323- ! Change the window settings if you need different
324- ! aspect ratios for your geometry
323+ !! Change the window settings if you need different
324+ !! aspect ratios for your geometry
325325/win,1,-1,1,.5,1
326326 ,2,-1,1,0,.5
327327 ,3,-1,1,-.5,0
328328 ,4,-1,1,-1,-.5
329- !
329+ !!
330330/win,2,off
331331/win,3,off
332332/win,4,off
@@ -400,21 +400,21 @@ ang1 = 0
400400 ang1 = ang2
401401*enddo
402402
403- !! alignment
404- x=0.4! laskd
403+ !! alignment C-c C-a
404+ x=0.4 ! laskd
405405y= 33.0 ! alskdl
406- xzv= 9999990.3 !!
407- llk = 0.333333333 !bla
406+ xzv= 9999990.3 !
407+ llk = 0.333333333 ! bla
408408al_= 00.40
409409aslfoeas = 304
410- ka= .4 !salkd
411- i = 4. !as
410+ ka= .4 ! salkd
411+ i = 4. ! as
412412kasd=.3/0.4
413413kasd =3./0.4
414414xxx =asin(3.0)
415415y = cos(i)
416416
417- block,X1,X2,Y1,Y2,Z1,Z2 !3d hexahedron (wp )
417+ block,X1,X2,Y1,Y2,Z1,Z2 ! 3d hexahedron (working plane )
418418!@ ==============================
419419!@ --- Header ---
420420!@ ==============================
@@ -423,10 +423,10 @@ block,X1,X2,Y1,Y2,Z1,Z2 !3d hexahedron (wp)
423423!! NOTE: alskd
424424!! ------------------------------
425425
426- ! fini
427- ! /clear
428- ! y
429- /units,mpa !indicate mm-t-s unit system
426+ !! fini
427+ !! /clear
428+ !! y
429+ /units,mpa ! indicate mm-t-s unit system
430430!@ ==============================
431431!@ --- Preprocessing ---
432432!@ ==============================
@@ -435,9 +435,9 @@ block,X1,X2,Y1,Y2,Z1,Z2 !3d hexahedron (wp)
435435Steel = 1
436436ID = Steel
437437real = Steel
438- et,ID,solid186 !3d, 20 node
438+ et,ID,solid186 ! 3d, 20 nodes
439439!@@ -- Material --
440- mp,nuxy,Steel,0.3 ! Poisson No
440+ mp,nuxy,Steel,0.3 ! Poisson No
441441mp,ex,Steel,200000 ! Elastic modulus
442442!@@ -- Modeling --
443443block,0,1,0,1,0,1
@@ -547,9 +547,8 @@ MP,,,,,,,
547547Pi=3.14159265359
548548
549549*do,I,1,10,1
550-
551550
552- *cycle !bypass below commands in *do loop
551+ *cycle ! bypass below commands in *do loop
553552*enddo
554553
555554psolve !
0 commit comments