શરૂઆત

FrontISTR / Getting Started

શરૂઆત

FrontISTR વડે hinge નું analysis કરો અને પછી ParaView માં stress distribution જુઓ. solver અને તૈયાર example download કર્યા પછી પ્રથમ run માટે mesh બનાવવાથી શરૂઆત કરવાની જરૂર નથી.

પગલાં જુઓ

hinge માં von Mises stress distribution, જેમાં છિદ્રોની આસપાસ stress concentration દેખાય છે.
hinge નું linear static analysis ચલાવો. nodal von Mises stress એવા NodalMISES ને રંગીન contour plot તરીકે બતાવવાનું લક્ષ્ય છે.

01

solver તૈયાર કરો

Windows binary અથવા Windows, macOS અને Linux પર ઉપયોગ કરી શકાય તેવી Docker image તૈયાર રાખો.

Windows (64-bit)

Windows માટે download કરો

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 વડે મૂળભૂત tool 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 setup અને 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 વડે analysis ચલાવો અને પછી ParaView માં પરિણામ જોવા માટે પગલું 04 પર જાઓ.

cd tutorial/01_elastic_hinge
"$HOME/bin/fistr1"

source માંથી build કરો

binary અને container સતત update થતા master / LATEST version વાપરે છે. tagged release અને અન્ય environment માટે download page જુઓ. અન્ય version અને environment

02

example download કરો

example ZIP download કરીને extract કરો. 01_elastic_hinge folder માં આવેલી ત્રણ input file વાપરો.

example download કરો (ZIP)

extract કરેલા 01_elastic_hinge folder માં analysis ચલાવો. macOS/Linux પર command-line extraction માટે 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_hinge

03

example folder માંથી ચલાવો

01_elastic_hinge example folder માં analysis ચલાવો. hecmw_ctrl.dat એ folder માં છે તેની ખાતરી કરો.

Windows binary

example folder માં fistr1.exe પર double-click કરો. તેની સાથે આવેલી DLL પણ એ જ folder માં હોવી જોઈએ. run પૂરો થતાં window બંધ થઈ જાય તો example folder માં લખાયેલા result ParaView માં ખોલો.

log જોવા માટે

window તરત બંધ થઈ જાય અને result ન બને, અથવા log જોવો હોય, તો example folder માં PowerShell ખોલીને નીચેનો command ચલાવો:

.\fistr1.exe

Docker (Windows / macOS / Linux)

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 ચલાવો. તે folder ને container માં /work પર mount કરે છે. result તમારા local example folder માં save થાય છે.

terminal માં ચલાવતા log ના અંતે નીચેનો message દેખાય તો analysis પૂર્ણ થયું છે. run time તમારા 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

result એ જ 01_elastic_hinge folder માં લખાય છે. બાજુનો hinge_vis_psf.0001 folder પણ જરૂરી છે, તેથી .pvtu file ને એકલી ખસેડશો નહીં. 0000 શરૂઆતની સ્થિતિ છે અને 0001 load લાગ્યા પછીનો result છે.

ParaView download કરો

Screenshots: macOS પર ParaView 6.1.0. Windows અને Linux પર પણ મૂળભૂત પગલાં સમાન છે.

  1. 04 / 1

    file ખોલ્યા પછી તરતનું દૃશ્ય. ડાબી બાજુ Apply પર click કરો.

    file ખોલ્યા પછી તરતનું દૃશ્ય. ડાબી બાજુ Apply પર click કરો.
  2. 04 / 2

    Apply પર click કર્યા પછી hinge geometry દેખાય છે.

    Apply પર click કર્યા પછી hinge geometry દેખાય છે.
  3. 04 / 3

    ઉપરના toolbar માં Solid Color ને NodalMISES માં બદલો જેથી von Mises stress distribution દેખાય.

    ઉપરના toolbar માં Solid Color ને NodalMISES માં બદલો જેથી von Mises stress distribution દેખાય.

રંગ અને background ParaView setting પ્રમાણે બદલાઈ શકે છે; તે example જેવા જ હોવા જરૂરી નથી. model ન દેખાય તો Reset Camera અજમાવો.

તમારું પ્રથમ analysis પૂર્ણ થયું

પછી example ના load અને material setting જુઓ. manual આ model સમજાવે છે અને અન્ય analysis પ્રકારો રજૂ કરે છે.