Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Latest Threads
CQUAD4 in bending test
Forum: MYSTRAN
Last Post: Admin
09-13-2020, 01:53 AM
» Replies: 27
» Views: 1,068
Sparse Solver Notes
Forum: MYSTRAN
Last Post: Admin
09-07-2020, 07:39 PM
» Replies: 0
» Views: 278
Comparation of OS specifi...
Forum: MYSTRAN
Last Post: Admin
09-01-2020, 04:45 AM
» Replies: 5
» Views: 267
Batch file to solve test ...
Forum: MYSTRAN
Last Post: ceanwang
08-31-2020, 02:03 AM
» Replies: 1
» Views: 184
BANDIT crash on Windows (...
Forum: MYSTRAN
Last Post: borges
08-30-2020, 12:53 AM
» Replies: 15
» Views: 651
Help to get a NEU output
Forum: MYSTRAN
Last Post: Admin
08-28-2020, 12:28 AM
» Replies: 1
» Views: 190
Gmsh
Forum: Pre/Post Processors
Last Post: JuanP74
08-25-2020, 07:21 AM
» Replies: 9
» Views: 474
ParaView documentation
Forum: MYSTRAN
Last Post: Admin
08-24-2020, 10:24 PM
» Replies: 4
» Views: 335
NASTRAN-95 vs MYSTRAN
Forum: NASTRAN-95
Last Post: JuanP74
08-21-2020, 09:15 AM
» Replies: 12
» Views: 1,954
Linux Compiling
Forum: MYSTRAN
Last Post: ceanwang
08-19-2020, 06:19 AM
» Replies: 18
» Views: 1,166

 
  Sparse Solver Notes
Posted by: Admin - 09-07-2020, 07:39 PM - Forum: MYSTRAN - No Replies

This thread is in-work, but provides some basic information about to implement a sparse solver to MYSTRAN.

----------------------
MYSTRAN Information
----------------------

In the following link, there are notes for how to incorporate a sparse solver. PaStiX seems to be best option for this. More information about PaStiX will be added later.

https://mystran.com/notes/Sparse_Solver_Notes.pdf

----------------------
PaStiX Information
----------------------
http://pastix.gforge.inria.fr/files/README-txt.html

https://www.labri.fr/perso/ramet/

https://gitlab.inria.fr/solverstack/pastix

https://gforge.inria.fr/forum/forum.php?...oup_id=186

Print this item

  Comparation of OS specified files
Posted by: ceanwang - 08-31-2020, 02:57 AM - Forum: MYSTRAN - Replies (5)

Hi,

Under Sources\Specifics, there are files for Windows and Linux system.

Here is a script to compare them. Put the script under Sources\Specifics folder and run cpSrc.bat, the difference will saved in a cpDiff.txt file.

For GET_INI_FILNAM.f90, the difference is:

Code:
InputObject                                                                                                           
-----------                                                                                                           
! ##################################################################################################################...
! Gets name (incl path) of the MYSTRAN.INI initialization file. This is the Linux version which uses '/' as a folder...
         INIFIL(MYSTRAN_DIR_LEN+1:MYSTRAN_DIR_LEN+2)  = '/'                                                           
                                                                                                                      
! Gets name (incl path) of the MYSTRAN.INI initialization file. This is the Windows version which uses '\' as a fold...
         INIFIL(MYSTRAN_DIR_LEN+1:MYSTRAN_DIR_LEN+2)  = '\'           
There should be a way to work for both OSes, '\\' ?


For GET_MYSTRAN_DIR.f90, the difference is:

Code:
InputObject                                                                                                           
-----------                                                                                                           
! ##################################################################################################################...
      CHARACTER(FILE_NAM_MAXLEN*BYTE), INTENT(OUT) :: MYSTRAN_DIR       ! Directory where program executable (and IN...
      INTRINSIC                                    :: GET_ENVIRONMENT_VARIABLE                                        
      CALL GET_ENVIRONMENT_VARIABLE ( 'MYSTRAN_directory', MYSTRAN_DIR, MYSTRAN_DIR_LEN  )                            
! Gets the environment variable MYSTRAN_DIR that tells Windows where the MYSTRAN executable is located. The user mus...
! environment variable on their computer                                                                              
      CHARACTER(FILE_NAM_MAXLEN*BYTE), INTENT(OUT) :: MYSTRAN_DIR       ! Directory where executable (and INI file) ...
      INTRINSIC                                    :: GETENV                                                          
      CALL GETENV ( 'MYSTRAN_directory', MYSTRAN_DIR )                                                                
      MYSTRAN_DIR_LEN = FILE_NAM_MAXLEN                                                                               
      DO I=FILE_NAM_MAXLEN,1,-1                                                                                       
         IF (MYSTRAN_DIR(I:I) /= ' ') THEN                                                                            
            EXIT                                                                                                      
         ELSE                                                                                                         
            MYSTRAN_DIR_LEN = MYSTRAN_DIR_LEN - 1                                                                     
            CYCLE                                                                                                     
         ENDIF                                                                                                        
      ENDDO                 

I think GET_ENVIRONMENT_VARIABLE (Fortran 2003 and later) and GETENV (backwards compatibility with GNU Fortran 77) could use one to work for both OSes. In new code, programmers should consider the use of the GET_ENVIRONMENT_VARIABLE.

For READ_CL.f90,  the difference is:

Code:
InputObject                                                                                                           
-----------                                                                                                           
! Begin MIT license text.                                                                                             
! _______________________________________________________________________________________________________             
! Copyright 2019 Dr William R Case, Jr (dbcase29@gmail.com)                                                           
! Permission is hereby granted, free of charge, to any person obtaining a copy of this software and                   
! associated documentation files (the "Software"), to deal in the Software without restriction, including             
! without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell             
! copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to                
! the following conditions:                                                                                           
! The above copyright notice and this permission notice shall be included in all copies or substantial                
! portions of the Software and documentation.                                                                         
! THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS                                             
! OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,                                         
! FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE                                         
! AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER                                              
! LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,                                       
! OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN                                           
! THE SOFTWARE.                                                                                                       
! _______________________________________________________________________________________________________             
! End MIT license text.                                                                                               
! ##################################################################################################################...
All are comments. So there should be no difference for this file.



Attached Files
.zip   cpSrc.zip (Size: 544 bytes / Downloads: 0)
Print this item

  BANDIT crash on Windows (MSYS+CMake build)
Posted by: borges - 08-28-2020, 04:51 PM - Forum: MYSTRAN - Replies (15)

I think it's a good idea to sum up all the information regarding the whole BANDIT/CMake/Windows situationin a thread over here.

Here's a quick run-down of what happened:

  1. In the interest of getting a consistent, faster build process (without Code::Blocks) and supporting Linux, I updated Cean's CMakeLists.txt file, enabling users to compile MYSTRAN (using gfortran) under both Linux and Windows (using MSYS).
  2. The resulting binaries worked fine on Linux, but caused runtime errors on Windows. Those crashes originated in WRITE calls in BANDIT.
  3. We were unable to find an explanation for the uncovered OS-dependent behavior. It's a really weird glitch in how the runtime is treating opened files.
  4. In the interest of getting this improved build process out there, I also commented out all offending WRITE calls. After that change, the Windows binary seems to work.
That's the current state of my fork: CMake cross-platform improved build spec and silenced BANDIT.

Some extra points that came up during discussion and are very much worth mentioning:
  • BANDIT is comprised of legacy F77 code. This may be related to the "quirky" behavior across OSes.
  • Even though the test cases run on Windows after silencing BANDIT, it still reports BANDIT failed (code 4). That doesn't happen on Linux. Maybe the glitch causing this inconsistent behavior runs deeper than we previously thought.
  • That may explain why others were unable to reproduce this behavior in simple test programs.
  • Since integrating a better solver (PaStiX) is in the works and it doesn't need BANDIT, "fixing" BANDIT doesn't seem worth the effort. PaStiX should be the priority.
  • Still, until that's done, it's good to have an alternative build process working.

Print this item

  Help to get a NEU output
Posted by: ceanwang - 08-28-2020, 12:09 AM - Forum: MYSTRAN - Replies (1)

Hi,

I am trying this shell_bending.txt case but can't get a NEU result file. What is the setting to also have a NEU output?

https://www.mystran.com/forums/showthread.php?tid=46

Regards,

Cean

Print this item

  CQUAD4 in bending test
Posted by: O_Stodieck - 08-27-2020, 06:01 PM - Forum: MYSTRAN - Replies (27)

Hi, 

I am getting some unexpected results running the attached cantilevered composite plate model in Mystran 11.0. :

  • The model is a flat plate in the X-Y plane, with dimensions of 1.5m x 0.15m and fully fixed at one of the short ends. 
  • A Z-direction shear force is applied through an RBE3 at the unsupported end (Grid 737).
  • I would expect a Z-deflection at Grid 737 close to T3 = 0.29625 (simple CLT calculation and in agreement with other FEM solvers)
  • But I am getting T3 = 0.03613559 at Grid 737 instead.
  • AUTO SPC forces are zero (constraining Z-rotations / drilling DOF on the CQUADs only)
Any ideas what could trigger this behaviour?

Do you have a simple test case for shell (CQUAD4) element bending that I can run to test the installation? 
Thanks.



Attached Files
.txt   shell_bending.txt (Size: 122.08 KB / Downloads: 22)
Print this item

  Batch file to solve test cases in one folder
Posted by: ceanwang - 08-24-2020, 10:58 PM - Forum: MYSTRAN - Replies (1)

Hi,

Same as the 3-TestRuns folder, create a 8-Test folder and save this msolve.bat file in it. Please remove the txt extension.
Run, it will solve all dat files in 3-TestRuns\Statics\Banded\CurrentRuns folder.

Regards,

Cean


After solving all the cases, you could compare the newly generated *.ANS to the corresponding *.ARC files under the 3-TestRuns\Statics\Banded\Archive folder using these two bat files. Also save and run in 8-test folder. Please remove the txt extension.

cpARC.bat will call compareARC.ps1 to compare the pair of files line by line. compareARC.ps1 is a Window 10 PowerShell's script. It will write the difference into the cpDiff.txt file.

The problem at the moment for me is that the ARC file treat 0 different to my ANS file. One has - sign at the front of 0. I think if the exe is generate by same compiler, there will be no problem.



Attached Files
.txt   msolve.bat.txt (Size: 2.29 KB / Downloads: 1)
.txt   cpArc.bat.txt (Size: 76 bytes / Downloads: 1)
.txt   compareArc.ps1.txt (Size: 8.64 KB / Downloads: 1)
Print this item

  ParaView documentation
Posted by: Dom - 08-24-2020, 03:43 PM - Forum: MYSTRAN - Replies (4)

Hello,

Is there documentation on how to use Paraview as a post-processor of MYSTRAN?

Thanks
Dom

Print this item

  Gmsh
Posted by: JuanP74 - 08-19-2020, 06:35 AM - Forum: Pre/Post Processors - Replies (9)

Hello,



I would recommend gmsh, at least for postprocessing. The MSH file formats (ASCII and binary) are very well suited for it in my experience (small, medium model sizes) and in ascii format easy to check and modify if necessary. Plotting capabilities are as good as femap and allows for nodal and elemental results. I have created the files with text processor sometimes for small models using f06 results. I think is as good as femap .neu file and easier to read and can be used with a software that is free & open source that does not need installation and runs in all platforms (macOS, windows and linux).

http://gmsh.info/doc/texinfo/gmsh.html#M...egacy_0029

I attach an example so you can check by yourselves (this is an ascii file in legacy format 2) for normal modes of a small model (remove .txt extension before opening with gmsh).



Attached Files
.txt   shelf.msh.txt (Size: 16.36 KB / Downloads: 8)
Print this item

  gFortran 8.1.0 for Windows
Posted by: ceanwang - 08-15-2020, 01:40 AM - Forum: MYSTRAN - No Replies

Hi,

It is from MinGW-w64 project. Code::Block uses this version.

You could download it from https://sourceforge.net/projects/mingw-w64/

With cmake, you could use it to compile MYSTRAN in DOS terminal.

Regards,

Cean

Print this item

  Linux Compiling
Posted by: O_Stodieck - 08-06-2020, 08:58 AM - Forum: MYSTRAN - Replies (18)

What are the options for compiling on Linux Ubuntu? Is there a CMake file for linux?

The github instructions are not very enlightening:
"If compiling for Linux:

1. Rename the other 3 files in this directory to have a ".f90" extension instead of a ".tmp" extension.
2. Delete the files in the "1_Windows" directory."

Print this item