en
Feedback
1 533
Subscribers
No data24 hours
No data7 days
+130 days
Posts Archive
عبارت با قاعده یا همون رگولار اکسپرشن خودمون، به زبون آدمیزاد. (قسمت اول) https://youtu.be/oy0XCgPYpwo

@OpenFOAM4Iranian ترمینال لینوکس می تونه خیلی از کارهای تکراری و حتی پردردسر رو براتون راحت کنه. برای مثال برای پیدا کردن پوشه ها و فایلها از دستور find بهمراه regex استفاده کنید. مثلا پیدا کردن همه ی فایلها و پوشه هایی که اسم foam داخلش بکار رفته find -name "*foam*" پیدا کردن همه ی فایلها و پوشه هایی که اسم foam داخلش استفاده نشده find ! -name "*foam*" پیدا کردن فقط پوشه هایی که اسم foam داخلش استفاده نشده find ! -name "*foam*" -type d پیدا کردن فقط فایلهایی که اسم foam داخلش استفاده نشده find ! -name "*foam*" -type f پیدا کردن پوشه های خالی find . -type d -empty -print با استفاده از دستور پایپ | می تونید خروجی یه فرمان رو به فرمان دیگه منتقل کنید. مثلا برای حذف همه ی پوشه های خالی بصورت زیر میشود عمل کرد. find . -type d -empty -print | xargs rm -rf در واقع دستور اول همه ی پوشه های خالی رو پیدا می کند. سپس نتایج به دستور دوم منتقل می شود و دستور دوم که همون دستور حذف (rm) هست آنرا حذف می کند. همچنین ابزار sed برای تغییر فایلهای متنی خیلی پر کاربرد هست. مثلا شما می خواهید یسری فایلها رو بخوانید و داخل این فایلها تغییرات یکسانی اعمال کنید و سپس انها رو با نام جدید ذخیره کنید. میشه بصورت زیر عمل کرد. cat fileNames.txt | while read i; do echo $i sed -n '0~10p' $i > $i"new" done فرض بر این گرفته شده که آدرس فایلها در فایل متنی با نام fileName.txt ذخیره شده. شما می تونید آدرس فایلها رو از طریق find بیابید سپس دستور پایپ این اسم فایلها رو دونه دونه میده به حلقه و داخل حلقه با دستور echo نام اون فایل داخل ترمینال چاپ میشه و سپس با دستور sed از هر ۱۰ خط یه خط به فایل دوم منتقل میشه. با دستور < خروجی در فایل جدیدی ذخیره می شه. اسم فایل جدید شبیه اسم فایل قبلی است و در همون آدرس فایل قبلی ذخیره می شه. تنها عبارت new به انتهای فایل قبلی اضافه شده است.

#Convection_Scheme linear: second order, unbounded. LUST: blended 75% linear/ 25%linearUpwind scheme, that requires discretisation of the velocity gradient to be specified. linearUpwind: second order, upwind-biased, unbounded (but much less so than linear), that requires discretisation of the velocity gradient to be specified. limitedLinear: linear scheme that limits towards upwind in regions of rapidly changing gradient; requires a coefficient, where 1 is strongest limiting, tending towards linear as the coefficient tends to 0. upwind: first-order bounded, generally too inaccurate to be recommended. 1- The bounded variant of the Gauss scheme promotes better convergence specially in steady-state solvers. 2- V-schemes are specialised versions of schemes designed for vector fields, resulting in the strongest limiter being calculated which is most stable but arguably less accurate. More details here: https://cfd.direct/openfoam/user-guide/v6-fvschemes/

#swak4Foam tested on OpenFOAM-8.0 and OpenFOAM-2006 For installation: 1-copy and unpack at the user directory for example: /user/name/OpenFOAM/name-v2006/ 2-run the following commands: ./maintainanceScripts/compileRequirements.sh ./AllwmakeAll

#تحریم #چاپـمقاله #sanction تحریم های ناعادلانه امریکا، ایرانیان رو از برخی امکانات بدیهی هم محروم کرده. مقاله ی مشترک با یکی از اساتید داخل ایرات برای داوری به مجله Asia-Pacific Journal of Chemical Engineering ارسال شد. پیش از شروع داوری نامه ی زیر از طرف Editor دریافت شد. طبق بند 2-a از اونجایی که دانشگاه ها داخل ایران دولتی هستند و اساتید دانشگاه کارمند دولت هستند. عملا چاپ مقالات داخل مجلات وایلی برای اساتید ایرانی امکانپذیر نمی باشد. Dear Dr. samkhaniani: This journal welcomes contributions without restrictions from all over the world. However, we must follow sanctions law and regulations. During routine processing of your manuscript, it was recognized that one or more authors reside in a nation currently under sanctions. This should not impede the management of the paper by Wiley, the journal's publisher, if: (1) neither the author nor the entity with whom the author is affiliated is on any of the following lists: http://data.europa.eu/euodp/en/data/dataset/consolidated-list-of-persons-groups-and-entities-subject-to-eu-financial-sanctions, http://hmt-sanctions.s3.amazonaws.com/sanctionsconlist.htm, https://www.treasury.gov/resource-center/sanctions/SDN-List/Pages/default.aspx, or https://dfat.gov.au/international-relations/security/sanctions/Pages/consolidated-list.aspx, or from North Korea or Crimea; and (2)(a) is not employed by the government of Iran, Syria or Cuba; or 2(b)(i) is preparing articles in their "personal capacity" (in other words, "not as an official representative or otherwise on behalf of a sanctioned government"); or (2)(b)(ii) are employed at an academic or research institution where research or education is the primary function of the entity. Please send us an e-mail declaring that individual authors residing in the country under sanctions are not on any of the above lists or from North Korea or Crimea and comply with at least one of the conditions (2)(a), 2(b)(i) or 2(b)(ii). Once we receive this confirmation from you, Wiley will be able to continue the processing of your manuscript. We apologize for any inconvenience caused by this procedure. If you have any questions, please contact the journal editorial office. Best wishes Hong Mei Yao

شبیه سازی جریان با روش immersed boundary method در اپنفوم #immersed_boundary #ibm http://openfoam.blogfa.com/post/108

لینک کلیه ویدئوها به منظور دسترسی ساده تر، به تفکیک عنوان درسی در فایل بالا تجمیع شده است. 🚩ghazanfarian.ir 🚩@VideoLecturesZNU 🚩https://www.aparat.com/ghazanfarianj

✴️توتوریالهای آموزش مش زنی با نرم افزار سالومه #salome #mesh_generation @OpenFOAM4Iranian

✅ شبیه سازی سقوط جسم در داخل آب #overset #overInterDyMFoam @OpenFOAM4Iranian

#OpenFOAM_Conference

#linux #command to #copy all folders in a directory except one file or folder rsync -av --progress folder1/ backupfolder1/ --exclude exceptdir1

@OpenFOAM4Iranian احتمالا می دانید که ابزار blockMesh در داخل اپنفوم بصورت موازی اجرا نمی شود. گروهی کدی را توسعه دادند تا اجرای موازی blockMesh در اپنفوم فراهم بشود. این کد از لینک زیر قابل دسترس هست. https://github.com/venugopalansgr/OpenFOAM/tree/master/parallelBlockMesh #parallelBlockMesh

✴️ اندرکنش موج با سازه با حلگر interFoam #dynamicMesh #interFoam #wave ⚠️از نسخه اپنفوم ۶ به بالا، بخش دینامیک مش به حلگر اصلی افزوده شده و دیگر ورژن interDyMFoam موجود نیست! ✅ از نسخه ی ۶ بجای حلگرهای جانبی مثل olaFoam میتونید موج را با همون حلگر interFoam شبیه سازی کنید. شرط مرزی موج داخل اپنفوم لحاظ شده است. @OpenFOAM4Iranian

✴️ محاسبه ی ویژگیهای سیال در جریان تراکم پذیر #compressibleFlow #supersonicـcalculator http://www.dept.aoe.vt.edu/~devenpor/aoe3114/calc.html

✴️ اپنفوم برای نصب روی ویندوز #OpenFOAM #windows https://www.openfoam.com/download/install-binary-windows.php

✴️برخی لینک های مفید برای یادگیری اپنفوم #OpenFOAM http://nimasamkhaniani.ir/openfoam/useful-links-for-learning-openfoam/?lang=fa

@OpenFOAM4Iranian برخی دستورات رایج برای اجرا در محیط ترمینال #command #bash

🚨 پست های مقدماتی برای آموزش اپن فوم: ✴️ یاد گیری اپن فوم را از کجا شروع کنم؟ http://openfoam.blogfa.com/post/85 ✴️ اپن فوم را از کجا دانلود کنم؟ چه ورژنهایی از اپن فوم موجود است؟ http://openfoam.blogfa.com/post/81 ✴️ کتاب اپن فوم را چطور تهیه کنم؟ http://nimasamkhaniani.ir/openfoam/numerical-simulation-using-openfoam/?lang=fa ✴️ دانلود اوبنتو حاوی اپنفوم ۳ http://www.mediafire.com/file/eif78sjw04t6ra8/ubuntu14.04-LTSC.iso ✴️ چطور با خطاها در استفاده از اپن فوم مواجه شوم؟ http://openfoam.blogfa.com/post/91 ✴️ مثالها و آموزشهای بیشتر و اطلاعات دوره های آموزشی را کجا بیابم؟ http://openfoam.blogfa.com , www.nimasamkhaniani.ir

@OpenFOAM4Iranian استفاده از حلگر chtMultiRegionFoam برای شبیه سازی انتقال حرارت چندگانه #chtMultiRegionSimpleFoam #heatTransfer http://nimasamkhaniani.ir/openfoam/simulation-of-conjugate-heat-transfer/?lang=fa