XANSYS Forum Index
    Register    

FAQ    Search    Memberlist    Usergroups    SmartFeedSmartFeed    Profile    Log in
[Xansys] [APDL] load as table
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    XANSYS Forum Index -> XANSYS
Author Message
boris.zmire
User


Joined: 08 Apr 2014
Posts: 3

PostPosted: Fri May 29, 2015 7:48 am  Reply with quote

Hi,

need help about load in table form.
I want to change the index of the table inside *DO loop.
Here is my code:

!
ffact = 1
*dim,fdresp,table,to_read-1,2,,FREQ
*DO,i,1,nlinef
*tread,fdresp,%filename%,inp,,to_skip
!
*dim,fdresp%i%,table,to_read-1,2,,FREQ
!
*toper,fdresp%i%,fdresp,add,fdresp,0,ffact(1)
!
F,%fnods(i)%,%fdofs(i)%,%fdresp%%i%
*ENDDO

The second table was created with index but the table in F command was not recognized.
Also %fdresp%i%% not recognized as a table.

Any workaround?

Thanks.

Regards

Boris ZMIRE, mag.ing. nav. arch
Support & Software Development Ingeneer
Advanced Simulation Technologies

boris.zmire@avl.com<mailto:boris.zmire@avl.com>
T: +385 1 7775 007, F: +385 1 7775 123
Office: +385 1 7775 000

AVL-AST d.o.o
HR-10000 Zagreb, Strojarska 22
www.avl.com<http://www.avl.com/>

[cid:image011.jpg@01D03FA8.B42F03A0]<https://www.facebook.com/AVL.List?ref=ts&fref=ts> [cid:image012.jpg@01D03FA8.B42F03A0] <https://twitter.com/avl_list> [cid:image013.jpg@01D03FA8.B42F03A0] <https://www.xing.com/companies/avllistgmbh> [cid:image014.jpg@01D03FA8.B42F03A0] <https://www.linkedin.com/company/avl> [cid:image015.jpg@01D03FA8.B42F03A0] <https://www.youtube.com/user/AVLList>

+-------------------------------------------------------------+
| XANSYS web - www.xansys.org/forum |
| The Online Community for users of ANSYS, Inc. Software |
| Hosted by PADT - www.padtinc.com |
| Send administrative requests to xansys-mod@tynecomp.co.uk |
+-------------------------------------------------------------+

Post generated using Mail2Forum (http://www.mail2forum.com)
Back to top
View user's profile Send private message
daniel.diaz
User


Joined: 21 Apr 2015
Posts: 11

PostPosted: Fri May 29, 2015 3:29 pm  Reply with quote

Hello Boris,

I would suggest some string concatenation. Try adding the following code after your *toper command.

Code:

tbnam=strcat('fdresp',chrval(i))


Then, replace the third argument of your F command ( %fdresp%%i% ) with:
%tbnam%

Cheers,
_________________
Dan Diaz
Belcan Engineeering
Back to top
View user's profile Send private message Send e-mail
boris.zmire
User


Joined: 08 Apr 2014
Posts: 3

PostPosted: Mon Jun 01, 2015 6:43 am  Reply with quote

Hi Dan,

thanks for your suggestion. It solves my problem and work great.

Regards

Boris

PS
Friday, afternoon, nice sunny day, the brain slows...


-----Original Message-----
From: Xansys [mailto:xansys-bounces@xansys.org] On Behalf Of daniel.diaz
Sent: 30. svibnja 2015. 0:30
To: xansys@xansys.org
Subject: Re: [Xansys] [APDL] load as table

Hello Boris,

I would suggest some string concatenation. Try adding the following code after your *toper command.


Code:

tbnam=strcat('fdresp',chrval(i))




Then, replace the third argument of your F command ( %fdresp%%i% ) with:
%tbnam%

Cheers,

------------------------
Dan Diaz
Finite Element Analyst
Belcan Engineeering
10200 Anderson Way
Blue Ash, OH 45242






+-------------------------------------------------------------+
| XANSYS web - www.xansys.org/forum |
| The Online Community for users of ANSYS, Inc. Software |
| Hosted by PADT - www.padtinc.com |
| Send administrative requests to xansys-mod@tynecomp.co.uk |
+-------------------------------------------------------------+
+-------------------------------------------------------------+
| XANSYS web - www.xansys.org/forum |
| The Online Community for users of ANSYS, Inc. Software |
| Hosted by PADT - www.padtinc.com |
| Send administrative requests to xansys-mod@tynecomp.co.uk |
+-------------------------------------------------------------+

Post generated using Mail2Forum (http://www.mail2forum.com)
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    XANSYS Forum Index -> XANSYS
All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

sleek template created by Andrew Charron