On Sun, Jul 8, 2018 at 10:53 PM, <ss.k...@pusan.ac.kr> wrote:

> Hello, all.
>
>
>
> To find the maximum solution value, I try to print a solution vector, e.g.,
> displacement vector in linear elasticity, as text extension.
>
> However, I was able to find only the solution with the exodus extension.
>
>
>
> This exodus extension is useful to visualize with a program like
> "ParaView,"
> but it is complicated to compare results directly.
>
> So I want to print solution with ".txt" as follows:
>
>
>
> (node)          (solution)
>
> 1                  0.1122
>
> 2                  0.5454
>
> .
>
> 3224             0.5722
>
>
>
> If there are multiple solutions such as 2D elasticity (displacements for x
> and y directions), I want to print a text file as
>
>
>
> (node)           (x)                (y)
>
> 1                  0.1122           0.5556
>
> 2                  0.5454           0.5878
>
> .
>
> 3224             0.5722           0.4125
>
>
>
> Could you please tell me some ways or ideas?
>
> If it is impossible, I want to print the maximum solution value in
> "Terminal"  using "std::cout << . << std::endl" at least.
>
>
>
> I always thank you for your help.
>


I gather you're asking how to write to a .txt file? That is a C++ question,
not specifically related to libMesh. I suggest you look on the web for a
tutorial for I/O, e.g. http://www.cplusplus.com/doc/tutorial/files/

Best,
David
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Libmesh-users mailing list
Libmesh-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to