ආරම්භ කිරීම

FrontISTR / Getting Started

ආරම්භ කිරීම

FrontISTR භාවිතයෙන් සරනේරුවක් විශ්ලේෂණය කර ParaView තුළ stress distribution එක බලන්න. solver එක සහ සූදානම් example එක තිබේ නම් පළමු වරට mesh එක සෑදීමෙන් ආරම්භ කිරීමට අවශ්‍ය නැත.

පියවර බලන්න

සරනේරුවේ von Mises stress distribution එක; සිදුරු වටා stress concentration පෙනේ.
සරනේරුවට linear static analysis එකක් ධාවනය කරන්න. ඉලක්කය වන්නේ nodal von Mises stress වන NodalMISES color contour එකක් ලෙස පෙන්වීමයි.

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 එක භාවිත කර PowerShell තුළ command එක ධාවනය කරන්න.

docker pull --platform linux/amd64 registry.gitlab.com/frontistr-commons/frontistr/fistr1:master

දැනට ඇති නිල image එක amd64 සඳහා build කර ඇත. Apple Silicon Mac මත එය emulation හරහා ධාවනය වන නිසා වැඩි කාලයක් ගත විය හැක.

Source code එකෙන් build කරන්න

මෙම operating system ඕනෑම එකක FrontISTR source code එකෙන් ඔබම build කළ හැක. compiler සහ අවශ්‍ය library ස්ථාපනය කළ පසු CMake environment එක හඳුනාගෙන build එක configure කරයි.

ඔබේ distribution එකට අදාළ පහත command භාවිතයෙන් මූලික tools ස්ථාපනය කරන්න. දැනට ඇති 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 වලින් analysis ධාවනය කර පසුව step 04 වෙත ගොස් ParaView තුළ result බලන්න.

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

Source code එකෙන් build කරන්න

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 තුන භාවිත කරන්න.

Example download කරන්න (ZIP)

Extract කළ 01_elastic_hinge folder එකේ analysis ධාවනය කරන්න. 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 එක සූදානම් කිරීමට, 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 එකෙන් run කරන්න

Example folder (01_elastic_hinge) තුළ analysis එක ධාවනය කරන්න. hecmw_ctrl.dat එහි ඇති බව තහවුරු කරන්න.

Windows binary

Example folder එකේ fistr1.exe double-click කරන්න. සමඟ ඇති DLL ද එම folder එකේම තිබිය යුතුය. ධාවනය අවසානයේ window එක වැසී ගියහොත් example folder එකට ලියූ result ParaView තුළ විවෘත කරන්න.

Log එක බලන්න

Window එක වහා වැසී result නොලැබේ නම් හෝ log එක බලන්න අවශ්‍ය නම් example folder එකේ PowerShell විවෘත කර පහත දේ ධාවනය කරන්න.

.\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 එක ධාවනය කරන්න. Example folder එක container තුළ /work වෙත mount වන අතර result local example folder එකේ සුරැකේ.

Terminal එකෙන් ධාවනය කළ විට log එකේ අවසානයේ පහත message එක පෙනේ නම් analysis අවසන්ය. ගතවන කාලය PC එක අනුව වෙනස් වේ.

FrontISTR Completed !!
යමක් ක්‍රියා නොකරන්නේ නම්

Input file සොයාගත නොහැකි නම් 01_elastic_hinge folder එකෙන් analysis ධාවනය කරන බව තහවුරු කරන්න. Windows මත fistr1.exe සහ සමඟ ඇති සියලු DLL එම folder එකට copy කර ඇති බවද බලන්න.

04

ParaView තුළ result එක විවෘත කරන්න

ParaView ස්ථාපනය කරන්න. File → Open තෝරා example folder එකේ පහත file එක විවෘත කරන්න.

hinge_vis_psf.0001.pvtu

Result එකම 01_elastic_hinge folder එකට ලියනු ලැබේ. අසල ඇති hinge_vis_psf.0001 folder එකත් අවශ්‍ය බැවින් .pvtu file එක පමණක් වෙන තැනකට ගෙන නොයන්න. 0000 ආරම්භක state එක වන අතර 0001 load යෙදූ පසු result එකයි.

ParaView download කරන්න

තිර දසුන්: macOS මත ParaView 6.1.0. මූලික පියවර Windows සහ Linux මතත් එකසේය.

  1. 04 / 1

    File එක විවෘත කළ වහාම. වම් පැත්තේ Apply click කරන්න.

    File එක විවෘත කළ වහාම. වම් පැත්තේ Apply click කරන්න.
  2. 04 / 2

    Apply click කළ පසු සරනේරුවේ geometry එක පෙන්වයි.

    Apply click කළ පසු සරනේරුවේ geometry එක පෙන්වයි.
  3. 04 / 3

    ඉහළ toolbar එකේ Solid Color, NodalMISES ලෙස මාරු කළ විට von Mises stress distribution එක පෙන්වයි.

    ඉහළ toolbar එකේ Solid Color, NodalMISES ලෙස මාරු කළ විට von Mises stress distribution එක පෙන්වයි.

Color සහ background ParaView setting අනුව වෙනස් විය හැකි අතර example රූපයට හරියටම ගැළපීමට අවශ්‍ය නැත. model එක නොපෙනේ නම් Reset Camera උත්සාහ කරන්න.

ඔබේ පළමු analysis එක සම්පූර්ණයි

ඊළඟට example එකේ load සහ material settings බලන්න. manual එක මෙම model එක පැහැදිලි කර වෙනත් analysis type හඳුන්වා දෙයි.