dannyk96 / danfe

My FE code
3 stars 1 forks source link

Format stdout form danfe as markdown #2

Open dannyk96 opened 9 years ago

dannyk96 commented 9 years ago

Currently danfe et al write to stdout the progress of the application as it works through the keywords. I propose that this format be tweaked into markdown syntax

This means that: 1 still readable as stdout 2 looks good on github :-) 3 can use converters to say html to publish

Example

    8     *BC_BY_COORD.
<>    16 nodes found of BC type 00
<>     8 nodes found of BC type 00
<>     9 nodes found of BC type 01
    9     *FORM_KM.
 <> Factorising the Stiffness Matrix...
   10     *NODAL_LOADS.
   11     *LOAD_STEPS.

<>    16 nodes found of BC type 00
<>     8 nodes found of BC type 00
<>     9 nodes found of BC type 01
    9     *FORM_KM.
 <> Factorising the Stiffness Matrix...
   10     *NODAL_LOADS.
   11     *LOAD_STEPS.
   12     *ANALYSE.
Table #   1                                               5 loaded freedoms
+-------+------+-------------+-------------+--------+--------+-----+--------+
| Step# | #Its | Tot.Force   |  Mean disp. | %Elast |%Mob-SS |  ngp|  Time  |
+------+-----+-------------+-------------+--------+--------+-----+--------+
|     1      2 |    400.0       0.5692E-02 | 100.00    84.35      0|10:15:27|
|     2     11 |    600.0       0.9689E-02 |  71.22   100.20     12|10:15:27|
|     3     20 |    700.0       0.1364E-01 |  36.01   100.17     18|10:15:27|

Convert this to

8 *BC_BY_COORD.

Table # 1 5 loaded freedoms

Step# #Its Tot.Force Mean disp. %Elast %Mob-SS ngp Time
1 2 400.0 0.5692E-02 100.00 84.35 0 10:15:27
2 11 600.0 0.9689E-02 71.22 100.20 12 10:15:27
3 20 700.0 0.1364E-01 36.01 100.17 18 10:15:27
dannyk96 commented 9 years ago

Yes will do doing the table in *ANALYSE will be easy - it is now 2015 should we take the opportunity to make it wide that 80 columns?

dannyk96 commented 9 years ago

so can we also convert

 +----------------------------------------------------------------------------+
 |                  D A N F E  Finite Element Analysis Program                |
 |                               Version 1.3.00                               |
 |             . . .                                                          |
 |              Author : Dr. Dan Kidger, (ex. University of Manchester)       |
 |            daniel.kidger@quadrics.com                                      |
 +----------------------------------------------------------------------------+

to |----------------------------------------------------------------------------| | D A N F E Finite Element Analysis Program | | Version 1.3.00 | | . . . | | Author : Dr. Dan Kidger, (ex. University of Manchester) |

daniel.kidger@quadrics.com
dannyk96 commented 5 years ago

I think that I have already tried this in the STDOUT of Danplot?