Home
INSTALLATION GUIDE
Contents
1. 6 22A XOU 2S ites see verses ieedcesiaeigad eee cdetec ease dea devn tases apd vesaeatcadeck a aa a dapat 6 2 3 cgx 2 8 CalculiX Graphix Version 2 8 oo cece esessecsseesececesecescesecesceseeeeeseseeeeaeeeeseaees 6 24 MacPorts 2 3 3 anaa ieta EAEE A TAE O divienn a T R E E E aa eas 6 2 5 Optional Additional Software ImageMagick 6 8 8 6 PSUtils p17 gs 9 10 gv 3 7 4 Firefox 35 0 Netgen 5 1 gnuplot 4 6 0 sssssssssssssssesessessssresrstesrsrtssestssertrtsrentsreststrsresrssestssestt 7 3 PRE ARRANGEMENTS FOR INSTALLATION 00 eeccceceseceesseeeesneeeeneceesaeeeeaes 8 3 1 Default Compilers GCC 5 1 and Compiler g 4 9 for Installation of CgX wees 8 3 2 Terminal Terminal Commands HOME LOGNAME Login and Permissions 0 8 3 3 Editors bash_profile Editing of Hidden File bash_profile and Usage of bash_profile to Set Paths and Export Paths 0 cece cscesseceessecsecsaecaecsaecaecnsesaeeneeaes 9 4 INSTALLATION OF CALCULUX FILES os 05 sical penny eds 12 4 1 GENET AL 2h shies sans cgshs aiseia dias S E E 12 42 Installation Path calculix_inst_path and File System eee ceeeecssecenceceeeeeneceeeeeeeeeeaes 12 43 Install Cox Fie Sitera aa e A OE EAA ATAA eden atten need silat tes 13 4 4 Install cex htm Help Piles 305 ecco tech eer aah ee ee eee OR et 14 45 Install ecx html Hel p File S ee ceed tied atae HORA A oias E a E ea ee eee awe 14 J INSTALL MAC SPECIFIC SOFTWARE seeseseeseessessesseseresressersres
2. calculix cgx_2 8 src setFunctions c Modifications Prepared B Graf Open file setFunctions c with an editor of your choice Installation Guide February 10 2015 CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks 31 CalculiX cgx Installation Guide Mac OS X In setFunctions c replace the three existing entries pswrite with ps2write without quotes Note With ps2write the output device for gs GhostScript is set Save file setFunctions and quit editor 4 Build and install cgx Use below specified Terminal commands without comments and replace calculix_install_path in commands with full path specification accord ing to Section 4 2 Installation steps cd calculix_install_path calculix cgx_2 7 sre lt return gt Change to directory with source code and makefile sudo make lt return gt Build cgx Some warnings will appear which are not relevant for the functionality of cgx sudo rm o lt return gt Remove object files Use command always before re build Command make builds the binary cgx in directory src calculix_install_path calculix cgx_2 7 srce cgx Before re build of cgx remove object files with Terminal command sudo rm o lt return gt as already specified above 5 Install binary of cgx in usr local bin First check if usr local bin already exists with
3. e The functionality of cgx which is provided by the now installed preview command line tool will be tested in Section 9 3 3 and Section 9 3 4 below 7 6 Firefox 35 0 or any other html browser e In cgx a html browser is used to display the cgx and ccx help files cf also Tab 1 for the functionality of the html browser For the sake of simplicity the installation will be demonstrated for Firefox For other browsers replace Firefox with the name of your browser Safari etc in the instructions below It is assumed that Firefox is already installed The Firefox App then is located in your Applications folder e Next a shell script is provided which enables cgx to open Firefox The script will be in stalled in usr local bin cf the note below for an alternative installation of the script The filename of the script is also the name of the html browser Accordingly the name of the browser will be set for the installation of cgx in Section 8 1 below Installation steps a b a Create the shell script respectively a file with filename firefox or any other file name in a directory of choice directory dir_your_choice for example your HOME Users LOGNAME by using an editor of your choice Insert the following lines in file firefox then safe and quit the file bin bash Shell script enables launch of Firefox from Terminal window Command for Terminal window Firefox lt input gt P
4. The size of trias subsequently is controlled by the default num ber of four subdivisions of lines which form element edges cf example under Step 4 3 below how the number of subdivisions may be changed For the default number of four subdivisions four linear or two quadratic elements are created along some line respec tively some edge of the cube The size of tets will be controlled with the parameter size which is provided by the considered tet meshing command Steps for tet meshing If necessary first launch cgx and load test example cube with Terminal command cgx_2 8 b test_tets fbd lt return gt An already existing mesh may be deleted with the cgx command del mesh lt return gt As already mentioned before the required regular surface mesh will be created by meshing of regular geometrical surfaces of the cube The latter requires that first of all the free surfaces of the cube are checked for regular orientation To check the orienta tion plot the front and back sides of the surfaces with the following cgx commands without green comments for typing locate mouse pointer in graphics window of cgx rep all lt return gt Renders surfaces for plotting of front and back sides cf 2 Section 8 84 for details plot si all lt return gt Plot rendered surfaces from set all After the execution of the last command three regular front sides are filled in magenta reflecting and three non regular back sides in b
5. Use cgx Command mesh set_name_trias size for tet meshing Task test tet meshing for previously build geometrical model of cube As previously explained amongst others set set_name_trias all already contains the geometrical entities lines surfaces body of the cube which are required for the subsequent meshing Regular surface mesh For tet meshing a regular surface mesh is required Conditions i ii of a regular surface mesh i mesh must form closed surface ii orientation of unit normal vectors of surface elements such that they point from volume outwards The lat ter may be controlled with the help of the front and back side of surface elements or al ternatively with the help of the front and back side of geometrical surfaces cf further explanation and example below Condition i of a closed surface mesh in general is satisfied if a surface is meshed auto matically with cgx Each trias then is joint by three neighboring trias If surface meshes are build manually however condition i should be checked Further explanation of condition ii of regular orientation of geometrical surfaces and surface elements For the sake of simplicity the further explanation is restricted on geo metrical surfaces because all of the definitions and manipulations given below for geo metrical surfaces also hold for surface elements and vice versa Accordingly the geo metrical free surfaces of a volume are regular in the sense of condition
6. in the present instruction the sudo command is set for installation commands However if you run into any permission problems first try to use sudo as specified above If sudo doesn t work you must login as root 3 3 Editors bash_profile Editing of Hidden File bash_profile and Usage of bash_profile to Set Paths and Export Paths General The following notes are provided for Mac users who usually don t work in Unix environments Also search the web for more instructions concerning the below discussed subjects Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks 10 CalculiX cgx Installation Guide Mac OS X Editors The Finder App respectively the Finder is a convenient tool for file handling on your Mac However many of the files on your Mac are hidden in Finder windows amongst others the file bash_profile which is required later for the cgx installation In the following it will be explained how hidden files may be created opened and edited Furthermore the path setting in file bash_profile is briefly explained File bash profile The file bash profile is located in your HOME and amongst other set tings contains path settings respectively is used to export paths The dot in the first place of the file name marks file bash_profile as a hidden file which therefore is not dis played in the Finder window A simp
7. with cgx command plot e all lt return gt you may use the cgx menu items Viewing Show All Elements With Light to display elements and then Viewing Toggle El ement Edges to display element edges Write mesh to file Use cgx command without comment send all abq lt return gt Write optional file all msh with all nodes and all elements contained in set all to create file all msh with nodal coordinates and connectivity of elements Delete mesh Use cgx command without comment del mesh lt return gt Deletes all mesh data After the mesh has been deleted the mesh is no longer displayed and in set all all en tries for nodes and elements are empty use cgx command print se lt return gt to check Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks 43 CalculiX cgx Installation Guide Mac OS X e If you want to re plot the still existing geometrical entities use cgx commands plot en tity all lt return gt to plot geometrical entities with entity I for lines entity s for surfaces entity b for body cf also 2 for the cgx plot command plot After the first use of command plot entity all lt return gt use command plus entity all lt return gt to add plots of additional entities cf also 2 for the cgx plot commands plus Step 4 2
8. 7 Installation of Netgen without GUI sufficient for functionality of cgx Optional installation of Netgen with GUI considered in Appendix 2 e General Command driven function and data plotting program for 2D and 3D plots e Function Provides gnuplot command line tool e Usage cgx uses gnuplot to generate ps plotfiles for xy plots Gnuplot 4 6 0 path plots history plots etc cgx also provides a script with oe gnuplot commands e Installation Section 7 8 Note cgx provides default ASCII file with raw data for x y plots If gnuplot is not installed therefore you may use the afore mentioned ASCII file for plotting with a plot program of your choice Apps pre installed on Mac For details of usage of Apps cf test of functionality of additional software in Section 9 Table 1 Additional software sorted by name Installation tested for software releases according to column 1 General function usage and cross reference to installation according to column 2 Mac Apps with similar functionality listed in column 3 In Tab 2 below the additional software is sorted by cgx menu items MI and cgx commands C Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks CalculiX cgx Installation Guide Mac OS X MI cgx menu item IC cgx command of cgx Functionality and test examples functionality of cgx menu items MI an
9. Terminal command cd usr local bin lt return gt If directory bin already exists then continue with Further steps below Otherwise i e if the screen message No such file or directory appears then create usr local bin now with Terminal command sudo mkdir usr local bin lt return gt Further steps cd calculix_install_path calculix cgx_2 8 sre lt return gt Change to directory with binary cgx sudo cp cgx usr local bin cgx_2 8 lt return gt Create copy cgx_2 8 of binary cgx in usr local bin The copy cgx_2 8 of the binary cgx in usr local bin cgx_2 8 enables to launch cgx from working directories You also might change the protection with command sudo chmod ao rx usr local bin cgx_2 8 lt return gt Alternatively instead of copying the binary cgx in usr local bin as explained above you may set the path calculix_install_path calculix cgx_2 7 sre to the binary of Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks 32 CalculiX e cgx Installation Guide Mac OS X e cgx in your bash_profile cf Section 3 3 and Section 7 7 for instructions and exam ples Furthermore use commands cd calculix_install_path calculix cgx_2 7 sre lt return gt and then sudo mv cgx cgx_2 8 lt return gt to rename the binary for example from cgx
10. Thomas Williams Colin and many others gnuplot home http Kelley www gnuplot info faq bugs etc type help FAQ immediate help type help plot window hit h Terminal type set to aqua gnup lLot gt Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks 28 CalculiX cgx Installation Guide Mac OS X e 4 and the prompt gnuplot gt for the input of gnuplot commands appears in the last line of the output as shown above Furthermore according to the screen output above terminal type Aqua preferred GUI for Mac is set Use gnuplot command gnuplot gt exit lt return gt to exit gnuplot If however after the command gnuplot lt return gt the screen message appears dyld Library not loaded opt local lib libgd 2 dylib Referenced from usr local bin gnuplot Reason image not found Trace BPT trap 5 gnuplot couldn t find the library libgd 2 dylib The library problem may be fixed with the following link sudo In s opt local lib libgd 3 dylib opt local lib libgd 2 dylib lt return gt Next launch gnuplot again and check screen output as already explained above Note It is possible that besides the above mentioned library libgd 2 dylib another library is missing In the latter case first try to find the missing library on your Mac use Finder or Unix command to find and the path to this library Then link the li
11. X Snow Leopard 2011 Dr B Graf Consulting Engineer 8044 Ziirich graf_bernhard bluewin ch February 10 2015 A2 A2 2 CalculiX cgx Installation Guide Mac OS X e Appendix 2 GENERAL The installation of Netgen with GUI is considered The installation has been tested for the program versions as given below After the installation of Netgen with GUI continue in stallation of Netgen for cgx with step 6 in Section 7 7 SOFTWARE REQUIREMENTS e Mac specific OS X 10 9 5 Xcode 5 1 1 XQuartz 2 7 5 modified GCC 5 1 1 according to Section 2 2 e TCL Besides XQuartz the GUI of Netgen requires the installation of the following TCL packages tcl8 5 9 tk8 5 9 Tix8 4 3 Togl 1 7 It should be noted that the GUI may not work for deviating combinations of versions of tcl tk Tix and Togl In other words there is not only a dependency of tcl on tk Tix and Togl but also on the versions of the aforementioned packages e Netgen 5 1 INSTALL MAC SPECIFIC SOFTWARE Follow instructions in Section 5 INSTALL TCL Installation path For the present instructions it is assumed that TCL is installed for the user defined path tcl_install_path Users LOGNAME TCL_INSTALL Accordingly TCL will be installed in directory TCL_INSTALL under your home di rectory Users LOGNAME Create directory TCL_INSTALL with the Finder or Ter minal commands cd Users LOGNAME lt return gt mkdir TCL_I
12. installation instructions below To activate the changes respectively to export the new paths in bash_profile use com mands cd lt retumn gt Set home directory source bash_profile lt return gt in current Terminal window Alternatively you may open a new Terminal window be cause as soon as a new Terminal window is opened the OS will automatically execute the commands in bash_profile i e export path settings etc Control the path settings with the following command echo PATH lt return gt Notes The OS also automatically searches the default paths usr bin as well as usr local bin for executables Instead of TextEdit also one of the command line editors may be used vim editor etc Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks 12 CalculiX cgx Installation Guide Mac OS X e 4 INSTALLATION OF CALCULIX FILES 4 1 General In the present section the cgx source code as well as the cgx and ccx help files will be downloaded and installed The installation path may be chosen according to Section 4 2 Furthermore the file system for the installation of cgx and ccx is explained in Section 4 2 After the installation of Calculix files continue installation in the sequence of Section 5 to Section 8 4 2 Installation Path calculix_inst_path and File System Installation Path Both cgx and cxx are installed for t
13. installed under path calculix_inst_path CalculiX The file system will be further explained below 43 Install cgx Files Steps a b a Download cgx_2 8 source code from Calculix site http www dhondt de The cgx package cgx_2 8 all tar bz2 will be downloaded to your Desktop directory Desk top and unpacked to folder CalculiX If not unpack by double clicking the package icon of cgx_2 8 all tar bz2 b Move folder CalculiX from Desktop to calculix_inst_path using drag and drop or with Terminal command calculix_inst_path according to Section 4 2 above mv r Desktop CalculiX calculix_inst_path lt return gt The source code of cgx now is contained in directory cgx_2 8 under directory Cal culiX cf Fig 1 In addition the directories for the libraries glut 3 5 and ibSNL are in stalled under directory Calculix cf Fig 1 The aforementioned directory cgx_2 8 Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks 14 CalculiX cgx Installation Guide Mac OS X e contains directory src with the source code of cgx as well as directory doc for the doc umentation directory examples with examples and directory netgen with netgen files cf Fig 1 4 4 Install cgx html Help Files In cgx a help menu for cgx is provided For the aforementioned menu the ht
14. meshing with the help of set set name all In cgx the following two mesh commands a b are provided for tet meshing a mesh set_name_b For direct tet meshing of bodies without prior meshing of sur faces of bodies after element type te4 or te10 has been set before Bodies must be contained in set set_name_b The aforementioned command is applied under Step 4 1 below for the test of tet meshing The element size may be controlled via the subdivision of lines as explained below cf also example under Step 4 3 below Note According to 2 Section 8 41 also the following meshing capability is provided by cgx but is not tested here Therefore its possible to start cgx in the viewing mode v with a mesh alone and then create bodies and fill them with additional elements b mesh set_name_trias size Imagine that the volume of a body is uniquely defined by a regular surface mesh example given in Step 4 2 below with trias triangular shell elements of type tr3 tr3u or tr6u The cgx command mesh set_name_trias size then may be used for subsequent volume meshing of the body with tets set_name_trias set must contain surface elements size optional parameter for el ement size of tets Accordingly prior to volume meshing first an adequate surface mesh must be generated Depending on the type of chosen trias linear or quadratic tets te4 or tel0 are automatically chosen for tet mes
15. not O K then replace it now with without quotes second_order then save file and quit editor If secon dorder is not found code in ng_vol cpp is already O K then quit editor 4 2 Rename file ng _vol cpp in the netgen package as ng_vol_netgen_vers cpp if you want to keep it The aforementioned file ng_vol cpp is located under the path netgen_install_path netgen 5 1 nglib in the netgen package Use the Finder to rename the file or Terminal command mv path ng_vol cpp path ng_vol_netgen_vers lt return gt with path netgen_install_path netgen 5 1 nglib 4 3 Copy modified file ng _vol cpp cf point 4 1 above from the cgx package to the location of the netgen installation netgen_install_path netgen 5 1 nglib with the Finder or with Terminal command Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks 25 CalculiX cgx Installation Guide Mac OS X cp cgx_path ng_vol cpp netgen_path lt return gt with cgx_path calculix_install_path calculix cgx_2 7 netgen ng_vol cpp and netgen_path netgen_install_path netgen 5 1 nglib 5 Install Netgen For the installation of Netgen without GUI follow the instructions un der point 5 1 below and for the installation with GUI point 5 2 The installation without GUI is sufficient to pr
16. to step b5 to search for the executable firefox e The filename of the shell script from point a above now is the name of the postscript viewer and is required in Section 8 1 below to complete the installation of cgx e Consider that a html file test html is located on your desktop For the test of the in stallation then use Terminal commands cd Desktop lt return gt firefox test html lt return gt If the installation was successful after the last command the file test html will be dis played with Firefox e The functionality of cgx which is provided by the now installed firefox command line tool will be tested in Section 9 3 5 below 7 7 Netgen 5 1 From Netgen automatic 3D tetrahedral mesh generator the command line tool ng_vol is provided which is used from cgx for tet meshing with a given target element size cf also Tab 1 for the functionality of ng_vol in cgx Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks 24 CalculiX cgx Installation Guide Mac OS X e The installation of Netgen with and without GUI is considered The installation without GUL is sufficient to provide the command line tool ng_vol for cgx Installation steps 1 to 8 step 5 is for the installation of Netgen with and without GUI 1 2 3 4 Choose installation path netgen_install_path For examp
17. window with command preview filename or path to file lt return gt open opens Preview as default viewer filename or path to file passed via 1 open 1 b Enter the following commands in Terminal window without comments and full path dir_your_choice as chosen above cd dir_your_choice lt return gt Change directory to dir_your_choice chmod 777 preview lt return gt Make file preview executable Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks 22 CalculiX cgx Installation Guide Mac OS X e cp preview usr local bin lt return gt Copy preview in usr local bin which is one of the default search paths of the OS for executables Note An alternative installation of the script is explained under point b in Section 7 6 below cf the Note at the end of point b in Section 7 6 for details e The filename of the shell script from point a above now is the name of the postscript viewer and is required in Section 8 1 below to complete the installation of cgx e Consider that a postscript file test ps is located on your desktop For the test of the in stallation then use Terminal commands cd Desktop lt return gt preview test ps lt return gt If the installation was successful after the execution of the last command the file test ps will be displayed with Preview
18. 2 H002 L005 L007 L006 L008 GSUR A003 H003 L001 L009 L005 LOOA 0 00000 0 00000 0 00000 0 00000 1 00000 1 00000 1 00000 1 00000 0 00000 0 00000 0 00000 1 00000 1 00000 1 00000 1 00000 1 00000 0 00000 1 00000 1 00000 0 00000 1 00000 1 00000 0 00000 1 00000 1 00000 0 00000 Prepared Installation Guide B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks Al 2 Appendix 1 February 10 2015 CalculiX cgx Installation Guide Mac OS X GSUR A004 H004 L002 LOOB L006 LOOC GSUR A005 H005 L003 L009 L007 LOOB GSUR A006 H006 L004 LOOA L008 LOOC GBOD B001 NORM A001 A002 A004 A006 A003 A005 SETA sel 1 L001 SETA se2 p D001 SETA se2 p D002 SETA se2 L002 SETA se3 s A001 SETA se4 p D003 SETA se4 p D004 SETA se4 p D005 SETA se4 p D006 SETA se4 1 L005 SETA se4 1 L006 SETA se4 1 L007 SETA se4 1 L008 SETA se4 s A002 plot la all k plus sa se2 g plus sa all m plus ba all g Prepared Installation Guide B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks Al 3 Appendix 1 February 10 2015 CalculiX cgx INSTALLATION GUIDE CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks Appendix 2 Installation of Netgen With GUI OB Graf Prepared by B Graf based on the installation instructions from M Woopen AICES RWTH Aachen Ger many for Mac OS
19. CalculiX cgx INSTALLATION GUIDE CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks B Graf Abstract CalculiX comprises the graphical pre and postprocessor cgx Calculix Graphix and the solver ccx CalculiX CrunchiX A step by step installation guide for cgx 2 8 on Mac OS X 10 9 5 Mavericks is provided Installation from source is considered The present guide is based on the general installation instructions for Unix Linux which come with the cgx package Besides the installation of cgx the in struction also covers the installation of required Mac specific and optional additional software whereas the latter is required for additional functionality of cgx Except of html help files and the installation path the installation of cgx is independent from the installation of ccx Among others the installation has been tested for the func tionality of the additional software Acknowledgement Special thanks to K Wittig developer of cgx MTU Aero Engines Munich Germany and M Woopen installation of Netgen with GUI AICES RWTH Aachen Germany for their support Prepared by B Graf based on the general installation instructions for Unix Linux by K Wittig developer of cgx MTU Aeoro Engines Munich Germany Dr B Graf Consulting Engineer Zurich graf_bernhard bluewin ch February 10 2015 CalculiX cgx Installation Guide Mac OS X RELEASE NOTES Revision Remarks Dra
20. Installation Guide Mac OS X e gunzip gcc 4 9 bin tar gz lt return gt 4 For installation of GCC 4 9 use terminal commands sudo tar xvf gcc 4 9 bin tar C lt return gt Installs GCC 4 9 under default directory usr local bin After step 4 amongst others the compilers gcc and g are installed in usr local bin The test of the installation will be explained exemplarily for g If the installation was successful the Terminal command which usr local bin g lt return gt will display the path to the unmodified GNU g compiler as follows screen output usr local bin g Furthermore after execution of the Terminal command usr local bin g v lt return gt option v for version the screen output for the version of g should look as follows Using built in specs COLLECT_GCC usr local bin g COLLECT_LTO_WRAPPER usr local libexec gcc x86_64 apple darwin14 0 0 4 9 2 lto wrapper Target x86_64 apple darwin14 0 0 Configured with gcc 4 9 20141029 configure enable languages c fortran Thread model posix gcc version 4 9 2 20141029 prerelease GCC As already explained in Section 3 1 above the unmodified g 4 9 2 will be applied for the compilation of cgx in Section 8 1 below The path for g usr local bin gcc will be set accordingly in the Makefile of cgx cf Section 8 1 for details 5 3 XQuartz 2 7 5 Download X Quartz from site http www macupdate com app mac 26593 xquartz and the
21. NSTALL lt return gt You may set the installation path depending on your needs For the subsequent installation of TCL the full path to the installation directory must be specified as given above Replace therefore tcl_install_path in the instructions with Users LOGNAME TCL_INSTALL The libraries which are required for the GUI of Netgen are installed for the path tcl_install_path lib Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks A2 3 CalculiX cgx Installation Guide Mac OS X e Appendix 2 e Install Tcl8 5 9 from source Download source from site http sourceforge jp projects sfnet_tcl downloads Tcl 8 5 9 tcl8 5 9 sre tar gz The package tcl8 5 9 sre tar gz will be downloaded on your Desktop Next drag package from Desktop to your installation directory tcl_install_path then unzip pack age double click on package The file system now looks as follows tcl_install_path tcl8 5 9 i e the source code now is contained in folder tcl8 5 9 Complete installation with Terminal commands don t type in comments cd tcl_install_path Tcl8 5 9 unix lt return gt Goto directory tcl8 5 9 unix configure prefix tcl_install_path lt return gt Configure i e create Makefile followed by command sequence make lt return gt make install lt return gt to build and i
22. Open file cgx h with an editor of your choice Set name of browser according to Section 7 6 Skip this step if the name of your chosen browser is firefox default browser name Otherwise replace pre set browser name firefox with name of your browser your_browser_name with out quotes in the following two existing lines in cgx h define BROWSER firefox Set paths to html help files in accordance with installation of help files in Section 7 6 cf also Fig 1 for the file system Skip this step if the html help files are in stalled under the default path according to option A from Section 4 2 Option A calculix_install_path usr local Otherwise i e for option B from Section 4 2 set the chosen calculix_install_path in cgx h as follows replace the five existing entries usr local with the full path of the chosen calculix_install_path For example replace usr local with calculix_install_path Users LOGNAME Applications according to option B from Section 4 2 Set name preview of psviewer postscript viewer as previously chosen in Section 7 5 Replace gv with chosen name preview in the following two existing lines of cgx h define PSVIEWER gv Save file cgx h and quit editor 3 Modifications in file setFunctions c The file setFunctions c of the cgx source is located in directory src calculix_install_path
23. Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks 37 CalculiX cgx Installation Guide Mac OS X nally the generated file graph ps will be automatically displayed with the default post script viewer preview default for present Mac installation The functionality of cgx for the CLTs gnuplot and preview will be tested below for the MI Graph Prearrangements for test Test example from Section 9 2 file result frd prepared Your current working directory therefore is examples path given in footnote 8 below Steps for test move mouse pointer in main window of cgx then press left mouse button keep button pressed then select menu items Graph Length for path plot then release mouse button Next for the selection of nodes path defined by selected nodes follow the instructions in your command window Select nodes therefore with left mouse button and quit selection with right button Next the aforementioned files are generated in the current working directory examples and a Preview window with the path plot automatically pops up In Preview you may convert the format of the generated plotfile in various other formats use Preview menu items Save or Export to convert With the help of the raw data of the plot which are provided in file graph out in current working directory you may also tailor graphs and also may use a plot program of your choice instead of
24. X Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks Appendix 1 Code for File test_tets fbd B Graf Prepared by Dr B Graf Consulting Engineer 8044 Ziirich graf_bernhard bluewin ch February 10 2015 CalculiX cgx Installation Guide Mac OS X PNT pl 0 00000 0 00000 PNT p2 1 00000 0 00000 PNT DOO 0 00000 1 00000 PNT D002 1 00000 1 00000 PNT D003 0 00000 0 00000 PNT D004 1 00000 0 00000 PNT D005 0 00000 1 00000 PNT D006 1 00000 1 00000 PNT D007 1 00000 1 00000 PNT DO08 0 00000 1 00000 PNT D009 0 00000 0 00000 PNTDOOQ 1 00000 1 00000 PNT DOOR 0 00000 1 00000 PNT DOOS 0 00000 0 00000 PNT D019 1 00000 0 00000 PNTDOIA 0 00000 0 00000 PNT D0IB 0 00000 0 00000 PNT DOIS 1 00000 1 00000 PNTDOIT 0 00000 1 00000 PNTDOIU 0 00000 1 00000 PNT D02B 0 00000 1 00000 PNT D02C 0 00000 0 00000 PNTD02D 0 00000 0 00000 PNT D02U 1 00000 1 00000 PNT D02V 1 00000 0 00000 PNT DO2W 1 00000 0 00000 LINE L001 p1 p2 104 LINE L002 D001 D002 104 LINE L003 p1 D001 104 LINE L004 p2 D002 104 LINE L005 D003 D004 104 LINE L006 D005 D006 104 LINE L007 D003 D005 104 LINE L008 D004 D006 104 LINE L009 p1 D003 104 LINE LOOA p2 D004 104 LINE LOOB D001 D005 104 LINE LOOC D002 D006 104 SHPE H001 PLN D007 D008 D009 SHPE H002 PLN D00Q DOOR DOOS SHPE H003 PLN D019 D01A DO1B SHPE H004 PLN D01S DOIT DO1U SHPE H005 PLN D02B D02C D02D SHPE H006 PLN D02U D02V D02W GSUR A001 H001 L001 L003 L002 L004 GSUR A00
25. _path Togl 1 7 i e the source code now is contained in folder Togl 1 7 Next open file configure path tcl_install_path Togl 1 7 configure and replace XLIBSW 1X11 in line 7020 of file configure with XLIBSW L usr X1 1 lib IX11 Complete installation with Terminal commands don t type in comments cd tcl_install_path Togl 1 7 lt return gt Goto directory Togl 1 7 Configure i e create Makefile configure prefix tcl_install_path with tcl tcl_install_path lib with tk tcl_install_path lib cppflags I usr X 1 1 include lt return gt make lt return gt Build Tog make install lt return gt Install Tog Next create soft link in directory tcl_install_path lib Togl1 7 Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks A2 5 CalculiX cgx Installation Guide Mac OS X e Appendix 2 tcl_install_path lib Togl1 7 lt return gt Goto directory Togl1 7 In s libTogl1 7 dylib libTogl dylib lt return gt Create link Note on link For build of Netgen the library libTogl dylib is required the library libTogl1 7 dylib for execution of Netgen Before re compilation use command make distclean lt return gt then re configure For more details consider README provided for Tog INSTALL NETGEN WITH GUI e Installation path and installation of Netgen
26. aeeveeevasqed eves ssecteeceaatensenseseos 32 8 3 Getting Started With CEK s cscccsavisesetiecteseesiecreucrentccevaa ueceuseusceveevsucveceveadeesueesueeesectnetnescebereses 33 84 Test EXAMples 2 feie2 sctscesecesaedetiegss deceage E Had hiecs agave de chasdes agadedeass aadetegies 33 TEST FUNCTIONALITY OF ADDITIONAL SOFTWARE eee eeeeeeeeteeees 34 9 1 G nerale EE E E AO AEA A E E EE OA EET 34 9 2 Prepare Test Example and Hints sc2 22ci ssceccdedsceqea oranan a a 34 9 3 TESIS r a seasz pases a staguntensepabeedenteps saver ceeds ar a RE 35 9 3 1 General Test of cgx Menu Items MI and Commands C uu eee eree 35 9 3 2 Test MI Hardcopy and C hcpy Provided by ImageMagick ee 35 9 3 3 Test C hcpy make ls Provided by PSUtils gs GhostScript and Preview 36 934 Test MI Graph and C graph Provided by gnuplot and Preview 00 36 9 3 5 Test MI Help Display cgx and ccx Help Files Provided by html Browser 37 9 3 6 Test C mesh Tet Meshing Provided by Netgen Binary ng_vol neeese 37 Jai Ba DS EEE ten Deiat ens the ttac E ti getter teed eae T 48 10 1 CHEETA EAE Se cuca saned E dh gacenes sauce EA EE T S 48 10 2 Mouse Without Middle Button and Trackpad 000 eee cece ceseeeeceeeeseeseeeeeesaeeseeeaeesaeeaeens 48 10 3 Mouse Pointi 2 28 asec ie eee ation ak anead alates eta E E ats 48 104 Keyboarder pinto N nin E A ais 48 KNOWN MAC SPECIFIC PROBLEMS sseseseseesesssesses
27. akefile Modifications Open file Makefile with an editor of your choice Replace lib64 with lib without quotes in the following two existing lines L usr lib64 IGL IGLU L usr X11R6 lib64 1X11 IXi IXmu lXext IXt ISM IICE Note Link to directory lib64 required for 64 bit systems running under Linux only Delete lrt in the following existing line lm lpthread lrt Note Linker flag Irt for run time library rt required for compilation under Linux only According to Section 2 2 3 cgx will be compiled with the unmodified compiler g 4 9 2 Replace therefore g with usr local bin g without quotes in the existing last line of Makefile g OULIB OLIB OUTIL CFLAGS LFLAGS o Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks 30 CalculiX cgx Installation Guide Mac OS X e With usr local bin g the unmodified g compiler will be invoked cf also Section 5 2 for the installation of the aforementioned compiler and the installation path usr local bin for the compiler g 4 9 2 Save file Makefile and quit editor 2 Modifications in file cgx h The header file cgx h of the cgx source is located in directory src calculix_install_path calculix cgx_2 8 sre cgx h Modifications
28. al for most interactive q commands K Type qadd se1 E Next set rectangle for selection of items according to the instructions in 3 or 2 Section 8 58 After the rectangle has been set you may type in options for command qadd For example in the following command K Type a 6666 option a is set for mode all Accordingly after this option has been set mode a will be dis played in your Terminal window cf also details for command qadd in 2 Section 8 58 After mode a is displayed in your command window continue with the instructions in 3 Step 4 Mesh Cube With Tets for Test of Tet Meshing with Netgen Binary ng_vol e General The present subsection Step 4 is organized in further subsections Step 4 1 to Step 4 3 as follows Step 4 1 Use cgx Command mesh set_name_b for tet meshing Step 4 2 Use cgx Command mesh set_name_trias size for tet meshing Step 4 3 Use cgx Command qdiv for control of element size via subdivision of lines If you are for the moment interested only in a quick test of the basic functionality of tet meshing with Netgen then continue now with Step 4 1 below For the aforementioned Step 4 1 direct meshing of a volume with tets is considered whereas for Step 4 2 first the surface of the volume is meshed with trias and subse quently the volume with tets for a given element size based on the mesh seed which is
29. and print se to display the contents of set all Step 4 3 Use cgx Command qdiv for control of element size via subdivision of lines The size of trias and tets may be controlled by the number of subdivisions of lines which form the element edges The default number of subdivisions is four and may be changed as explained below Steps for changing number of subdivisions of lines If necessary first launch cgx and load test example cube with Terminal command cgx_2 8 b test_tets fbd lt return gt Next use cgx command without comment to display lines with current setting of sub divisions plot Id all lt return gt Displays current setting of subdivisions of lines which are contained in set all If you want to change the number of subdivisions use cgx command qdiv cf also 2 Section 8 66 for details and also tutorial 3 for examples In the following example the number of subdivisions will be set for lines which are displayed with the previously discussed command plot Id all lt return gt Use cgx commands without comments consider instructions qdiv lt return gt Invoke command qdiv Instruction Move mouse pointer on one of the lines to change the number of subdivi sions of this line 8 Type for example number 8 for number of subdivisions Typed in number will be immediately displayed for selected line Consider also the printout in the command window Pre
30. ause of the aforementioned compiler problem in addition the unmodified GCC 4 9 was installed and applied for the compilation of cgx Amongst others the unmodified GCC 4 9 includes versions 4 9 of the individual compilers gcc g The unmodified GCC 4 9 will be installed together with other Mac specific software in Section 5 below and is applied in Section 8 1 for the compilation of cgx The present installation of Mac specific software therefore ends up with the installation of two versions of the GCC The modified GCC 5 1 is installed under the default path usr bin and therefore is the default GCC compiler on your Mac The unmodified GCC 4 9 is installed under the default path usr local bin and therefore is considered as the non default GCC For compilation of cgx with g 4 9 therefore the full path usr local bin g to the executable of g has to be specified cf the installation of cgx in Section 8 1 below Furthermore unless otherwise noted the default GCC 5 1 will be considered for compilation The compilers GCC 5 1 and GCC 4 9 will be installed and tested in Section 5 below The unmodified GCC 4 9 respectively g 4 9 2 will be applied in Section 8 1 below for the compilation of cgx Unless otherwise noted the default GCC 5 1 is considered for compi lation 3 2 Terminal Terminal Commands HOME LOGNAME Login and Permissions General The following notes are provided for Mac users who usually don t work in Unix en
31. brary analogous as explained above for libgd 2 dylib The functionality of cgx which is provided by the now installed binary gnuplot will be tested in Section 9 3 4 below cf also Tab 1 for the functionality of gnuplot in Cgx Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks 29 CalculiX cgx Installation Guide Mac OS X e 8 INSTALL AND LAUNCH CGX TEST INSTALLATION GETTING STARTED AND TEST EXAMPLES 8 1 Install cgx The source files of cgx already have been installed in the previous Section 4 for the install lation path calculix_install_path cf Section 4 2 for details In the present section the installation will be completed The latter first requires some mi nor modifications of files and finally to build and install cgx Furthermore for the installa tion of cgx the parameters flags paths etc of all of the optional additional software from Section 2 5 will be set However none of the additional software actually needs to be in stalled for the compilation of cgx Accordingly depending on your needs you may install the additional software later none all or partial without re compilation of cgx cf also Section 7 1 for details Installation steps 1 to 5 1 Modifications in file Makefile The Makefile of cgx is located in directory sre calculix_install_path calculix cgx_2 8 src M
32. ce xterm is provided For the present in stallation however the Terminal window will be used instead of xterm The installation of XQuartz is subject of Section 5 3 because XQuartz is not part of OS X 2 3 cgx 2 8 CalculiX Graphix Version 2 8 The installation instructions for cgx are contained in Section 4 and Section 8 below First of all the source code is installed in Section 4 followed by the build of cgx in Section 8 The source code of cgx is installed in Section 4 prior to the build of cgx in Section 8 be cause for the installation of the optional additional Netgen software cf Tab 1 a file from the cgx package is required As already explained in Section 1 1 above optional additional functionality of cgx may be obtained by the installation of the additional software from Section 2 5 The installation of the additional software is subject of Section 7 For the build of cgx in Section 8 all of the additional software is considered with regard to path settings flags etc However none of the additional software needs to be actually installed for the build of cgx Accordingly the additional software may be installed all or partial before or after the build of cgx 2 4 MacPorts 2 3 3 MacPorts is required for the installation of some of the additional software The installation is subject of Section 6 because MacPorts is not part of OS X Notes MacPorts is a tool for compiling installation and upgrade of open source soft
33. ces to the installation of the additional software given in column 2 of Tab 1 e Tab 2 Additional software sorted by cgx menu items MI and cgx commands C The functionality is explained in column 2 of Tab 2 Cross references to the test of the additional software are given in column 2 of Tab 2 The aforementioned data from Tab 1 and Tab 2 therefore may help for the planning of the installation of additional software Accordingly for example 3D tet meshing with tar get element size requires the installation of the additional software Netgen cf column 1 of Tab 1 for details The functionality of the additional software is tested in Section 9 below cf also column 2 of Tab 2 for cross references to Section 9 Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks CalculiX cgx Installation Guide Mac OS X Name and Release Mac App of additional software General Function Usage and Installation with similar functionality e General Suite for image manipulations e Function Provides convert command line tool ImageMagick 3 i 68 8 6 e Usage cgx uses convert for hardcopy of drawing area of Grab co cgx main window e Installation Section 7 2 e General Collection of utilities for image manipulations e Function Provides pstops command line tool PSUtils p17 e Usage cgx uses pstops to bun
34. cgx on Mac OS X has been first accomplished neither an installation of Ghostview nor of gv seemed to work on OS X The situation was as follows Build of Ghostview or gv from source seems to be a task of the very specialist because of the many dependencies of the afore mentioned packages Build from source therefore has been dis carded Adequate binaries for gv and Ghostview were not available For Ghostview no installer was available For gv a MacPort exists However the installation with Terminal command sudo port install gv lt return gt failed To avoid the installation problems with Ghostview and gv therefore the Mac Preview App has been chosen as postscript viewer e Next a shell script will be provided and installed in usr local bin which enables cgx to use Preview as postscript viewer The filename of the aforementioned script is also the name of the viewer Accordingly the name of the viewer will be set for the installation of cgx in Section 8 1 below Installation steps a b a Create the shell script respectively a file with filename preview or any other file name you like in a directory of your choice dir_your_choice for example your HOME Users LOGNAME by using an editor of your choice Insert the following lines in file preview then safe and quit the file bin bash Shell script allows launch of Preview from Terminal
35. ction 2 contains an overview of the required software and Section 3 a summary of pre arrangements which are required for the installation of cgx The installation instructions are contained in Sections 4 to 8 The installation should follow the sequence as given by Sections 4 to 8 with the following exceptions a b for the installation of additional software according to Section 7 a all or part of the additional software may be installed before or after the installation of cgx according to Section 8 b sequence of installation of addi tional software may be chosen freely First of all in Section 4 the installation path and the file system are explained as well as the installation of the source code and html help files of cgx In the subsequent two Sections 5 and 6 the Mac specific software is installed Xcode XQuartz GCC MacPorts which is required for the installation of cgx and the aforementioned additional software The additional software is installed in Section 7 Fi nally the installation of cgx is completed in Section 8 Furthermore Section 8 covers the Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks CalculiX cgx Installation Guide Mac OS X following subjects launch of cgx and test of installation how to get started with cgx test examples In Section 9 the functionality of the aforementioned additional software is test ed Section 10 contains hi
36. d cgx commands C Name of additional software required for MI C MI Hardcopy Cc hepy e Functionality Generate hardcopy formats amongst others tag ps gif png Test example Section 9 3 2 ImageMagick C hepy make ls e Functionality Bundles ps plotfiles into at least one file All ps plotfiles of some folder are bundled e Test example Section 9 3 3 Note PSUtils applied to bundle files GhostScript for file manipulations and Preview for display of ps plotfiles PSUtils GhostScript Preview MI Graph C graph e Functionality For x y plots path plots history plots etc 1 cgx generates ASCII file with x y plot data and gnuplot command file script 2 gnuplot applied to generate ps plot file 3 Preview applied to display ps plotfile e Test example Section 9 3 4 Note Functionality according to points 1 2 above provided by gnuplot Gnuplot Preview MI Help e Functionality Amongst others displays cgx and ccx html help files Test example Section 9 3 5 html_browser C mesh all e Functionality Generate tet mesh example of command se quence for tet meshing according 1st column In particular the installed routine ng_vol allows for tet meshing with a target element size e Test example Section 9 3 6 Note Routine ng_vol of Netgen applied for tet meshing Netgen For details co
37. dle several ps PostScript 7 files in one file e Installation Section 7 3 e General Collection of utilities for image manipulations e Function Provide gs command line tool gs 9 10 Pale e Usage cgx uses gs for file manipulations in context with us Ghostscript age of PSUtils e Installation Section 7 4 General Post script viewer For several reasons the Mac Pre view App has been installed instead of gv cf Section 7 5 for the installation of gv for details gv 3 7 4 e Function Provides preview command line tool implement F GhostView ed with shell script according to Section 7 5 Preview e Usage Present cgx installation uses Preview to display ps plotfiles which are generated during pre or post processing Installation Section 7 5 e General html Browser of your choice used to display cgx and ccx html help files Firefox 35 0 e Function Provides browser_name Firefox for name cho sen command line tool implemented with shell script ac html browser of your cording to Section 7 6 z choice Firefox chosen le Usage cgx uses browser_name to display cgx and ccx html help files e Installation Section 7 6 e General Automatic 3D tetrahedral mesh generator e Function Provides routine ng_vol for tet meshing e Usage cgx uses ng_vol to allow for tet meshing with a tar Netgen 5 1 get element size 7 e Installation Section 7
38. e available but for several reasons will be not used here Note If you open a Terminal window the OS exports the path settings found in bash_profile and then uses these paths to search for executables Furthermore amongst others the path usr bin is a default path which the OS uses to search for executables Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks 11 CalculiX cgx Installation Guide Mac OS X e open e bash_profile lt return gt Opens bash_profile in TextEdit Set paths in file bash_profile and export paths Now we are ready for editing of the bash_profile respectively to enter a new path setting in bash_profile Next an example is given how paths may be set in bash_profile For path setting you may add the following lines in your bash_profile bin bash export PATH PATH export PATH PATH Users LOGNAME NETGEN_INSTALL bin In the above lines export is a Unix command PATH an environment variable PATH the value of that variable colon is used as separator between paths The first line up dates the PATH variable the second line sets the added path Users LOGNAME NETGEN_INSTALL bin to some executable which is contained in directory bin Add as any many paths as you need Finally save file bash_profile and quit TextEdit The required path settings for the considered software are specified in the
39. elopment on OS X For the installation of cgx however only the so called Command Line Tools CLTs of Xcode are required installation of Xcode requires 5 GB the installation of CLT only ca 300 MB Among others the CLTs include the already aforementioned version 5 1 of the modified GCC The CLTs provide commands like make whereas the latter is required to build executables from source Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks CalculiX cgx Installation Guide Mac OS X e Alternatively to Xcode only the CLTs may be installed The installation of the CLTs however is not subject of the present installation instructions Link for download of the CLT http osxdaily com 2014 02 12 install command line tools mac os x 2 2 3 GCC 4 9 Unmodified GNU Compiler Collection for OS X Mavericks The unmodified GCC 4 9 is required for the compilation of cgx and is not identical with the modified GCC 5 1 from Section 2 2 2 above which is installed together with Xcode cf also explanation of Xcode in Section 2 2 2 above and Section 3 1 below for further de tails The installation of GCC 4 9 is subject of Section 5 2 2 2 4 XQuartz 2 7 5 XQuartz is the implementation of the X Window System X11 on Mac XQuartz therefore provides the X11 graphics environment which is required to run the GUI of cgx on Mac From XQuartz also the command line interfa
40. ep 1 only The geometry of the cube will be generated manually analogous as explained in tutorial 3 for a beam Furthermore in cgx geometry data created e g with cgx are stored in fbd files lt filename gt fbd Chosen filename for the present example test_tets fbd Prearrangements for test a open a Terminal window b create working directory for the test e g directory mesh_cube in your home directory create directory with Terminal command mkdir mesh_cube lt return gt or with Finder c change directory to the working directory mesh_cube with Terminal command cd mesh_cube lt return gt Next launch cgx with Terminal command cgx_2 8 b test_tets fbd lt return gt After the execution of the last command the cgx main window pops up and the following message is displayed in your Terminal window ERROR The input file test_tets fbd could not be opened Ignore the error message after cgx commands save or exit the generated geometry will be stored in file test_tets fbd Next for the generation of the geometry of the cube follow the step by step instructions in tutorial 3 as explained below Consider the note on the top of page 40 for the usage of command qadd in tutorial 3 Position the mouse pointer within the drawing area of the cgx graphics window to enter cgx commands Steps to generate geometry of cube consider note on usage of qadd on page 40 below fir
41. es which are required from cgx The html help files are now contained in directory ccx under directory ccx_2 8 doc cf also Fig 1 for the file system calculix_inst_path CalculiX ccx_2 8 doc cgx If option B from Section 4 2 was chosen for the installation path the above specified path is required in Section 8 1 to complete the installation of cgx The download packages are no longer required and therefore may be deleted Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks 16 CalculiX cgx Installation Guide Mac OS X e 5 INSTALL MAC SPECIFIC SOFTWARE 5 1 Xcode 5 1 1 and Modified GCC 5 1 Xcode may be downloaded for free from Categories in the App Store Follow installer instructions The Xcode App will be installed in your Applications folder As already mentioned before in Section 2 2 2 the modified GCC 5 1 GNU compiler col lection comes together with Xcode and is installed under the default path usr bin The modified GCC 5 1 includes the individual compilers gcc GNU c compiler g Clang The installation of GCC 5 1 now will be tested exemplarily for g If the installation was successful after the execution of the Terminal command which g lt return gt the path to the default g compiler is displayed as follows ust bin g After execution of the Terminal command g v lt return gt opt
42. files Follow steps 1 to 4 of the installation instructions in Section 7 7 Installation path therefore cf step 1 in Section 7 7 netgen_install_path Install Netgen with GUI according to step 5 2 in Section 7 7 Use Terminal commands don t type in comments cd netgen_install_path Netgen 5 1 lt return gt Goto directory Netgen 5 1 Configure i e create Makefile configure prefix netgen_install_path with tcl netgen_install_path lib with tk netgen_install_path lib with togl netgen_install_path lib Tog 1 7 CPPFLAGS I usr X1 1 include LDFLAGS L usr X1 1 lib IGLU lt return gt make lt return gt Build Netgen sudo make install lt return gt Install Netgen Before re compilation use command make distclean lt return gt then re configure For more details consider README provided for Netgen m ce The Netgen binaries executable netgen ng_vol etc are installed under path netgen_install_path bin e Set environment variables Set variables in your bash_profile as follows cd lt return gt Goto directory of bash_profile located in your home directory open e bash_profile lt return gt Opens bash_profile in TextEdit Next insert the following three lines starting with export at the end of your bash_profile without comments export PATH PATH netgen_install_path bin Sets path to execu
43. for the functional ity of pstops in cgx PSUtils is installed with MacPorts e First run self update of MacPorts with Terminal commands sudo port selfupdate lt return gt Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks 20 CalculiX cgx Installation Guide Mac OS X e sudo port upgrade outdated lt return gt e Next install PSUtils with command sudo port install psutils lt return gt e During installation your bash_profile will be modified automatically For activation of the modifications either close current Terminal window and then start a new one or fol low the instructions in Section 3 3 above e For the test of the installation use Terminal command pstops lt return gt The installation works if the first line of the screen output looks as follows pstops release 1 patchlevel 17 e The functionality of cgx which is provided by the now installed pstops command line tool will be tested in Section 9 3 3 below 74 gs 9 10 e From gs 9 10 GhostScript the command line tool gs is provided cf Tab 1 for the functionality of gs in cgx e Download package installer for gs 9 10 from site http pages uoregon edu koch e Choose Open with installer default e After the download is completed the installer window opens automatically Follow the installer instructions e GhostScript is instal
44. ft June 6 2014 Installation of cgx 2 7 on Mac OS X 10 9 3 Mavericks Installation of cgx 2 8 on Mac OS X 10 9 5 Mavericks Changes Compilation of cgx with unmodified GCC 4 9 instead of modified GCC 5 1 to avoid problem of GCC 5 1 with function overloading The latter solved former February 10 2015 problem segfault for post processing of tensorial quantities with cgx 2 7 In stallation instructions of GCC 4 9 added Optional installation of Netgen with GUI added in Appendix 2 Editorial changes Prepared B Graf Installation Guide February 10 2015 CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks ii CalculiX cgx Installation Guide Mac OS X CONTENTS RELEASE NOTES ronnie iiai sia lela a a EES EE ESTEA KE RS i 1 INTROD UOT O N ps ssa Raa PE a RENE A iets a ad E 1 1 1 General eek E eect wi asia E eee een ates Meena eee 1 1 2 Planning Your Installation and Functionality of Optional Additional Software 0 0 0 0 2 2 SOFTWARE REQUIREMENTS enaa aa a ead ea TA Ea a RES 5 2 1 SOftWare a Et E uch sett E T ESS 5 2 2 MacOS X Specific akc sentence ei R R A E AAR TETE A AT E aes 5 2 2 1 OSX Mavericks 10 9 5 225 oo aAa titan ean ayia io aeeniteen A eae 5 2 2 2 Xcode 5 1 1 Provides Command Line Tools Terminal and Associated Modified GCC 5 1 GNU Compiler Collection ees eseceseeecneneeneenees 5 2 2 3 GCC 4 9 Unmodified GNU Compiler Collection for OS X Mavericks
45. gnuplot 9 3 5 Test MI Help Display cgx and ccx Help Files Provided by html Browser The cgx MI Help amongst others allows to display html help files of cgx and ccx cf Section 4 4 and Section 4 5 above for the installation of the cgx and ccx help files with a html browser of your choice and makes use of the command line tool browser_name For the present installation browser_name firefox was chosen cf Section 7 6 above for details Prearrangements for the test Test example from Section 9 2 file result frd prepared your current working directory therefore is examples path given in footnote 8 below Steps for test of html browser move mouse pointer in main window of cgx press left mouse button keep button pressed then select menu item Help Html Manual cgx then release button The browser window with the help menu of cgx now will pop up The ccx help file may be displayed analogous as previously explained for the cgx help file 9 3 6 Test C mesh Tet Meshing Provided by Netgen Binary ng_vol General Tet meshing with cgx command mesh will be tested for the example of a cube Consider the hints in Section 9 2 above in particular for typing in cgx commands In the following subsections Step 1 to Step 4 below steps 1 4 are considered for the test of tet meshing for a cube path cgx_install_path CalculiX cgx_2 8 examp
46. gt Change to working directory examples cgx_2 8 result frd lt return gt Launch cgx 2 8 and load result file result frd 3 After the execution of the last command the Calculix Graphix window of cgx will pop up The aforementioned main window is subdivided into the framed drawing area and the so called menu area which is located outside of the drawing area in the left margin of the window 4 Next generate a fringe plot with post data from the loaded result file result frd cf also Section 4 in 2 for more details Steps Position mouse pointer in menu area of cgx window press left mouse button to open Menu keep button pressed and select menu item Datasets Disp then release button Press left button again and select menu item Datasets Entity D1 then release button Now a fringe plot of the displacement components D1 is displayed in the drawing area To display element edges press left button again in menu area and select menu items Viewing Toggle Element Edges then release button Now the element edges are displayed Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks 35 CalculiX cgx Installation Guide Mac OS X 5 Hints For entering of cgx commands in the command window the mouse pointer must be strictly located within the cgx main window i e within the gra
47. he GCC GNU compiler collection for OS X and MacPorts The subsequent in stallation of cgx may be partitioned into the following two steps 1 standalone installation of cgx 2 optional installation of additional software which provides additional function ality of cgx The sequence of the installation steps 1 2 may be chosen freely A standalone installation of cgx according to point 1 above without installation of additional software already provides a powerful pre and post processing tool Furthermore all of the addi tional software or parts of it may be installed If the additional software all or partial is not installed some of the additional functionality of cgx gets lost The aforementioned ad ditional functionality is further discussed below Section 1 2 contains an overview of the functionality of the aforementioned additional soft ware and may help for the planning of the installation cf also Tab 2 for an overview of the additional functionality For the build of cgx all of the additional software is consid ered with regard to required flags parameters path settings etc However none of the ad ditional software actually needs to be installed for the build of cgx Accordingly you may install the additional software all or partial depending on your needs before or after the installation of cgx The latter therefore requires no re compilation if cgx has been build before exactly as explained in the present guide Se
48. he download packages are no longer required and therefore may be deleted 4 5 Install ccx html Help Files In cgx a help menu for ccx is provided For the aforementioned menu the html help files of ccx are required Steps a b for installation of the ccx html help files Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks 15 CalculiX cgx Installation Guide Mac OS X e a b Download htlm help files the documentation html of ccx from Calculix website http www dhondt de The help file package ccx_2 8 htm tar bz2 will be downloaded to your Desktop directory Desktop If the ending bz2 is missing please rename the filename to ccx_2 8 htm tar bz2 The package ccx_2 8 htm tar bz2 next will be moved from the Desktop to the cal culix_inst_path and then will be unpacked and installed Type and execute the fol lowing Terminal commands without comments calculix_inst_path chosen accord ing to Section 4 2 above cd calculix_inst_path lt return gt Change to Calculix installation directory Now move mv ccx_2 8 htm tar bz2 from Desktop to calculix_inst_path mv Desktop ccx_2 8 htm tar bz2 calculix_inst_path lt return gt bunzip2 ccx_2 8 htm tar bz2 lt return gt Unpack package tar xvf ccx_2 8 htm tar lt return gt Install package The last command installs the ccx html help fil
49. he same installation path Choose option A or option B for the installation path calculix_inst_path Option A default installation path calculix_inst_path usr local Option B example for user defined path calculix_inst_path Applications Users LOGNAME Applications Option A is in compliance with the Unix file system hierarchy standard For option B the path may be chosen freely For option B an example is given above for which cgx will be installed in directory Applications under your home directory cf Section 3 2 for the home directory Furthermore the path according to option A is default for the installation of Calculix and therefore in the source code of ccx and cgx all paths are already set in accordance with option A If option B is used instead some paths must be set manually for the installation of cgx cf Section 8 1 below for details Prior to the installation the directories of the path calculix_inst_path must exist Create them now if necessary Use the Finder to create directories or the sequence of Unix com mands cd path_to_Directory lt return gt change to directory path_to_Directory un der which a subdirectory has to be created then type mkdir dir_name lt return gt to create the subdirectory dir_name Furthermore use ls 1 lt return gt to list contents of some directory use sudo before commands e g sudo mkdir if the permiss
50. hing Surface and volume mesh ing is demonstrated under Step 4 2 below for the test of tet meshing with the afore discussed command The element size of the trias may be controlled via subdivision of lines cf example under Step 4 3 below and the element size of tets via the al ready aforementioned optional parameter size cf example under Step 4 2 below for the usage of parameter size Step 4 1 Use cgx Command mesh set_name_b for tet meshing Task test tet meshing for previously build geometrical model of cube As already previously ex plained amongst others set all contains the geometrical entity body of the cube which is required for the subsequent direct volume respectively tet meshing of the cube Summary of meshing procedure sequential Body to be meshed already contained in set set_name_b all Set element type te4 or te10 then use cgx command mesh set_name_b for tet meshing Control of element size Subsequently controlled by the default number of four subdivi sions of lines cf example under point 4 3 below how the number of subdivisions may be changed For the default number of four subdivisions four linear or two quadratic elements are created along some line respectively some edge of the cube Steps for tet meshing If necessary first launch cgx and load test example cube with Terminal command cgx_2 8 b test_tets fbd lt return gt then type in the following cgx P
51. ii if the unit normal vectors of the surfaces point from the volume outwards Terms and explanations Unit normal vector of surface Defined uniquely by vector product and calculated ac cordingly in cgx Front and back side of surfaces Some surface and associated normal vector may be given Furthermore imagine that a light source is mounted on the tip of the vector The front side then per definition is this side of the surface which reflects light the other one is the back side In cgx the reflecting front side of a geometrical surface is filled in magenta default the non reflecting back side in black default For a sur face element the front side is filled in light green default the back side in black default Instead of the unit normal vector therefore the differently colored front and back side may be used to check if the orientation of some geometrical surface or surface element is regular Control of regular orientation and flip orientation If for some volume the reflecting front sides of free surfaces are displayed the orientation of these surfaces is regular cf example below However if non reflecting back sides are displayed the orienta tion must be flipped to become regular cf example below The orientation of sur face elements may be controlled and flipped analogous as previously explained for geometrical surfaces Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postp
52. ion v for version the screen output for the version of g should look as follows Configured with prefix Applications Xcode app Contents Developer usr with gxx include dir usr include c 4 2 1 Apple LLVM version 5 1 clang 503 0 40 based on LLVM 3 4svn Target x86_64 apple darwin13 2 0 Thread model posix As already explained in Section 3 1 above in addition the unmodified GCC 4 9 is required for the compilation of cgx and therefore will be installed next 5 2 Unmodified GCC 4 9 For the installation of the unmodified GCC 4 9 GNU compiler collection point 2 of the instructions https wiki helsinki fi display HUGG Installing the GNU compilerston Mac OS X for OS X Mavericks is applied Installation steps 1 4 1 Download pre build GCC 4 9 respectively gunzipped file gcc 4 9 bin tar gz from site http sourceforge net projects hpc files hpc gcc gcec 4 9 bin tar gz download use_mirror cznic amp download 2 Open Terminal window and change to directory where gcc 4 9 bin tar gz was down loaded usually directory Downloads or directory Desktop If for example gcc was downloaded on your Desktop use terminal command cd Desktop lt return gt 3 If gcc 4 9 bin tar gz was not automatically unzipped then unzip file with Terminal command Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks 17 CalculiX cgx
53. ion for making of directories is denied Note The notation calculix_inst_path here is used for documentation reasons only and therefore is not an environment variable for the installation of cgx Otherwise stated replace calculix_inst_path in commands with full path specification according to options A B Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks 13 CalculiX cgx Installation Guide Mac OS X e calculix_inst_path chosen installation path according to Section 4 2 for installation of directory CalculiX with source code and help files of cgx and ccx CalculiX downloaded source code and html help files stored in directories CalculixX cgx file system cecx file system cex 2 8 glut 3 5 libSNL ccx_2 8 doc examples netgen src doc cgx cecx html help html help files files Figure 1 File system after installation of source code and html help files of cgx as well as ccx html help files File System The file system for the installation of cgx and ccx is depicted in Fig 1 After the installa tion source code and html help files of cgx and ccx are contained in directories Cal culiX Install directories CalculiX under your installation path as explained in the sub sequent subsections The resulting file system is depicted in Fig 1 Accordingly both cgx and ccx are
54. ional soft ware is listed in Tab 2 Furthermore for the installation of cgx in Section 8 1 none of the additional software needs to be actually installed However for the installation of cgx in Section 8 1 all parameters paths flags etc for the additional software are set The latter allows for the later installa tion of additional software without re compilation of cgx 7 2 ImageMagick 6 8 8 6 e From ImageMagick the command line tool convert is provided cf Tab 1 for the functionality of convert in cgx e Download package ImageMagick 6 8 8 6 for Mac OS X 10 5 10 9 Requires XQuartz from site http cactuslab com imagemagick Then follow installer instruc tions e During installation your bash_profile will be modified automatically For activation of the modifications either close current Terminal window and then start a new one or fol low the instructions in Section 3 3 above e For the test of the installation use Terminal command convert lt return gt The installation works if the first line of the screen output looks as follows followed by several other lines for the usage of ImageMagick Version ImageMagick 6 8 8 6 Q16 x86_64 2014 02 17 http www imagemagick org e The functionality of cgx which is provided by the now installed convert command line tool will be tested in Section 9 3 2 below 7 3 PSUtils p17 e From PSUtils the command line tool pstops is provided cf Tab 1
55. lack non reflecting The aforemen tioned back sides therefore first must be flipped to become regular as required for the subsequent surface meshing Several procedures are provided for the flipping of geometrical surfaces and trias with the cgx command qflp cf 2 Section 8 69 for details and also the cgx help menu Because for the present example some of the surfaces are already regular the following Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks 45 CalculiX cgx Installation Guide Mac OS X cgx commands without comments may be applied for flipping of the non regular sur faces also consider instruction qflp lt return gt Invoke command qflp to flip surfaces Instruction Next select one of the regular surfaces plotted in magenta by positioning the mouse pointer on this surface 6666 a Type a to indicate that all surfaces should be orientated like the selected one 66 66 s Type s to orientate all surfaces like the selected one The initially black surfaces are immediately flipped and filled in magenta q Type q to quit command qflp The geometry of the cube now is ready for surface meshing with trias Use cgx com mands without comments elty all lt return gt Reset setting of element types elty all tr6u lt return gt Assign element type tr6u to all surfaces which are contai
56. le example for a bash_profile with path settings is given below Editing of hidden files respectively of file bash_profile The editing will be demonstrated for setting respectively exporting paths with bash_profile First execute the following commands in Terminal don t type in green comment shortcut for your HOME is used keystrokes for typing tilde n cd lt return gt Change directory cd to your home directory Home where your bash_profile is located 1s l lt return gt Long option 1 list command Is displays visible files in Note that file bash_profile is not displayed Command Is l therefore displays all visible files 1s la lt return gt Long option 1 list ls for all option a for all visible and invisible files in Now bash_profile is contained in the list of files Command Is la therefore displays all visible and invisible files If bash_profile is not listed after the execution of the last command Is la then create it now with the following commands cd lt return gt Change directory cd to your home directory HOME touch bash_profile lt return gt Create bash_profile Is la lt return gt Verify if bash_profile has been created Next open bash_profile with editor TextEdit with commands cd lt retum gt Set home directory as your working directory Note Commands for displaying hidden files in Finder ar
57. le use netgen_install_path users LOGNAME NETGEN_INSTALL to install Netgen in directory NETGEN_INSTALL under your home directory Users LOGNAME Create directory NETGEN_INSTALL with Terminal commands cd lt return gt and then mkdir NETGEN_INSTALL lt return gt Note netgen_install_path is used as an abbreviation for the installation path In the Terminal com mands given below therefore replace the aforementioned abbreviation with the full path specifi cation netgen_install_path Users LOGNAME netgen_ install Download Netgen 5 1 source for Linux from site http sourceforge net apps mediawiki netgen mesher index php title Main_ Page The package netgen 5 1 tar gz will be downloaded on your Desktop Unpack package by double clicking the icon of netgen 5 1 tar gz on your Desktop Then drag folder netgen 5 1 from Desktop to netgen_install_path The folder netgen 5 1 now is installed as follows netgen_install_path netgen 5 1 Use modified file ng_vol cpp from the cgx package to build Netgen Steps 4 1 Open file ng_vol cpp in cgx installation directory cal culix_install_path calculix cgx_2 7 netgen with an editor of your choice Next try to find character string without quotes secondorder with your edi tor The aforementioned string may appear either only once or not at all If se condorder is found code in ng_vol cpp
58. led for the default path usr local Accordingly the executable gs is located in usr local bin gs No further path settings required e For the test of the installation use Terminal command gs v lt return gt The installation works if the first line of the screen output looks as follows GPL Ghostscript 9 10 2013 08 30 e The functionality of cgx which is provided by the now installed gs command line tool will be tested in Section 9 3 3 below 7 5 gv 3 7 4 Preview Installed Instead e The application program gv is a postscript viewer However for the reasons ex plained in the note below for the present installation the Mac App Preview will be in Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks 21 CalculiX cgx Installation Guide Mac OS X e stalled as postscript viewer for cgx instead of gv cf also Tab 1 for the functionality of Preview in cgx For the installation a shell script is provided which enables cgx to use Preview Note The postscript viewer gv is based on the older viewer Ghostview which is set in cgx as the de fault viewer As an alternative gv may be set instead of Ghostview cf Section 8 1 for details More information about the usage of gv and Ghostview is available in Section 8 26 in 2 In June 2014 i e at the time when the installation of
59. les Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks 38 CalculiX cgx Installation Guide Mac OS X e Step 1 Choose Option for Generation of Geometry of Cube Step 2 Use Prepared Geometry of Cube Step 3 Generate Geometry of Cube Manually Step 4 Mesh Cube With Tets for Test of Tet Meshing with Netgen Binary ng_vol Steps 1 3 therefore are for the preparation of the geometry of the cube The cube will be meshed in the final Step 4 Step 1 Choose Option for Generation of Geometry of Cube The following two options A B are provided for the preparation of the required geometry of the cube A Use prepared geometry of cube according to Step 2 below then test tet meshing of cube according to the final Step 4 below B Generate geometry of cube according to Step 3 below then test tet meshing of cube according to the final Step 4 below Step 2 Use Prepared Geometry of Cube The present Step 2 has to be considered for option A according to Step 1 only For option B follow Step 3 below instead In cgx geometry data are stored in fbd files lt filename gt fbd Accordingly the prepared geometry will be loaded with the help of a fbd file The required code of the fbd file is provided in Appendix 1 Steps 1 create working directory for the test e g directory mesh_cube in your home directory create direct
60. lt return gt to terminate cgx The echo of the command is displayed in the command window See introductory Sections 4 to 6 in the cgx User s Manual 2 and also the subsequent Section 8 3 below how to get started with cgx Note If cgx is launched from a Terminal window and XQuartz was not already open then first XQuartz will be launched automatically The latter may take a second or two If XQuartz was already open how ever the Calculix Graphix window will pop up immediately on your screen Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks 33 CalculiX cgx Installation Guide Mac OS X 8 3 Getting Started With cgx Consider the html help files for ccx cf Section 9 3 5 for details and references User s guide of cgx 2 Sections 1 7 cf in particular Section 4 Getting Started Tutorial 3 Getting Started With Calculix 8 4 Test Examples The functionality of the additional software will be tested in Section 9 below In Appendix C in 2 some simple test examples are provided An example for tet meshing of a given CAD geometry is contained in directory calculix_install_path calculix examples cad for further explanations see the README in directory cad and also 2 Section B 11 How to Deal With CAD Geometry Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Po
61. ml help files of cgx are required Steps a b for installation of the cgx html help files a Download htlm help files the documentation html of cgx from Calculix website http www dhondt de The help file package cgx_2 8 htm tar bz2 will be download ed to your Desktop directory Desktop If the ending bz2 is missing please re name the filename to cgx_2 8 htm tar bz2 b The package cgx_2 8 htm tar bz2 next will be moved from the Desktop to the cal culix_inst_path and then will be unpacked and installed Type and execute the fol lowing Terminal commands without comments calculix_inst_path chosen accord ing to Section 4 2 above cd calculix_inst_path lt return gt Change to Calculix installation directory Now move mv cgx_2 8 htm tar bz2 from Desktop to calculix_inst_path mv Desktop cgx_2 8 htm tar bz2 calculix_inst_path lt return gt bunzip2 cgx_2 8 htm tar bz2 lt return gt Unpack package tar xvf cgx_2 8 htm tar lt return gt Install package The last command installs the cgx html help files of cgx The html help files are now con tained in directory cgx under the previously installed directory doc cf Fig 1 for the file system calculix_inst_path CalculiX cgx_2 8 doc cgx If option B from Section 4 2 was chosen for the installation path the above specified path is required in Section 8 1 to complete the installation of cgx T
62. n follow installer instructions The XQuartz App will be installed in your Applica tions Utilities folder Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks 18 CalculiX cgx Installation Guide Mac OS X e 6 INSTALL MACPORTS Download MacPorts for OSX 10 9 Mavericks from site http www macports org install php Then follow installer instructions During installation your bash_profile will be modified automatically For activation of the modifications either close current Terminal window and then start a new one or follow the instructions in Section 3 3 above For the test of the installation type in Terminal window sudo port self update lt return gt The installation works if the first line of the screen output looks as follows gt Updating MacPorts base sources using rsync Further instructions are provided on site https www macports org Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks 19 CalculiX cgx Installation Guide Mac OS X e 7 INSTALL ADDITIONAL SOFTWARE 7 1 General As already explained in detail in Section 1 1 above depending on your needs none all or parts of the additional software may be installed Furthermore the sequence of installation may be chosen freely The functionality of cgx which is provided by the addit
63. ncerning cgx menu items and cgx commands cf cgx User s Guide 2 For details of tet meshing cf cgx User s Guide 2 and README in folder examples cad of cgx Table 2 Additional software sorted by cgx menu items MI and cgx commands C Functionality and references to test examples according to column 2 Names of additional software which is required for functionality of MI C listed in column 3 In Tab 1 above the additional soft ware is sorted by name Prepared B Graf Installation Guide CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks February 10 2015 CalculiX cgx Installation Guide Mac OS X 2 SOFTWARE REQUIREMENTS 2 1 Software Releases Unless otherwise noted the installation has been tested for the software releases as speci fied below cf titles of subsections below for the releases 2 2 Mac OS X Specific 2 2 1 OS X Mavericks 10 9 5 The installation was tested for version 10 9 5 of OS X Mavericks Amongst others the Unix like Darwin OS OpenGL and Aqua are inherent parts of Mac OS X The aforementioned OpenGL is required for the installation of cgx respectively for the GUI of cgx no separate installation of OpenGL according to 1 required Aqua is the de fault GUI on Mac The additional software gnuplot cf Section 1 2 and Tab 1 above for details will be installed for Aqua The command line interface to OS X is provided by the Terminal App cf Secti
64. ned in mesh all lt return gt Mesh all surfaces from set all with trias The last command creates 36 trias use cgx command print se to check set all for el ements Display now elements with cgx command plot e all lt return gt Display elements without edges Because the meshed geometrical surface was regular all elements are also regular and therefore are filled in green green fill indicates reflecting front sides of trias Element edges may be displayed with cgx menu items Viewing Toggle element Edges Note that if for another example some of the created elements are non regular plotted in black you may flip these elements as previously explained for geometrical surfaces Al ternatively you may flip non regular geometrical surfaces before surface meshing The trias of the surface mesh are contained in set all check with cgx command prnt all Accordingly set set_name_trias all subsequently is used in the command for tet meshing The volume now may be meshed with tets For tet meshing with optional pre specified element size e g size 0 1 use cgx command without comment mesh all tet 0 1 lt return gt Mesh volume defined by regular surface mesh from set all with tets and optional element size 0 1 The last command creates 23 tet elements and deletes the surface elements use cgx command prnt se lt return gt to check set all for the crea
65. ns http www maclife com article feature 25_terminal_tips_every_mac_user_should_know Terminal Commands Commands respectively Terminal commands which are highlighted in the following with red letters are entered after the prompt in the Terminal window cf examples below For execution of commands use the return key also denoted as enter key HOME LOGNAME After a new Terminal window was opened the shell wakes up in your home directory denoted as HOME shortcut use keystrokes alt N for tilde Use command env for environment env lt return gt to display the path to your HOME usually HOME Users LOGNAME The env command also displays your LOGNAME as well as the path PWD to your current pri vate working directory The path to your current working directory respectively current folder also may be displayed with command pwd lt return gt pwd for print working di rectory Login If you are not already logged in with your LOGNAME use command login lt re turn gt in Terminal Afterwards you will be asked for your LOGNAME and password to login Permissions For several installation steps you need expanded access rights to the file sys tem To gain these rights here the sudo command will be used syntax examples are given below sudo command lt return gt Afterwards the OS will ask you first for your password before the command is executed If required
66. nstall Tcl Before re compilation use command make distclean lt return gt then re configure For more details consider README provided for Tcl e Install tk8 5 9 from source Download source from site http de sourceforge jp projects sfnet_tcl downloads Tcl 8 5 9 tk8 5 9 sre tar z The package tk8 5 9 src tar gz will be downloaded on your Desktop Next drag pack age from Desktop to your installation directory tcl_install_path then unzip package double click on package The file system now looks as follows tcl_install_path tk8 5 9 i e the source code now is contained in folder tk8 5 9 Complete installation with Terminal commands don t type in comments cd tcl_install_path tk8 5 9 unix lt return gt Goto directory tk8 5 9 unix Configure i e create Makefile configure prefix tcl_install_path with tcl tcl_install_path lib lt return gt followed by command sequence make lt return gt make install lt return gt to build and install Tk Before re compilation use command make distclean lt return gt then re configure For more details consider README provided for tk Install Tix8 4 3 from source Download source from site http de sourceforge jp projects sfnet_tix downloads tix 8 4 3 Tix8 4 3 sre tar gz The package Tix8 4 3 src tar gz will be downloaded on your Desktop Next drag package from Deskto
67. nter in menu area press left mouse button and keep button pressed then select menu items Hardcopy PsHardcopy then release mouse button The command line tool convert respec tively the installed additional software ImageMagick works if the file hcpy_1 ps was created in the current working directory examples Check now if hcpy_1 ps was cre ated Next repeat the afore explained steps for a hardcopy to generate a second hardcopy hcpy_2 ps of the same fringe plot Directory examples then contains the two ps files hcepy_l ps and hcpy_2 ps which are required subsequently for the test of the cgx command C hcpy make Is Notes The command line tool convert may also be used as a standalone application for image manipula tions Use command in Terminal window convert h lt return gt to display convert options Alterna Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks 36 CalculiX cgx Installation Guide Mac OS X e tively instead of the previously explained MI Hardcopy also the pre installed on Mac Grab App may be used Steps a Double click Grab icon in your Applications Utilities folder b choose from Grab menu Capture Window c follow displayed Grab instructions to select window Grab generates a tiff file of the image which may be converted in other forma
68. nts and the final Section 11 a list of known Mac specific prob lems References are provided on page 50 and are followed by Appendix 1 in which the in put of a test for tet meshing is provided Appendix 2 is provided for the optional installa tion of Netgen automatic 3D tetrahedral mesh generator with GUI The release notes are provided on page i 1 2 Planning Your Installation and Functionality of Optional Additional Software As already explained in Section 1 1 above a standalone installation of cgx without the be low discussed additional software is possible and already provides a powerful pre and post processing tool For a standalone installation of cgx skip all instructions for the in stallation of additional software For the build of cgx in Section 8 1 it is recommended however to consider the path settings and parameters for the additional software The lat ter allows for the subsequent installation of additional software without re build of cgx Conversely none of the additional software actually needs to be installed for the build of cgx For additional functionality of cgx the subsequently discussed optional additional software may be installed The additional software as well as details of the functionality are listed in Tab 1 and Tab 2 below as follows cf also 1 for the additional software e Tab 1 Additional software sorted by name in column 1 The functionality is explained in column 2 of Tab 1 Cross referen
69. on 2 2 2 and Section 3 2 for details 2 2 2 Xcode 5 1 1 Provides Command Line Tools Terminal and Associated Modified GCC 5 1 GNU Compiler Collection Xcode is a broad suit for software development on Mac and is provided by Apple Several capabilities of Xcode are required for the present installation as further outlined below However because Xcode is not an inherent part of OS X it needs to be installed separately from OS X cf Section 5 1 for the installation The following capabilities of Xcode are required for the present installation 1 command line tools CLTs for OS X respectively the Terminal App 2 modified by Apple ver sion 5 1 of the GCC GNU compiler collection The aforementioned CLTs are provided by the Terminal App cf Section 3 2 for details also denoted as Terminal or Terminal window As will be shown below Unix commands for software installation will be entered via Terminal Furthermore cgx will be launched via Terminal Except of the source code of cgx the aforementioned modified GCC 5 1 will be applied for compilation For the compilation of cgx the unmodified GCC 4 9 is required because the modified by Apple GCC 5 1 is not suitable for the compilation of cgx cf Section 2 2 3 and Section 3 1 below for details and Section 5 2 for the installation of the GCC 4 9 The aforementioned CLTs and GCC 5 1 are installed together with Xcode in Section 5 1 below Notes Xcode is a broad suite for software dev
70. onsidered If you use for example a wireless Apple Magic Mouse without middle button then do the following Use left and right clicks if in the aforementioned instructions pushing of left or right button is required use scroll gesture move fingertips forth and back along length side of mouse if pushing of the middle button is required The aforementioned scroll gesture in particular may be used to zoom but also for several other manipulations 1 e for cgx menu item Toggle Move Z Zoom according to 2 Section 7 2 10 A trackpad may be used analogous as afore explained for a mouse without middle button 10 3 Mouse Pointer For entering of cgx commands the mouse pointer always must be positioned strictly within the graphical cgx main window The mouse pointer is also used to select entities nodes edges etc for example if the cgx command enq is used cf 2 Section 8 17 for de tails Procedure for usage of cgx command eng position mouse pointer in main window of cgx then type cgx command enq lt return gt then position mouse near to entity you want to enquire then enter option for entity line surface etc 10 4 Keyboard With the following exceptions the keystrokes given in 2 Section 6 2 also hold for Mac keyboards use keystrokes fn Up Arrow for page up in your command window fn Down Arrow for page down in your command window Prepared Installation Guide Febr
71. ory with Terminal command mkdir mesh_cube lt return gt or with Finder 2 open new file with TextEdit 3 copy code from Appendix 1 code for fbd file in open file then use TextEdit menu items Format Make Plane Text for plane text 4 save file with filename text in new folder mesh_cube then quit TextEdit The saved File text txt will be subsequently renamed to test_tets fod as explained below Next open a terminal window and change directory to the working directory mesh_cube with Terminal command cd mesh_cube lt return gt Then rename file text txt to file test_tets fod with Terminal command mv text txt test_tets fbd lt re turn gt Next launch cgx with Terminal command cgx_2 8 b test_tets fbd lt return gt After the execution of the last command the geometry of the cube first will be loaded and then displayed in the drawing area as follows lines with labels L surfaces with la Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks 39 CalculiX cgx Installation Guide Mac OS X e bels A body with label B001 The geometry therefore amongst others contains body B001 for the cube Continue with step 4 below to mesh the cube Step 3 Generate Geometry of Cube Manually The present Step 3 has to be considered for option B according to St
72. ovide the command line tool ng_vol for cgx 5 1 Install Netgen without GUI Use Terminal commands without comments cd netgen_install_path netgen 5 1 lt return gt Change directory to location of netgen installation The next command creates the Makefile configure prefix HOME netgen_install disable gui lt return gt sudo make lt return gt Build Netgen Displayed warnings are not essential for the functionality of Netgen sudo install lt return gt Install Netgen Installs binaries under path netgen_install_path bin The binaries are now located under path netgen_install_path bin If you want to repeat the installation for some reason then run before in Termi nal window make distclean lt return gt Continue installation with point 6 below 5 2 Install Netgen with GUI Follow the instructions in Appendix 2 Continue installation with point 6 below 6 Set path to binaries in netgen_install_path bin Insert the following line at the end of your bash_profile cf Section 3 3 for further explanation of bash_profile export PATH PATH netgen_install_path bin Next activate path use instructions from Section 3 3 7 Test Installation of command line tool ng_vol Use Terminal command without comment ng_vol lt return gt Execute binary ng_vol Prepared Installation Guide February 10 2015 B Graf CalculiX Gra
73. p sourceforge net projects gnuplot files gnuplot 4 6 5 The zipped tar file will be downloaded on your Desktop Double click package gnuplot 4 6 5 tar gz on your Desktop to unzip then drag unzipped folder gnuplot 4 6 5 to installation directory gnuplot_inst_path The file system now looks like this gnuplot_inst_path gnuplot 4 6 5 2 3 Build and install gnuplot Use Terminal commands without comments cd gnuplot_inst_path gnuplot 4 6 5 lt return gt Set installation directory configure lt return gt Configures makefile sudo make lt return gt Builds binary gnuplot sudo install lt return gt Installs binary gnuplot under default path usr local bin gnuplot Binary gnuplot therefore is installed under the default path usr local bin 2 4 Path settings No additional path setting required because the binary gnuplot according to point 2 3 above is installed in directory usr local bin and there fore already is installed in one of the default search paths of the OS for binaries 3 Test installation of binary gnuplot and bug fixes Launch gnuplot from some work ing directory with Terminal command gnuplot lt return gt If the installation was successful the screen output now looks as follows GNUPLOT Version 4 6 patchlevel 5 last modified February 2014 Build System Darwin x86_64 Copyright C 1986 1993 1998 2004 2007 2014
74. p to your installation directory tcl_install_path then unzip pack Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks A2 4 CalculiX cgx Installation Guide Mac OS X e Appendix 2 age double click on package The file system now looks as follows tcl_install_path Tix8 4 3 i e the source code now is contained in folder Tix8 4 3 Complete installation with Terminal commands don t type in comments cd tcl_install_path Tix8 4 3 lt return gt Goto directory Tix8 4 3 Configure i e create Makefile configure prefix tcl_install_path with tcl tcl_install_path lib with tk tcl_install_path lib LDFLAGS L usr X1 1 lib 1X11 lt re turn gt followed by command sequence make lt return gt make install lt return gt to build and install Tix Before re compilation use command make distclean lt return gt then re configure For more details consider README provided for Tix e Install Togl 1 7 from source Download source from site http sourceforge jp projects sfnet_togl downloads Togl 1 7 Togl 1 7 tar gz The package Togl 1 7 tar gz will be downloaded on your Desktop Next drag pack age from Desktop to your installation directory tcl_install_path then unzip package double click on package The file system now looks as follows tcl_install
75. pared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks 47 CalculiX cgx Installation Guide Mac OS X Instruction Input of numbers greater than nine requires leading blank for example 16 Instruction Next the number of subdivisions of all of the lines will be changed which are selected with the help of a user defined rectangle a Type a to select all lines within a rectangle in mode mode a Instruction Set rectangle to select all lines move mouse pointer to upper left corner of rectangle then typ r next move mouse pointer to lower right corner then type r Next move rectangle such that all wanted lines are enclosed by rectangle 8 Type for example number 8 for eight subdivisions of all selected lines Afterwards the new number of subdivisions is displayed immediately q Type q to quit command qdiv Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks 48 CalculiX cgx Installation Guide Mac OS X 10 HINTS 10 1 General In the following subsections Mac specific hints are provided cf also the cgx installation instructions 1 and the cgx user s guide 2 for hints and tips 10 2 Mouse Without Middle Button and Trackpad In the instructions 1 2 a mouse with left middle and right mouse button is c
76. phical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks 26 CalculiX cgx Installation Guide Mac OS X e 8 The installation works if after execution of the last command the following screen output appears Netgen tet mesher use ng_vol filename The functionality of cgx which is provided by the now installed binary ng_vol will be tested in Section 9 3 6 below cf also Tab 1 for the functionality of ng_vol in Cgx 7 8 gnuplot 4 6 5 From gnuplot command driven interactive function and data plotting program for 2D and 3D plots the command line tool gnuplot is provided which is used from cgx to dis play xy plots cf also Tab 1 for the functionality of gnuplot in cgx Instructions for the installation of gnuplot with MacPorts and from source are provided First try to install gnuplot with MacPorts If the latter fails install it from source Installation steps 1 to 4 step 1 for installation with MacPorts step 2 for installation from source if step 1 doesn t work steps 3 4 for the test of the installation 1 2 Install gnuplot with MacPorts Use Terminal commands without comments sudo port selfupdate lt return gt sudo port upgrade outdated lt return gt sudo port install gnuplot lt return gt Install gnuplot If the installation with MacPorts does not work try to install gnuplot from source ac cording to step 2 below If the installation is finished without er
77. phical window of cgx cf also 1 2 for details Use the cgx help menu to get help for cgx commands respectively the cgx menu item Help to display the help menu cf the test of the help menu in Section 9 3 5 for details See Section 6 in 2 for the mouse handling and also Section 10 2 below if you use a mouse without middle button Consider the messages status errors etc which are displayed in the command window Terminal 93 Tests 9 3 1 General Test of cgx Menu Items MI and Commands C The functionality of the cgx menu items MI and commands C from the first column of Tab 2 depend on the optional additional software and will be tested below Menu items and commands are tested in the sequence as given in the first column of Tab 2 9 3 2 Test MI Hardcopy and C hcpy Provided by ImageMagick ImageMagick provides the convert command line tool which is used from cgx to gener ate hardcopies of the drawing area with MI Hardcopy or C hcpy cf also 2 Section 7 11 for Hardcopy and Section 8 30 for hcpy The format of plotfiles may be selected as explained below Subsequently the MI Hardcopy will be tested Prearrangements Test example from Section 9 2 file result frd prepared Your current working directory therefore is cgx_install_path CalculiX cgx_2 8 examples For a hardcopy of the fringe plot in ps PostScript format position mouse poi
78. provided by the trias Step 4 3 is for the control of the element size via the subdivision of lines which form the element edges For the present example the cube was created with cgx command swep The latter command also automatically creates the geometrical entity body to which the geo metrical properties of the volume of the cube are assigned to if a body is not created automatically as mentioned before you may create it with cgx command body ac cording to 2 Section 8 4 The afore mentioned entity body is contained in set all whereas set all is a default set in cgx which contains all created entities points lines bodies nodes elements etc and therefore amongst others all geometrical building blocks of the cube Use cgx command prnt se lt return gt to display sets Amongst others the last command displays set all as follows 1 all stat o n 0 e 0 f 0 p 26 1 12 s 6 b 1 L 0 S 0 se 0 sh 6 Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks 4 CalculiX e cgx Installation Guide Mac OS X e According to the above output amongst others set all contains the geometrical enti ties 1 s b of the cube i e twelve lines 12 for the edges six surfaces s 6 for the faces one body b 1 for the volume The afore mentioned entities will be used below for the meshing of the cube respectively are addressed for
79. repared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks 23 CalculiX cgx Installation Guide Mac OS X e open opens application a Firefox input passed via 1 open a Firefox 1 b Enter the following commands in Terminal window without comments and full path dir_your_choice as chosen above cd dir_your_choice lt return gt Change directory to dir_your_choice chmod 777 firefox lt return gt Make firefox executable cp firefox usr local bin lt return gt Copy preview in usr local bin which is one of the default search paths of the OS for executables Note Instead of installing the script as explained above in usr local bin you may install all your scripts in one place for example in a folder scripts which for example may be created in your HOME The installation path of your scripts then is scripts_install_path HOME scripts In stallation steps respectively commands to enter in Terminal window followed by lt return gt b1 cd HOME b2 mkdir scripts b3 cp dir_your_choice firefox scripts_install_dir b4 chmod 777 firefox b5 insert line export PATH PATH scripts_install_path in your bash_profile cf Section 3 3 for further explanation of bash_profile b6 use instruc tions from Section 3 3 above to activate the changes you made in bash_profile Amongst oth ers the OS now uses the path according
80. repared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks 42 CalculiX cgx Installation Guide Mac OS X e commands without comments for typing in cgx commands position mouse pointer in graphics window of cgx elty all lt return gt Reset setting of element types elty all te10 lt return gt Assign tet elements te10 to body contained in set all mesh all lt return gt Mesh cube respectively body contained in set all with pre specified tets The last cgx command mesh all for tet meshing respectively tet meshing with the Netgen binary ng_vol works if the meshing is finished with the following printout in your Terminal window 36 Tet elems in body B001 complete set set complete elements deleted ready Depending on your needs you may quit now the test of tet meshing or continue with further tests According to the printout above 36 tets have been generated The generated nodes and elements are contained in set all type cgx command print se lt return gt to check the contents of set all Display elements Use cgx command without green comment plot e all lt return gt Plot elements e contained in set all and then menu items Viewing Fill then Viewing Toggle Element Edges to display element edges Instead of the afore explained sequence of commands starting
81. ressersresreeseeereee 16 5 1 Xcode 5 1 1 and Modified GCC 5 1 woe naniii i aE E AAR EA 16 5 2 Wnmoditied GCC 4 tices isis eet tad ah ok ee le cee te aah ace es 16 5 3 MK OU TA APAA N EI R secede S TE AE A Secs E ATA E 17 Ge INSTALE MaC POTS iesen n aa a R dois E 18 Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks iii CalculiX cgx Installation Guide Mac OS X Ts 10 11 Prepared B Graf INSTALL ADDITIONAL SOFTWARE eeeeecsscessecceescceesecceseeceseecesseeeees 19 7 1 Eea e a E E E E T E 19 72 ImageMasick6 8 8 62 0 14 sihescdcr vies ln ytd e a Ar VA RE A tee eaaeee 19 73 PSUS PUT eeina i oiii o n be den a i o coves dayueesdedaveedewss a 19 74 PSO O E ET setae dei asgees adhaadesacdde dest Bogle led gh lade sede Tes vasagaseasiss eahasiegaes 20 7 5 gv 3 7 4 Preview Installed Instead eee eee csc ceseeseceseeeceeeeseceeeseeeseeeeeeeseesaesaeesaeeaaens 20 76 Firefox 35 0 or any other html browSer 0 esceesceeeecesseceeeeceseeeseeceeeecaeesaeeeeeeeeaeceeeeenaeeas 22 re Netpena dlc cette aisha Sie ROTE les a ese E A ES A T N 23 78 PnUPlOt4 6 5 E ae eile ee nae ee th Bs eae teeta Se eaten ok nee 26 INSTALL AND LAUNCH CGX TEST INSTALLATION GETTING STARTED AND TEST EXAMPLES x i sssaasvaendqdeneatanatvcepdedeuantsgn tenesasdeauatenchontbepinnns 29 8 1 Eaa e E E E A A eeh ee Bi eS 29 8 2 Launch cgx and Test Installation soiak eiere eeta cbs
82. rocessor cgx 2 8 on Mac OS X Mavericks 44 CalculiX cgx Installation Guide Mac OS X e Furthermore the following holds for automatic surface meshing with cgx the orienta tion of surface elements is governed by the orientation of geometrical surfaces Conse quently the orientation of surface elements may be controlled with the orientation of ge ometrical surfaces The latter will be applied and checked below for the surface meshing of the cube If surfaces are meshed manually the regular orientation of elements always should be checked and if necessary corrected analogous as demonstrated for the geo metrical surfaces of the cube below Summary of tet meshing procedure sequential First of all check if geometrical sur faces are regular If not flip non regular surfaces prior to surface meshing Next set el ement type for surface meshing with trias tr3 tr3u or tr6u then generate regular sur face mesh The generated mesh entities nodes surface elements are contained in set set_name_trias all Finally use cgx command mesh set_name_trias size for tet meshing with parameter size as explained below for the control of the mesh size De pending on the type of chosen trias linear or quadratic tets te4 or tel10 are automatically chosen for tet meshing After tet meshing nodes and elements for the generated tets are contained in set all The surface mesh is deleted after tet meshing Control of element size
83. ror messages MacPorts has installed the exe cutable gnuplot for the default path opt local bin gnuplot Furthermore MacPorts automatically adds the search path opt local bin for the executable gnuplot to the path settings in your bash_profile To activate the modified path setting follow the in structions in Section 3 3 Continue with the test of the executable gnuplot according to step 3 below Install gnuplot from source if installation with Macports according to point 1 above has failed Installation steps 2 1 to 2 3 2 1 Choose installation path gnuplot_install_path For example use gnuplot_install_path GNUPLOT_INSTALL Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks 2 CalculiX e cgx Installation Guide Mac OS X e to install gnuplot in directory GNUPLOT_INSTALL under your home di rectory Create directory GNUPLOT_INSTALL with Terminal com mands cd lt return gt and then mkdir GNUPLOT_INSTALL lt return gt Note gnuplot_install_path is used as an abbreviation for the installation path In the Terminal commands given below therefore replace the aforementioned abbreviation with the full path specification gnuplot_inst_path Users LOGNAME gnuplot_install 2 2 Download and install source code Download the package gnuplot 4 6 5 tar gz from website htt
84. sessrssressessresressessresresseeseese 49 11 1 Installation of Additional Software eseeesseesessesessesseseesesessessessesessesseseesesenseserseesessesessessss 49 REFERENCES oi ke oe eee elem ioe ee net whee ee E 50 APPENDICES Code for Pile test_tets fbd 22 2 niea Ra ena ela eee dds Al 1 A1 3 Installation of Netgen With GUI ooo eee eeececeeeeeceeeeeceteeecseeeeenteeeenaeees A2 1 A2 6 Installation Guide February 10 2015 CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks CalculiX cgx Installation Guide Mac OS X 1 INTRODUCTION 1 1 General CalculiX comprises the graphical pre and postprocessor cgx CalculiX GraphiX and the solver cecx CalculiX CrunchiX The present guide covers the installation of cgx on Mac OS X Mavericks cf 4 for the installation of ccx Except of html help files and the in stallation path the installation of cgx is independent from the installation of ccx Accord ingly the sequence of the installation of cgx and ccx may be chosen freely For a brief introduction to the installation of cgx on Unix Linux please read the instruc tions by K Wittig 1 Section B Installation from Source Based on the aforementioned reference 1 in the present document a step by step installation guide for cgx on Mac OS X is provided Installation from source is considered The installation of cgx requires the pre installation of Mac specific software like Xcode XQuartz t
85. st of all consider tutorial conventions at top of page 5 in 3 next start generation of ge ometry with line M Move mouse into newly created window at bottom of page 5 in 3 then follow further instructions in 3 until the command K Type swep se3 se4 tra 0 0 10 E is reached on top of page 11 in 3 then replace the latter command with swep se3 se4 tra 0 0 1 to create the cube with edge length 1 The latter swep command also has created the geometrical entity body of the cube cf step 4 below for details The geom etry now is ready Use cgx command without quotes plot ba all lt return gt to display the body of the cube Next save the geometry in file test_tets fobd with cgx command save lt return gt or use cgx command exit lt return gt instead exit first saves geometry then quits cgx if you want to quit cgx for the moment To load the geometry after exit again use Terminal command cgx_2 8 b test_tets fod lt return gt Note that with the cgx menu item Quit nothing will be saved Continue with step 4 below to mesh the cube Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks 40 CalculiX cgx Installation Guide Mac OS X e Note The command sequence K Type qadd sel E K Type a given at the bottom of page 7 in 3 is misleading The following sequence works in gener
86. stprocessor cgx 2 8 on Mac OS X Mavericks 34 CalculiX cgx Installation Guide Mac OS X e 9 TEST FUNCTIONALITY OF ADDITIONAL SOFTWARE 9 1 General Subject of the present Section 9 is the test of the functionality of the optional additional software from Section 2 5 The considered test example will be prepared in the next Sec tion 9 2 The subsequent test of the functionality in Section 9 3 follows the order of the menu items and commands provided by cgx as given in the first column of Tab 2 In the aforementioned Tab 2 also the following data are provided functionality of cgx menu items and commands in column 2 names of additional software used from cgx menu items and commands in column 3 9 2 Prepare Test Example and Hints Except of the test for tet meshing in Section 9 3 6 below the result file result frd will be considered as test example The aforementioned result file result frd is provided under the directory examples of the cgx installation cgx_install_path CalculiX cgx_2 8 examples result frd Steps 1 to 4 and hints 5 for preparation of test example 1 Launch a command window Follow the instructions in Section 8 2 above The Termi nal or xterm window in the following is denoted as Terminal Furthermore the prompt of a Terminal window is considered 2 Enter the following commands in Terminal without comments cd calculix_inst_path calculix cgx_2 8 examples lt return
87. table netgen of netgen so you may invoke netgen from your working directories Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks A2 6 CalculiX cgx Installation Guide Mac OS X e Appendix 2 export NETGENDIR netgen_install_path bin Set directory for Netgen export DYLD_LIBRARY_PATH netgen_install_path lib Togl1 7 netgen_install_path lib netgen_install_path lib Set directory for libraries Next save and close file bash_profile and then use the following Terminal commands to activate the new path settings source bash_profile lt return gt Activates previously set variables in your bash_profile echo PATH lt return gt displays path settings Check if path netgen_install_path bin to executable of Netgen is set LAUNCH NETGEN WITH GUI Use Terminal commands don t type in commands cd workingdirectory lt return gt Goto your working directory create one if it not already exists netgen lt retum gt Launch Netgen After the last command the GUI of Netgen will open and you are able now to create some mesh COMPLETE INSTALLATION OF NETGEN FOR CGX Continue installation of Netgen for cgx with step 6 in Section 7 7 Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks
88. ted elements To keep the sur face elements you may store them before tet meshing in a ccx solver file cf tutorial 3 for an example and also cgx command send all abq below To use the surface mesh Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks 46 CalculiX cgx Installation Guide Mac OS X for tet meshing again read the solver file with option v in the command for launching of cgx Plot elements with cgx menu items Viewing Show All Elements With Light and Viewing Toggle Element Edges to view element edges Further menu items for viewing are explained in 2 Section 7 2 If you use the cgx menu item Toggle Move Z Zoom for viewing with a cutting plane then consider Section 10 2 below for the positioning of the cutting plane if you use a mouse without middle bottom Write mesh to file Use cgx command without comment send all abq lt return gt Write optional file all msh with all nodes and all elements which are contained in set all to write nodal coordinates and connectivity of elements in ABAQUS format on file all msh cf also tutorial 3 for further use of file all msh Delete mesh Use cgx command without green comment del mesh lt return gt Deletes all mesh data After the mesh has been deleted in set all all entries for nodes and elements are empty use cgx comm
89. tion mouse pointer in main win dow of cgx to activate the input of cgx commands Next type in cgx command with mouse pointer positioned in graphics window of cgx consider echo of command which is displayed in your command window hcpy make Is lt return gt The tested additional software works if the created file cgx ps is located in your working directory examples and in addition automatically is displayed with Preview 9 3 4 Test MI Graph and C graph Provided by gnuplot and Preview In cgx the MI Graph and C graph are provided for the generation of path plots xy plots also denoted as 2D plots for a path history etc The capabilities of the aforemen tioned MI will be demonstrated below for the example of a path plot The additional software gnuplot and Preview provide the CLTs command line tools gnuplot and preview which are used by MI Graph and C graph to generate and display plotfiles cf also 2 Section 7 9 for MI Graph and Section 8 26 in 2 for C graph Furthermore according to Section 8 26 in 2 MI Graph and C graph generate the following files graph out with xy raw data graph gnu with gnuplot plot commands graph ps ps plotfile generated with gnuplot using file graph gnu Fi path cgx_install_path CalculiX cgx_2 8 examples Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical
90. to cgx_2 8 8 2 Launch cgx and Test Installation Steps 1 Open command window Open either a Terminal or xterm window to enter com mands Open a Terminal window Follow the instructions in Section 3 2 to open a bash shell for entering of commands Open a xterm window Launch XQuartz by double clicking the XQuartz App in your Applications Utilities folder A xterm window will be opened automati cally 2 Create a working directory Create e g working directory test in your home direc tory with command enter command in Terminal or xterm window mkdir test lt return gt and then change directory to directory test with command cd test lt re turn gt 3 Launch cgx and test installation Launch cgx with command cgx_2 8 b dummy fbd lt return gt The installation of cgx basically works if after the execution of the last command the following message appears in the command window on a Darwin machine nodename NNs MacBook Pro local release 13 4 0 version Darwin Kernel Version 13 4 0 Sun Aug 17 19 50 11 PDT 2014 root xnu 2422 115 4 1 RELEASE_X86_64 machine x86_64 parameters 3 arguments 2 GL_MAX_EVAL_ORDER 10 ERROR The input file dummy fbd could not be opened and the Calculix Graphix window pops up on your screen The above error appears if the file dummy fbd not already exists Position cursor in Calculix Graphix window and then type command quit
91. ts For example the Preview App may be used for conversion use Preview menu items Save or Export to convert the format of a plotfile 9 3 3 Test C hepy make ls Provided by PSUtils gs GhostScript and Preview With the cgx command C hcpy make Is a number of n plotfiles hcpy_i ps i 1 2 N which already exist in your working directory are bundled in a new ps file cgx ps Depending on the number n of existing files the bundled file cgx ps may contain one or more pages cf command hcpy in 2 Section 8 30 for more details Furthermore the bundled file cgx ps is created in your current working directory and in addition is dis played with the default ps viewer PSUtils and gs provide the CLTs command line tools pstops and gs which are used from the command hcpy make Is to bundle files Furthermore the command hcpy make Is uses the CLT preview to display the file cgx ps whereas the CLT preview makes use of the pre installed on Mac Preview App cf Section 7 5 above for details Prearrangements for the test 1 test example from Section 9 2 result file result frd prepared your current working directory therefore is examples path given in footnote 7 below 2 files hcpy_1 ps and hcpy_2 ps from the previous test in Section 9 3 3 are already located in working directory examples 3 posi
92. uary 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks 49 CalculiX cgx Installation Guide Mac OS X 11 KNOWN MAC SPECIFIC PROBLEMS 11 1 Installation of Additional Software Problems fix and future actions for installation of e gv post script viewer Installation failed cf Section 7 5 for details Fix Preview App used instead No future actions for installation of gv planned Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks 50 CalculiX cgx Installation Guide Mac OS X e REFERENCES 1 INSTALL K Wittig December 14 2013 Basic installation of cgx for Unix Linux File INSTALL downloaded with cgx package cf path to file INSTALL in Fig 1 cgx_install_path CalculiX cgx_2 8 INSTALL 2 Calculix USER S MANUAL CalculiX GraphiX Version 2 8 K Wittig January 17 2015 Link for download of PDF http www dhondt de cgx_2 8 pdf 3 Getting Started With CalculiX Tutorial J Baylor Link for download of PDF http www bconverged com content calculix doc GettingStarted pdf 4 Installation Guide CalculiX Solver ccx 2 8 on Mac OS X Mavericks B Graf February 10 2015 Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks Al 1 CalculiX cgx INSTALLATION GUIDE Calculi
93. vironments Also search the web for more instructions concerning the below discussed subjects Terminal First of all as further explained below Terminal respectively the Terminal App is a pre installed application on your Mac The notation Terminal or Terminal window here is also used for the bash bourne again shell Unix shell which is provided by the Terminal App Terminal provides the command line interface to OS X respectively In particular the compilation of function define abs x x gt 0 x x in the cgx routine extUtil h causes a compiler error A bug fix was not available at the time the installation of cgx was tested Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks CalculiX cgx Installation Guide Mac OS X e the interface for the input of Unix commands which are required for the installation of cgx Furthermore cgx may be launched from a Terminal window cf Section 8 2 for details To open the Terminal application double click the Terminal App in your Applica tions Utilities folder The Terminal icon then will appear in your Dock and a Terminal window will pop up on your screen Use Help in the menu bar of Terminal to gain further instructions how to open additional Terminal windows how to open further tabs in some window etc or visit e g the following site for additional instructio
94. ware on OS X Similar tools like Homebrew or Finck may work as well but have not been tested for the present installation of additional software Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks CalculiX cgx Installation Guide Mac OS X 2 5 Optional Additional Software ImageMagick 6 8 8 6 PSUtils p17 gs 9 10 gv 3 7 4 Firefox 35 0 Netgen 5 1 gnuplot 4 6 0 The optional additional software is summarized together with details for version and functionality in Tab 1 and will be installed in Section 7 below cf also Section 2 3 above for a brief overview of the installation procedure Prepared Installation Guide February 10 2015 B Graf CalculiX Graphical Pre and Postprocessor cgx 2 8 on Mac OS X Mavericks CalculiX cgx Installation Guide Mac OS X 3 PRE ARRANGEMENTS FOR INSTALLATION 3 1 Default Compilers GCC 5 1 and Compiler g 4 9 for Compilation of cgx The modified GCC 5 1 GNU compiler collection which is installed together with Xcode is considered as the default compiler on your Mac cf Section 5 1 for the installation of Xcode and details concerning the version and installation path of GCC 5 1 GCC 5 1 in cludes versions 5 1 of the individual compilers gcc GNU c compiler g and clang The modified GCC 5 1 however has a problem with function overloading and therefore is not suitable for the compilation of cgx Bec
Download Pdf Manuals
Related Search
Related Contents
Telex FIREFLY P350 User's Manual Kensington Comercio™ Hard Folio Case & Adjustable Stand for iPad Air™ & iPad Air™ 2 - Textile Black Philips SpeechExec transcription set LFH7177 Copyright © All rights reserved.
Failed to retrieve file