Notifications
Clear all

[Sticky] File presentasi hari ke-3

ariham
(@ariham)
Member Admin

Silahkan unduh file presentasi tentang meshing di OpenFOAM di link berikut ini

Quote
Topic starter Posted : 13/01/2021 1:26 am
fiber liked
fiber
(@fiber)
New Member

Terima kasih

ReplyQuote
Posted : 13/01/2021 8:48 am
ridanura
(@ridanura)
Active Member

Izin bertanya.

 

Saya tidak berhasil meng-clone github ke folder run.

_____________________________________________

ridanura@rida:~$ run
ridanura@rida:~/OpenFOAM/ridanura-8/run$ git clone https://github.com/inofoam/WSOF1.git
Cloning into 'WSOF1'...
remote: Enumerating objects: 50, done.
remote: Counting objects: 100% (50/50), done.
remote: Compressing objects: 100% (38/38), done.
error: insufficient permission for adding an object to repository database /mnt/d/OpenFOAM/ridanura-8/run/WSOF1/.git/objects
fatal: failed to write object
fatal: unpack-objects failed

 

__________________________________________________

 

kira-kira salahnya di mana  ya?

 

terima kasih

 

 

ReplyQuote
Posted : 13/01/2021 10:26 am
ariham
(@ariham)
Member Admin

@ridanura Mohon maaf karena baru bisa balas.

Ada beberapa langkah untuk memperbaiki error tersebut. Akan tetapi ada cara yang lebih mudah supaya kita bisa download file di github.

Silahkan liat di gambar di lampiran.

  1. Buka repo github inofoam di https://github.com/inofoam/WSOF1
  2. Lihat gambar di lampiran. Kemudian klik Code yang berwarna hijau.
  3. Kemudian pilih Download ZIP dan klik untuk mendownload file WSOF1-main.zip
  4. Extract file WSOF1-main.zip. Kemudian rename folder tersebut dari WSOF1-main menjadi WSOF1
  5. Copy dan paste folder WSOF1 ke dalam folder run

Semoga penjelasan di atas membantu.

 

This post was modified 9 months ago by ariham
ReplyQuote
Topic starter Posted : 14/01/2021 7:35 am
ridanura
(@ridanura)
Active Member

terima kasih jawabannya Pak Ari.

 

sebenarnya kemarin saya juga sudah coba cara manual seperti itu. tapi error lanjutannya terjadi ketika me-run blockMesh. berikut tampilannya:

 

_______________________________

 

ridanura@rida:~$ run
ridanura@rida:~/OpenFOAM/ridanura-8/run$ cd WSOF1/
ridanura@rida:~/OpenFOAM/ridanura-8/run/WSOF1$ ls
101BLOCKMESH LICENSE README.md
ridanura@rida:~/OpenFOAM/ridanura-8/run/WSOF1$ cd 101BLOCKMESH/C1
ridanura@rida:~/OpenFOAM/ridanura-8/run/WSOF1/101BLOCKMESH/C1$ ls
README.FIRST system
ridanura@rida:~/OpenFOAM/ridanura-8/run/WSOF1/101BLOCKMESH/C1$ nano README.FIRST
ridanura@rida:~/OpenFOAM/ridanura-8/run/WSOF1/101BLOCKMESH/C1$ blockMesh
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 8
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
Build : 8-340defec456f
Exec : blockMesh
Date : Jan 14 2021
Time : 0834
Host : "rida"
PID : 311
I/O : uncollated
Case : /mnt/d/OpenFOAM/ridanura-8/run/WSOF1/101BLOCKMESH/C1
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Creating block mesh from
"system/blockMeshDict"
Using #calcEntry at line 34 in file "/mnt/d/OpenFOAM/ridanura-8/run/WSOF1/101BLOCKMESH/C1/system/blockMeshDict"
Using #codeStream with "/mnt/d/OpenFOAM/ridanura-8/run/WSOF1/101BLOCKMESH/C1/dynamicCode/platforms/linux64GccDPInt32Opt/lib/libcodeStream_55901ee8754faa7266ca8fc7a65319beb51cd312.so"
Creating new library in "dynamicCode/_55901ee8754faa7266ca8fc7a65319beb51cd312/platforms/linux64GccDPInt32Opt/lib/libcodeStream_55901ee8754faa7266ca8fc7a65319beb51cd312.so"
Invoking "wmake -s libso /mnt/d/OpenFOAM/ridanura-8/run/WSOF1/101BLOCKMESH/C1/dynamicCode/_55901ee8754faa7266ca8fc7a65319beb51cd312"
wmake libso /mnt/d/OpenFOAM/ridanura-8/run/WSOF1/101BLOCKMESH/C1/dynamicCode/_55901ee8754faa7266ca8fc7a65319beb51cd312
make: Warning: File 'Make/options' has modification time 0.23 s in the future
make: Warning: File 'Make/linux64GccDPInt32Opt/options' has modification time 1.4 s in the future
make: warning: Clock skew detected. Your build may be incomplete.
make: Warning: File 'Make/linux64GccDPInt32Opt/options' has modification time 0.96 s in the future
sed: couldn't open temporary file Make/linux64GccDPInt32Opt/sedtrTCbs: Permission denied
make: [/opt/openfoam8/wmake/makefiles/files Make/linux64GccDPInt32Opt/sourceFiles] Error 4
Make/linux64GccDPInt32Opt/sourceFiles
missing separator. Stop.
Make/linux64GccDPInt32Opt/sourceFiles *** missing separator. Stop.

--> FOAM FATAL IO ERROR:
Failed wmake "dynamicCode/_55901ee8754faa7266ca8fc7a65319beb51cd312/platforms/linux64GccDPInt32Opt/lib/libcodeStream_55901ee8754faa7266ca8fc7a65319beb51cd312.so"

file: /mnt/d/OpenFOAM/ridanura-8/run/WSOF1/101BLOCKMESH/C1/system/blockMeshDict from line 17 to line 32.

From function static void (* FoamgetFunction(const Foam::dictionary&, const FoamOstream&, const Foam::dictionary&)
in file db/dictionary/functionEntries/codeStream/codeStream.C at line 211.

FOAM exiting

ReplyQuote
Posted : 14/01/2021 8:29 am
kee2021
(@kee2021)
Member Admin

@ridanura kalau menjalankan blockMesh di kasus lain (misalnya cavity di icoFoam) apakah bisa? ingin memastikan dulu - trims

ReplyQuote
Posted : 14/01/2021 12:28 pm
ridanura
(@ridanura)
Active Member

blockMesh di cavity bisa, Pak. Baik pas hari ke-2 workshop maupun hari ini

ReplyQuote
Posted : 14/01/2021 12:30 pm
kee2021
(@kee2021)
Member Admin
Posted by: @ridanura

Creating new library in "dynamicCode/_55901ee8754faa7266ca8fc7a65319beb51cd312/platforms/linux64GccDPInt32Opt/lib/libcodeStream_55901ee8754faa7266ca8fc7a65319beb51cd312.so"
Invoking "wmake -s libso /mnt/d/OpenFOAM/ridanura-8/run/WSOF1/101BLOCKMESH/C1/dynamicCode/_55901ee8754faa7266ca8fc7a65319beb51cd312"
wmake libso /mnt/d/OpenFOAM/ridanura-8/run/WSOF1/101BLOCKMESH/C1/dynamicCode/_55901ee8754faa7266ca8fc7a65319beb51cd312
make: Warning: File 'Make/options' has modification time 0.23 s in the future
make: Warning: File 'Make/linux64GccDPInt32Opt/options' has modification time 1.4 s in the future
make: warning: Clock skew detected. Your build may be incomplete.
make: Warning: File 'Make/linux64GccDPInt32Opt/options' has modification time 0.96 s in the future
sed: couldn't open temporary file Make/linux64GccDPInt32Opt/sedtrTCbs: Permission denied
make: [/opt/openfoam8/wmake/makefiles/files Make/linux64GccDPInt32Opt/sourceFiles] Error 4
Make/linux64GccDPInt32Opt/sourceFiles
missing separator. Stop.
Make/linux64GccDPInt32Opt/sourceFiles *** missing separator. Stop.

--> FOAM FATAL IO ERROR:
Failed wmake "dynamicCode/_55901ee8754faa7266ca8fc7a65319beb51cd312/platforms/linux64GccDPInt32Opt/lib/libcodeStream_55901ee8754faa7266ca8fc7a65319beb51cd312.so"

Kalau dari log error nya, masalahnya terkait dynamicCode. Ada indikasi saat build/install openfoam mungkin tdk lengkap / belum selesai

make: warning: Clock skew detected. Your build may be incomplete.

Problem terkait "build may be incomplete" pernah juga dibahas di link sbb:

https://www.cfd-online.com/Forums/openfoam/86848-error-message-after-wmake.html

dan disarankan utk install ulang.

Saran utk build / install ulang:

  1. Backup data2 simulasi selama workshop sejauh ini
  2. di terminal, ketik "foam" utk mengarahkan ke direktori instalasi openfoam
  3. utk install/build ulang, ketik "./Allwmake > build.log &"
  4. Log dari instalasi dapat dimonitor dalam file "build.log"

Mas @ariham mungkin bisa kasih saran juga sebaiknya bgmn?

trims

ReplyQuote
Posted : 14/01/2021 1:01 pm
ridanura
(@ridanura)
Active Member

Terima kasih banyk, Pak. saya coba install ulang lagi

ReplyQuote
Posted : 14/01/2021 1:15 pm
ariham
(@ariham)
Member Admin

Terima kasih atas penjelasannya Pak Zaki.

Error yg mbak @ridanura ini terkait dengan codeStream

Di sini kegagalan dimungkinkan karena make tidak terinstall di sistem. Mungkin pertama-tama coba langkah berikut untk install make. Setelah selesai instalasi, coba lagi untuk ketik blockMesh. Semoga ini bisa menjadi solusi


sudo apt-get remove make
sudo apt-get install make

atau bisa juga:

sudo apt-get install --reinstall make

This post was modified 9 months ago by ariham
ReplyQuote
Topic starter Posted : 14/01/2021 1:15 pm
kee2021 liked
ridanura
(@ridanura)
Active Member

oya, Pak. kalau ada error seperti ini maksudnya apa ya?

 

_______________________

 

ridanura@rida:~$ foam
ridanura@rida:/opt/openfoam8$ ./Allwmake>build.log &
[1] 915
ridanura@rida:/opt/openfoam8$ -bash: build.log: Permission denied

 

______________________________

 

Apa sebaiknya uninstall dulu semua lalu mengulangi proses instalasi dari awal?

 

*maaf pertanyaan teknis, masih newbie

ReplyQuote
Posted : 14/01/2021 1:20 pm
kee2021
(@kee2021)
Member Admin

@ridanura solusi dari mas @ariham lebih elegan, dan tidak perlu build ulang 🙂 Thanks mas @ariham

ReplyQuote
Posted : 14/01/2021 1:21 pm
ariham liked
ariham
(@ariham)
Member Admin

@ridanura itu karena tidak terketik sudo sebelum perintah ./Allwmake.

Akan tetapi saran saya adalah coba dulu langkah install make. Kalo tidak juga berhasil baru mungkin install ulang OpenFOAM.

ReplyQuote
Topic starter Posted : 14/01/2021 1:23 pm
ridanura
(@ridanura)
Active Member

@ariham terima kasih jawabannya. sudah saya coba, tapi gagal juga.

 

mungkin mau saya unistall dulu saja semuanya

ReplyQuote
Posted : 14/01/2021 1:25 pm
kee2021 liked
ariham
(@ariham)
Member Admin

@ridanura Sip. Semoga berhasil setelah install ulang OpenFOAM. Jangan kapok walau sering dapat error ya....

Saya dulu juga begitu hehehe. Tapi dari error situlah saya menjadi ingin tahu solusinya. Semangat....

ReplyQuote
Topic starter Posted : 14/01/2021 1:28 pm
kee2021 liked
Share: