FrontISTR / Getting Started
શરૂઆત
FrontISTR વડે એક હિંજનું વિશ્લેષણ કરો અને પછી ParaView માં તાણનું વિતરણ જુઓ. સોલ્વર અને તૈયાર example હોય તો પ્રથમ પ્રયત્ન માટે mesh બનાવવાથી શરૂઆત કરવાની જરૂર નથી.
01
solver તૈયાર કરો
Windows (64-bit)
ZIP extract કરો. આગળના પગલામાં example તૈયાર કર્યા પછી fistr1.exe અને તેની સાથેની તમામ DLL example 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
સાથે આપેલું example ફરી 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
example download કરો
example 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 પરથી example તૈયાર કરવા માટે, તેને જ્યાં રાખવું હોય ત્યાં નીચેનો આખો block ચલાવો. તે archive download અને extract કરીને example 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
example folder માંથી ચલાવો
Windows binary
example folder 01_elastic_hinge માં વિશ્લેષણ ચલાવો. hecmw_ctrl.dat ત્યાં છે તેની ખાતરી કરો.
example folder માં fistr1.exe પર double-click કરો. તેની સાથે આવેલી DLL પણ એ જ folder માં હોવી જોઈએ. ચલાવવું પૂરું થતાં window બંધ થઈ જાય તો example folder માં લખાયેલા પરિણામ ParaView માં ખોલો.
log જોવા માટે
window તરત બંધ થઈ જાય અને પરિણામ ન બને, અથવા log જોવો હોય, તો example folder માં PowerShell ખોલીને નીચેનું ચલાવો:
.\fistr1.exeterminal માં ચલાવતા log ના અંતે નીચેનો message દેખાય તો વિશ્લેષણ પૂરું થયું છે. સમય તમારા PC પર આધારિત છે.
FrontISTR Completed !!કંઈક યોગ્ય રીતે ન ચાલે તો
input file ન મળે તો 01_elastic_hinge folder માંથી વિશ્લેષણ ચલાવી રહ્યા છો કે નહીં તે તપાસો. Windows પર fistr1.exe અને તમામ DLL એ જ folder માં copy થઈ છે કે નહીં તે પણ જુઓ.
Docker (Windows / macOS / Linux)
example folder 01_elastic_hinge માં વિશ્લેષણ ચલાવો. hecmw_ctrl.dat ત્યાં છે તેની ખાતરી કરો.
docker run --rm --platform linux/amd64 -v "${PWD}:/work" -w /work registry.gitlab.com/frontistr-commons/frontistr/fistr1:master fistr1
example folder માં terminal ખોલો (Windows પર PowerShell) અને command ચલાવો. example folder container માં /work પર mount થાય છે. પરિણામ તમારા local example folder માં save થાય છે.
terminal માં ચલાવતા log ના અંતે નીચેનો message દેખાય તો વિશ્લેષણ પૂરું થયું છે. સમય તમારા PC પર આધારિત છે.
FrontISTR Completed !!કંઈક યોગ્ય રીતે ન ચાલે તો
input file ન મળે તો 01_elastic_hinge folder માંથી વિશ્લેષણ ચલાવી રહ્યા છો કે નહીં તે તપાસો. Windows પર fistr1.exe અને તમામ DLL એ જ folder માં copy થઈ છે કે નહીં તે પણ જુઓ.
source માંથી build કરો
example folder 01_elastic_hinge માં વિશ્લેષણ ચલાવો. hecmw_ctrl.dat ત્યાં છે તેની ખાતરી કરો.
"$HOME/bin/fistr1"
terminal માં ચલાવતા log ના અંતે નીચેનો message દેખાય તો વિશ્લેષણ પૂરું થયું છે. સમય તમારા PC પર આધારિત છે.
FrontISTR Completed !!કંઈક યોગ્ય રીતે ન ચાલે તો
input file ન મળે તો 01_elastic_hinge folder માંથી વિશ્લેષણ ચલાવી રહ્યા છો કે નહીં તે તપાસો. Windows પર fistr1.exe અને તમામ DLL એ જ folder માં copy થઈ છે કે નહીં તે પણ જુઓ.
04
ParaView માં પરિણામ ખોલો
ParaView install કરો. File → Open પસંદ કરીને example 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 પ્રમાણે બદલાઈ શકે છે; તે example ચિત્ર સાથે હુબહુ મળવા જરૂરી નથી. model ન દેખાય તો Reset Camera અજમાવો.
તમારું પ્રથમ analysis પૂર્ણ થયું
પછી example ના load અને material settings જુઓ. manual આ model સમજાવે છે અને અન્ય analysis પ્રકારો રજૂ કરે છે.