read specific lines from text file
1 回表示 (過去 30 日間)
古いコメントを表示
hey guys\ i want to read the numbered lines from the following text file how can i do that?
(1) SINCE ABAQUS DOES NOT PRE-ALLOCATE MEMORY AND ONLY ALLOCATES MEMORY AS NEEDED DURING THE ANALYSIS,
THE MEMORY REQUIREMENT PRINTED HERE CAN ONLY BE VIEWED AS A GENERAL GUIDELINE BASED ON THE BEST
KNOWLEDGE AVAILABLE AT THE BEGINNING OF A STEP BEFORE THE SOLUTION PROCESS HAS BEGUN.
(2) THE ESTIMATE IS NORMALLY UPDATED AT THE BEGINNING OF EVERY STEP. IT IS THE MAXIMUM VALUE OF THE
ESTIMATE FROM THE CURRENT STEP TO THE LAST STEP OF THE ANALYSIS, WITH UNSYMMETRIC SOLUTION TAKEN
INTO ACCOUNT IF APPLICABLE.
(3) SINCE THE ESTIMATE IS BASED ON THE ACTIVE DEGREES OF FREEDOM IN THE FIRST ITERATION OF THE
CURRENT STEP, THE MEMORY ESTIMATE MIGHT BE SIGNIFICANTLY DIFFERENT THAN ACTUAL USAGE FOR
PROBLEMS WITH SUBSTANTIAL CHANGES IN ACTIVE DEGREES OF FREEDOM BETWEEN STEPS (OR EVEN WITHIN
THE SAME STEP). EXAMPLES ARE: PROBLEMS WITH SIGNIFICANT CONTACT CHANGES, PROBLEMS WITH MODEL
CHANGE, PROBLEMS WITH BOTH STATIC STEP AND STEADY STATE DYNAMIC PROCEDURES WHERE ACOUSTIC
ELEMENTS WILL ONLY BE ACTIVATED IN THE STEADY STATE DYNAMIC STEPS.
(4) FOR MULTI-PROCESS EXECUTION, THE ESTIMATED VALUE OF FLOATING POINT OPERATIONS FOR EACH PROCESS
IS BASED ON AN INITIAL SCHEDULING OF OPERATIONS AND MIGHT NOT REFLECT THE ACTUAL FLOATING
POINT OPERATIONS COMPLETED ON EACH PROCESS. OPERATIONS ARE DYNAMICALY BALANCED DURING EXECUTION,
SO THE ACTUAL BALANCE OF OPERATIONS BETWEEN PROCESSES IS EXPECTED TO BE BETTER THAN THE ESTIMATE
PRINTED HERE.
(5) THE UPPER LIMIT OF MEMORY THAT CAN BE ALLOCATED BY ABAQUS WILL IN GENERAL DEPEND ON THE VALUE OF
THE "MEMORY" PARAMETER AND THE AMOUNT OF PHYSICAL MEMORY AVAILABLE ON THE MACHINE. PLEASE SEE
THE "ABAQUS ANALYSIS USER'S MANUAL" FOR MORE DETAILS. THE ACTUAL USAGE OF MEMORY AND OF DISK
SPACE FOR SCRATCH DATA WILL DEPEND ON THIS UPPER LIMIT AS WELL AS THE MEMORY REQUIRED TO MINIMIZE
I/O. IF THE MEMORY UPPER LIMIT IS GREATER THAN THE MEMORY REQUIRED TO MINIMIZE I/O, THEN THE ACTUAL
MEMORY USAGE WILL BE CLOSE TO THE ESTIMATED "MEMORY TO MINIMIZE I/O" VALUE, AND THE SCRATCH DISK
USAGE WILL BE CLOSE-TO-ZERO; OTHERWISE, THE ACTUAL MEMORY USED WILL BE CLOSE TO THE PREVIOUSLY
MENTIONED MEMORY LIMIT, AND THE SCRATCH DISK USAGE WILL BE ROUGHLY PROPORTIONAL TO THE DIFFERENCE
BETWEEN THE ESTIMATED "MEMORY TO MINIMIZE I/O" AND THE MEMORY UPPER LIMIT. HOWEVER ACCURATE
ESTIMATE OF THE SCRATCH DISK SPACE IS NOT POSSIBLE.
(6) USING "*RESTART, WRITE" CAN GENERATE A LARGE AMOUNT OF DATA WRITTEN IN THE WORK DIRECTORY.
INCREMENT 1 SUMMARY
TIME INCREMENT COMPLETED 1.00 , FRACTION OF STEP COMPLETED 1.00
STEP TIME COMPLETED 1.00 , TOTAL TIME COMPLETED 1.00
N O D E O U T P U T
THE FOLLOWING TABLE IS PRINTED FOR ALL NODES
NODE FOOT- U1 U2 U3
NOTE
- 4 -2.8565E-08 -8.0794E-08 1.1763E-07
- 5 -4.8020E-10 -5.9218E-08 1.0520E-09
- 6 2.7605E-08 -8.6104E-08 -1.1995E-07
- 7 -9.5309E-09 -2.3666E-07 1.6838E-07
- 8 -3.8413E-10 -2.4576E-07 -2.3995E-09
- 9 8.7626E-09 -2.3982E-07 -1.6735E-07
- 10 -4.5121E-09 -4.7239E-07 2.3862E-07
- 11 -2.7664E-10 -4.5605E-07 5.5218E-10
- 12 3.9588E-09 -4.7581E-07 -2.4307E-07
- 13 -6.1779E-09 -7.0925E-07 2.4304E-07
- 14 -4.6999E-10 -7.2247E-07 -2.6160E-09
- 15 5.2379E-09 -7.1338E-07 -2.4377E-07
- 16 2.7256E-09 -9.8892E-07 2.6488E-07
- 17 -2.5193E-10 -9.7594E-07 -9.6801E-10
- 18 -3.2295E-09 -9.9195E-07 -2.7005E-07
- 19 -3.4011E-09 -1.2396E-06 2.6128E-07
- 20 -4.7280E-10 -1.2539E-06 -2.4868E-09
- 21 2.4555E-09 -1.2438E-06 -2.6428E-07
- 25 0.000 -9.4701E-08 9.7040E-08
- 26 0.000 -7.3124E-08 6.1762E-10
- 27 0.000 -1.0001E-07 -1.0023E-07
- 28 0.000 -2.4128E-07 2.0149E-07
- 29 0.000 -2.5038E-07 -1.9019E-09
- 30 0.000 -2.4444E-07 -1.9947E-07
- 31 0.000 -4.7460E-07 2.1478E-07
- 32 0.000 -4.5826E-07 1.7795E-10
- 33 0.000 -4.7802E-07 -2.1997E-07
- 34 0.000 -7.1189E-07 2.6281E-07
- 35 0.000 -7.2511E-07 -2.4376E-09
- 36 0.000 -7.1602E-07 -2.6318E-07
- 37 0.000 -9.8773E-07 2.5499E-07
- 38 0.000 -9.7475E-07 -9.3249E-10
- 39 0.000 -9.9075E-07 -2.6009E-07
- 40 0.000 -1.2407E-06 2.6484E-07
- 41 0.000 -1.2550E-06 -2.7405E-09
- 42 0.000 -1.2449E-06 -2.6835E-07
- 46 2.8565E-08 -8.0794E-08 1.1763E-07
- 47 4.8020E-10 -5.9218E-08 1.0520E-09
- 48 -2.7605E-08 -8.6104E-08 -1.1995E-07
- 49 9.5309E-09 -2.3666E-07 1.6838E-07
- 50 3.8413E-10 -2.4576E-07 -2.3995E-09
- 51 -8.7626E-09 -2.3982E-07 -1.6735E-07
- 52 4.5121E-09 -4.7239E-07 2.3862E-07
- 53 2.7664E-10 -4.5605E-07 5.5218E-10
- 54 -3.9588E-09 -4.7581E-07 -2.4307E-07
- 55 6.1779E-09 -7.0925E-07 2.4304E-07
- 56 4.6999E-10 -7.2247E-07 -2.6160E-09
- 57 -5.2379E-09 -7.1338E-07 -2.4377E-07
- 58 -2.7256E-09 -9.8892E-07 2.6488E-07
- 59 2.5193E-10 -9.7594E-07 -9.6801E-10
- 60 3.2295E-09 -9.9195E-07 -2.7005E-07
- 61 3.4011E-09 -1.2396E-06 2.6128E-07
- 62 4.7280E-10 -1.2539E-06 -2.4868E-09
- 63 -2.4555E-09 -1.2438E-06 -2.6428E-07
MAXIMUM 2.8565E-08 0.000 2.6488E-07
AT NODE 46 1 58
MINIMUM -2.8565E-08 -1.2550E-06 -2.7005E-07
AT NODE 4 41 18
0 件のコメント
回答 (1 件)
dpb
2014 年 6 月 9 日
Start w/ the simplest and work up from there...try just
data=importdata('yourfile.ext');
and likely bliss will follow automagically. If not, it looks like a fixed number of header lines are there, count them and given importdata that extra help using the 'headerlines' named parameter if it has trouble counting the whole thing.
If it has trouble w/ the trailing lines, then come back and we'll go from there but no sense in getting carried away until know is need...
5 件のコメント
dpb
2014 年 6 月 9 日
Yeah, my bad there on it not being named parameter -- do wish TMW could get some consistency going... :(
I was wondering if just
dat=importdata('filename');
would be smart-enough w/ the complex header info. (Of course, I could try it but Matlab isn't handy just now...)
Cedric
2014 年 6 月 9 日
編集済み: Cedric
2014 年 6 月 9 日
I am unfamiliar with IMPORTDATA, so the first thing I did was to try without specifying headerlines and it didn't work. The second was to use named parameters and it didn't work either (so I join your comment about consistency!), and I finally read the doc to discover that it has a very basic interface and little room for parametrization.
参考
カテゴリ
Help Center および File Exchange で Large Files and Big Data についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!