Skip to content
{{ message }}

Instantly share code, notes, and snippets.

Foad Sojoodi Farimani Foadsf

Created May 4, 2022
View thin_shell.md

I want to design a vacuum table to clamp down a very thin plate and I want to know the stresses and deformations due to the atmospheric pressure. Consider the simplified model below:




a disk with radius of $r_2$ and an insignificant thickness of $h &lt;&lt; r_2$ over a vacuum hole with a radius of $r_1$ with a $\rho_1$ filleted edge. I presume after deformation the disk should look like this:

Created Feb 15, 2022
Implementing Brent solver instead of Newton method in thermoI.H to resolve maximum number of iterations error --> https://scicomp.stackexchange.com/questions/30080/implementing-brent-solver-instead-of-newton-method-in-thermoi-h-to-resolve-maxim
View deletedPost.md

Someone in [this page][1] has claimed to successfully implement [Brent solver][2] in [thermoI.H][3] instead of Newton solver to resolve the infamous

FOAM FATAL ERROR: Maximum number of iterations exceeded

issue. The part of code he is referring to is:

template<class Thermo, template<class> class Type>
inline Foam::scalar Foam::species::thermo<Thermo, Type>::T


(

Last active Aug 6, 2021
Installing WxMaxima as a portable software on a Windows machine without admin rights.
View WxMaximaPortable.md
• Download the latest version of the software from the official website
• unarchive the .exe file with 7zip or any other software you have
• then go to the unarchived folder and find the bin\wxmaxima.exe, create a shortcut to on your desktop so you can run it easily next time
Last active Jun 21, 2020
small clinfo, fetching OpenCL platfroms and theri device's infomation
View CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
 cmake_minimum_required(VERSION 3.1) project(OpenCL_Example) find_package(OpenCL REQUIRED) include_directories(${OpenCL_INCLUDE_DIRS}) link_directories(${OpenCL_LIBRARY}) add_executable(main main.c) target_include_directories(main PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) Created Apr 4, 2020 test HTML iframe asciidoc View README.md Unfortunately, the field of mechanical engineering, in general, has been very alien towards Free, Libre, and Open-Source CAD Software (FLOSS). As a FLOSS user and advocate, I have been personally harassed and ridiculed in my workplace many times in real life. But here on the internet, we should not tolerate bigotry and suppression. The r/cad subreddit is very hostile against Free, Libre, and Open-Source CAD Software (FLOSS). They had previously banned Kurt Kremitzki, one of the FreeCAD developers and Debian package maintainers (this tweet). While ago I posted this in support of FLOSS CAD/CAE developers and inviting others to contribute by donation. However, my post was immediately removed with no explanation as I have described [here](https://www.reddit.com/r/opensource/comments/ckkl5e/supporting_free_libre_and_open_sourc Created Mar 27, 2020 MySQL While Loop View example.sql This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters  SET @year = 2020; DELIMITER$\$ DROP PROCEDURE IF EXISTS reapeatEvent; CREATE PROCEDURE reapeatEvent() BEGIN WHILE (@year < 2030) DO
Last active Jun 8, 2022 — forked from nrollr/MySQL_macOS_Sierra.md
Installing MySQL and MySQL Workbench on macOS using Homebrew
View README.md

Preface

This procedure explains how to install MySQL and MySQL Workbench using Homebrew on macOS. This is a fork of these instructions, to make them more concise and solve the issues reported here.

MySQL

To install MySQL enter :

• brew install mysql
• brew services start mysql
• then run mysql_secure_installation and follow the instructions
Created Mar 24, 2020
trying to git branch, checkout, and rename a folder in abash script
View test_file_one.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
 test
Last active Mar 8, 2020 — forked from JannieT/dev.py
Environment for scripting LibreOffice with Python
View dev.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
 import uno import sys def createUnoService(id): ctx = getContext() return ctx.ServiceManager.createInstanceWithContext(id, ctx) def getContext(): # get the uno component context from the PyUNO runtime localContext = uno.getComponentContext()