FrontISTR / Getting Started
सुरुवात
FrontISTR वापरून बिजागराचे विश्लेषण करा आणि नंतर ParaView मध्ये ताणाचे वितरण पाहा. सॉल्वर आणि तयार उदाहरण वापरल्यास पहिल्या प्रयत्नासाठी mesh बनवण्यापासून सुरुवात करण्याची गरज नाही.
01
solver तयार करा
Windows binary किंवा Windows, macOS आणि Linux वर वापरता येणारी Docker image तयार ठेवा.
Windows (64-bit)
ZIP extract करा. पुढील टप्प्यात उदाहरण तयार केल्यानंतर fistr1.exe आणि त्यासोबतच्या सर्व DLL उदाहरणाच्या folder (01_elastic_hinge) मध्ये copy करा.
Docker (Windows / macOS / Linux)
Docker सुरू करा आणि terminal मध्ये खालील command चालवा. Windows वर Docker ला Linux container mode मध्ये वापरा आणि command PowerShell मध्ये चालवा.
docker pull --platform linux/amd64 registry.gitlab.com/frontistr-commons/frontistr/fistr1:master
सध्याची अधिकृत image amd64 साठी build केलेली आहे. Apple Silicon Mac वर ती emulation मधून चालते, त्यामुळे अधिक वेळ लागू शकतो.
source पासून build करा
या कोणत्याही operating system वर source code पासून FrontISTR build करता येतो. compiler आणि आवश्यक library install केल्यानंतर CMake environment ओळखून build configure करते.
तुमच्या distribution नुसार खालील command वापरून मूलभूत tools install करा. विद्यमान development environment वापरून MPI किंवा इतर optional library न जोडता सुरुवात करता येते.
Ubuntu / Debian
sudo apt-get update
sudo apt-get install build-essential cmake git gfortran
RHEL / Rocky Linux / AlmaLinux
sudo dnf install gcc gcc-c++ gcc-gfortran make cmake git
खालील command macOS आणि Linux वर build व install करण्याचे उदाहरण आहेत. executable तुमच्या home directory मधील bin मध्ये जातात, त्यामुळे sudo किंवा PATH बदलण्याची गरज नाही. macOS/Windows तयारी आणि optional library साठी build guide पाहा.
git clone https://gitlab.com/FrontISTR-Commons/FrontISTR.git
cd FrontISTR
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$HOME"
cmake --build build --parallel
cmake --install build
सोबत दिलेले उदाहरण पुन्हा download न करता थेट चालवता येते. खालील command ने विश्लेषण चालवा आणि नंतर ParaView मध्ये निकाल पाहण्यासाठी step 04 वर जा.
cd tutorial/01_elastic_hinge
"$HOME/bin/fistr1"
Binary आणि container सतत update होणाऱ्या master / LATEST version वापरतात. release version आणि इतर environment साठी download page पाहा. इतर version आणि environment
02
उदाहरण download करा
उदाहरणाचा ZIP download करून extract करा. 01_elastic_hinge folder मधील तीन input file वापरा.
extract केलेल्या 01_elastic_hinge folder मध्ये विश्लेषण चालवा. command line वरून extract करताना macOS आणि Linux मध्ये unzip वापरा.
01_elastic_hinge/
hecmw_ctrl.dat- input आणि output file ची ठिकाणे
hinge.cnt- material, load, restraint आणि analysis setting
hinge.msh- hinge mesh
command line वरून उदाहरण तयार करण्यासाठी, ते जिथे ठेवायचे आहे तिथे खालील पूर्ण block चालवा. तो archive download आणि extract करून उदाहरणाच्या folder मध्ये जातो. त्याच terminal मध्ये analysis command पुढे चालवता येते.
Windows / PowerShell
curl.exe -fL -o 01_elastic_hinge.zip https://www.frontistr.com/sys/files/01_elastic_hinge.zip
if ($LASTEXITCODE -eq 0) {
Expand-Archive -Path 01_elastic_hinge.zip -DestinationPath . -ErrorAction Stop
cd 01_elastic_hinge
}macOS / Linux
curl -fL -o 01_elastic_hinge.zip https://www.frontistr.com/sys/files/01_elastic_hinge.zip &&
unzip 01_elastic_hinge.zip &&
cd 01_elastic_hinge03
उदाहरणाच्या folder मधून चालवा
उदाहरणाच्या folder 01_elastic_hinge मध्ये विश्लेषण चालवा. hecmw_ctrl.dat तिथे आहे याची खात्री करा.
Windows binary
उदाहरणाच्या folder मधील fistr1.exe वर double-click करा. त्यासोबतच्या DLL सुद्धा त्याच folder मध्ये ठेवा. चालवणे संपल्यावर window बंद झाली तर उदाहरणाच्या folder मध्ये लिहिलेले निकाल ParaView मध्ये उघडा.
log पाहण्यासाठी
window लगेच बंद झाली आणि निकाल तयार झाला नाही, किंवा log पाहायचा असेल, तर उदाहरणाच्या folder मध्ये PowerShell उघडून खालील चालवा:
.\fistr1.exeDocker (Windows / macOS / Linux)
docker run --rm --platform linux/amd64 -v "${PWD}:/work" -w /work registry.gitlab.com/frontistr-commons/frontistr/fistr1:master fistr1उदाहरणाच्या folder मध्ये terminal उघडा (Windows वर PowerShell) आणि command चालवा. उदाहरणाचा folder container मधील /work वर mount होतो. निकाल तुमच्या local उदाहरणाच्या folder मध्ये save होतात.
terminal मध्ये चालवताना log च्या शेवटी खालील message दिसल्यास विश्लेषण पूर्ण झाले आहे. लागणारा वेळ तुमच्या PC वर अवलंबून आहे.
FrontISTR Completed !!काही नीट चालत नसल्यास
input file सापडत नसतील तर 01_elastic_hinge folder मधून विश्लेषण चालवत आहात का ते तपासा. Windows वर fistr1.exe आणि सर्व DLL त्याच folder मध्ये copy केले आहेत का तेही तपासा.
04
ParaView मध्ये परिणाम उघडा
ParaView install करा. File → Open निवडा आणि उदाहरणाच्या folder मधील खालील file उघडा.
hinge_vis_psf.0001.pvtu
निकाल त्याच 01_elastic_hinge folder मध्ये लिहिले जातात. शेजारचा hinge_vis_psf.0001 folder देखील आवश्यक आहे, त्यामुळे .pvtu file एकटाच हलवू नका. 0000 ही सुरुवातीची अवस्था आहे आणि 0001 हा load लागू केल्यानंतरचा निकाल आहे.
स्क्रीन उदाहरण: macOS वरील ParaView 6.1.0. Windows आणि Linux वरही मूलभूत पायऱ्या सारख्याच आहेत.
-
04 / 1
file उघडल्यानंतर लगेचचे दृश्य. डावीकडे Apply वर click करा.
-
04 / 2
Apply वर click केल्यानंतर बिजागराची geometry दिसते.
-
04 / 3
वरच्या toolbar मध्ये Solid Color ला NodalMISES मध्ये बदला; त्यामुळे von Mises ताणाचे वितरण दिसेल.
रंग आणि background ParaView settings नुसार बदलू शकतात; ते उदाहरणातील चित्रासारखेच असण्याची गरज नाही. model दिसत नसेल तर Reset Camera वापरून पाहा.
तुमचे पहिले analysis पूर्ण झाले
यानंतर उदाहरणातील load आणि material settings पाहा. manual या model चे स्पष्टीकरण देते आणि इतर analysis प्रकारांची ओळख करून देते.