Renouveau 2.2 Mac OS

< Installation‎ Mac OS
  1. 1 Known Guides For Building OpenFOAM 2.2.2 on Mac OS X. The known guides for building OpenFOAM 2.2.2 on Mac OS X are as follows: The current one you're reading: Installation/Mac OS/OpenFOAM 2.2.2 - which explains how to build using GCC 4.6 from Macports. From Alexey Matveichev's blog: Building OpenFOAM on OS X, tested on OS X 10.9.3 with clang 5.1.
  2. Mac OS 9 was the ninth major release of Apple's classic Mac OS operating system which was succeeded by OS X.Introduced on October 23, 1999, it was promoted by Apple as 'The Best Internet Operating System Ever', highlighting Sherlock 2's Internet search capabilities, integration with Apple's free online services known as iTools and improved Open Transport networking.
  3. Supports Mac OS X v10.6. Ver.2.2.1 - By incorporating Universal Binary, the Setup Utility operates natively under Macintosh with Intel-made processor.

MacOS Big Sur elevates the most advanced desktop operating system in the world to a new level of power and beauty. Experience Mac to the fullest with a refined new design. Enjoy the biggest Safari update ever. Discover new features for Maps and Messages. Get even more transparency around your privacy.

1 Known Guides For Building OpenFOAM 2.2.2 on Mac OS X

The known guides for building OpenFOAM 2.2.2 on Mac OS X are as follows:

  • The current one you're reading: Installation/Mac OS/OpenFOAM 2.2.2 - which explains how to build using GCC 4.6 from Macports.
  • From Alexey Matveichev's blog: Building OpenFOAM on OS X, tested on OS X 10.9.3 with clang 5.1.

2 Introduction and Notes

This guide is derived from OpenFOAM 2.1.x Installation with some modifications, thanks to the help provided on this thread at CFD-Online's Forums.


These compiling instructions have only been tested on the following system:

These instructions may need to be tailored to fit your specific system if they deviate from the above; you should be able to ask support on this thread if you needed it.

Many thanks go to Bernhard Gschaider (a.k.a. gschaider at CFD-Online's Forums) for maintaining the latest OpenFOAM Mac OS X patches and for the big help he provided me.

  • 3Prepare your Mac OS X Environment
    • 3.1Macports
  • 4OpenFOAM Building

3 Prepare your Mac OS X Environment

3.1 Macports

To install Macports you need to install xCode, you can find it on the App Store. After xCode you need to install the Command Line Tools. Installing Command Line Tools for Mavericks is different from what you would do with previous OSX versions, as explained in the following subsections:

3.1.1 Command Line Tools for OSX 10.9 'Mavericks'

To install CLT on OSX 10.9 open a terminal application (for example Terminal.app) and run:

a window will be prompted where you can confirm installation.

3.1.2 Command Line Tools for OSX version < 10.9

In previous versions of OSX (and of xCode) you can download CLT directly from xCode Preferences > Downloads > Components.

3.1.3 xCode License

Now you should accept the xCode License so run, always in the Terminal (this could be needed only on OSX 10.9):

and when asked type 'agree' to accept the license. Now xCode 'things' should work correctly.

3.1.4 MacPorts Installation

Now to install Macports you can download the pre-compiled package from the Official Macports Website.

3.2 Build and Install the necessary software

To install all the tools we'll need run in Terminal:

Wait for the end of all operations then do:

Now wait (a bit...)

4 OpenFOAM Building

4.1 Creation of Case Sensitive .sparseimage

Note: Images here shown are taken from Installation/Mac_OS/OpenFOAM_2.1.x, you could change the name of the sparse-image from OpenFOAM-v2.1 to OpenFOAM-v2.2.2 (and this will be assumed from here on).


First, we create a disk image with the Apple Disk Utility. Open /Applications/Utilities/Disk Utility. Click New Image:

It is important to set as Format: Mac OS Extended (Case-sensitive,Journaled). The sparse image will grow with the place used inside the image. Create a sparse image with the following settings (examples, you could change the values):


4.2 OpenFOAM sources and patches

Note: Remember that when you're inside the terminal you can auto-complete your commands pressing the TAB button.


Download OpenFOAM 2.2.2 sources from here and the 3 necessary patch files from one of the following places:

  1. From the original forum posts, download the patch files OpenFOAM-2.2.x-Mac_2014-02-17.patch and ThirdParty-2.2.x-Mac_2014-02-17.patch from post #108 (SurfaceCGALFix.patch from post #54 should not be longer needed with last updated patches).
  2. More updated patches could be possibly found on this CFD Online Thread.


Put everything inside the .sparseimage (you probably saved in ~/Documents).

  1. Open a Terminal, create a symlink to the OF image:
  2. Now we can go to OF directory just doing (from home directory):
  3. Let's extract the two archives:
  4. Now your OF directory should look like this:
  5. Let's move the patches inside the right folders:
  6. Let's apply them:
  7. OpenFoam patch badly writes compilers symlinks so we have to fix:

4.3 Final Steps

  1. Let's give write permission to addr2line4Mac.py:
  2. Now we have to edit the bashrc file:
  3. Use CTRL+W to find these lines:

    and change them to:

  4. At the end of this file, add:

    A few notes about the last two lines[1]:

    • Apparently it's best that you manually write these two lines instead of copy-pasting, because apparently some weird characters will show up on your file (source).
    • The first entry you should set to the number of processes your CPU could manage in parallel, e.g. 4, 8 or 16.
      • If you don't know how many your machine can handle, then run:
    • The second entry is to increase the number of files which one process may open at a time.
  5. Save (CTRL+O and exit CTRL+X)
  6. Now we need a symlink for openmpirun (this can be useful with snappyHexMesh):
  7. There's some hard-coding to do on a file:
  8. Change this line:

    into this:

    save and exit.
  9. Source the bashrc file:
  10. Now we're ready to compile. Cross your fingers and do:where logName should be replaced by a name for your log :P. Now take your time, call your mum, cook, take a shower and then come back to see if something went wrong.

5 Diagnosis and Problems[2]

You can check if there are any errors by opening the file nameLog.log with a text editor and search for lines have the expression 'Error ' (including the space after the word 'Error').
Keep in mind that if your terminal is returning error messages in another language, then you should search for the respective word for 'Error'.

If you do find errors, the first one is usually the one to blame for all of the other errors.

If you are still unable to figure out what's wrong, then:

  1. Edit the file nameLog.log with a text editor, search and replace any sensitive information, such as user names and folder paths.
  2. Rename the log file so that it is unique, preferably with data and user-name. For instance: log_20130401_bgschaid.log
  3. Pack the log file. For instance with GNU zip if it is only a single file:

    Only tarball it if there are additional files required to diagnose the problem:

  4. Post the log in this forum, along with your question(s).

6 Paraview Installation

  1. Download the right package from official Paraview website and install it.
  2. Let's create a symlink to paraview executable in OpenFOAM to the one installed:
  3. The following command creates a file .alias where you can store aliases for commands:
  4. Add the following lines to it:
  5. To auto-source the .alias at terminal start-up, edit the profile file:
  6. Add the following line at the end of that file:
  7. Then save and exit.

7Permanent Installation

You can set a terminal command to auto-mount the .sparseimage and auto-source the OF's bashrc this way:

  1. Edit the .alias file:
  2. Add at the end of it:
  3. Now, if your .sparseimage is not mounted, then simply doing:

    will mount the OpenFOAM environment.


  1. From Installation/Mac_OS/OpenFOAM_2.1.x
  2. From Installation/Mac_OS/OpenFOAM_2.1.x
Retrieved from 'https://openfoamwiki.net/index.php?title=Installation/Mac_OS/OpenFOAM_2.2.2&oldid=18551'

macOS Big Sur elevates the most advanced desktop operating system in the world to a new level of power and beauty. Experience Mac to the fullest with a refined new design. Enjoy the biggest Safari update ever. Discover new features for Maps and Messages. Get even more transparency around your privacy.

Chances are, your Mac can run macOS Big Sur

The following models are supported:

  • MacBook (2015 or later)
  • MacBook Air (2013 or later)
  • MacBook Pro (Late 2013 or later)
  • Mac mini (2014 or later)
  • iMac (2014 or later)
  • iMac Pro (2017 or later)
  • Mac Pro (2013 or later)

To see which model you have, click the Apple icon in your menu bar and choose About This Mac.

Make sure you’re ready to upgrade.

Before you upgrade, we recommend that you back up your Mac. If your Mac is running OS X Mavericks 10.9 or later, you can upgrade directly to macOS Big Sur. You’ll need the following:

  • OS X 10.9 or later
  • 4GB of memory
  • 35.5GB available storage on macOS Sierra or later*
  • Some features require an Apple ID; terms apply.
  • Some features require a compatible internet service provider; fees may apply.

Upgrading is free and easy

Upgrading from macOS Catalina 10.15 or Mojave 10.14?

Go to Software Update in System Preferences to find macOS Big Sur. Click Upgrade Now and follow the onscreen instructions.

Upgrading from an older version of macOS?

If you’re running any release from macOS 10.13 to 10.9, you can upgrade to macOS Big Sur from the App Store. If you’re running Mountain Lion 10.8, you will need to upgrade to El Capitan 10.11 first.

If you don’t have broadband access, you can upgrade your Mac at any Apple Store.

  • OS X 10.9 or later
  • 4GB of memory
  • 35.5GB available storage on macOS Sierra or later*
  • Some features require an Apple ID; terms apply.
  • Some features require a compatible internet service provider; fees may apply.

For details about your Mac model, click the Apple icon at the top left of your screen and choose About This Mac. These Mac models are compatible with macOS Big Sur:

  • MacBook (2015 or later)
  • MacBook Air (2013 or later)
  • MacBook Pro (Late 2013 or later)
  • Mac mini (2014 or later)
  • iMac (2014 or later)
  • iMac Pro (2017 or later)
  • Mac Pro (2013 or later)

Siri

Requires a broadband internet connection and microphone (built-in or external).

Hey Siri

Supported by the following Mac models:

  • MacBook Pro (2018 or later)
  • MacBook Air (2018 or later)
  • iMac Pro (2017 or later)

Dictation, Voice Control, and Voice Memos

Requires a microphone (built-in or external).

Spotlight Suggestions

Requires a broadband internet connection.

Gestures

Requires a Multi-Touch trackpad, Force Touch trackpad, Magic Trackpad, or Magic Mouse.

Force Touch gestures require a Force Touch trackpad.

VoiceOver gestures require a Multi-Touch trackpad, Force Touch trackpad, or Magic Trackpad.

Photo Booth

Requires a FaceTime or iSight camera (built-in or external) or USB video class (UVC) camera.

FaceTime

Audio calls require a microphone (built-in or external) and broadband internet connection.

Video calls require a built-in FaceTime camera, an iSight camera (built-in or external), or a USB video class (UVC) camera; and broadband internet connection.

Apple TV

High dynamic range (HDR) video playback is supported by the following Mac models:

  • MacBook Pro (2018 or later)
  • iMac Pro (2017 or later)
  • Mac Pro (2019) with Pro Display XDR

Dolby Atmos soundtrack playback is supported by the following Mac models:

  • MacBook Air (2018 or later)
  • MacBook Pro (2018 or later)

Sidecar

Supported by the following Mac models:

  • MacBook (2016 or later)
  • MacBook Air (2018 or later)
  • MacBook Pro (2016 or later)
  • Mac mini (2018 or later)
  • iMac (late 2015 or later)
  • iMac Pro (2017 or later)
  • Mac Pro (2019)

Supported by all iPad models with Apple Pencil support:

  • 12.9-inch iPad Pro
  • 11-inch iPad Pro
  • 10.5-inch iPad Pro
  • 9.7-inch iPad Pro
  • iPad (6th generation or later)
  • iPad mini (5th generation)
  • iPad Air (3rd and 4th generation)

Continuity Camera

Requires an iPhone or iPad that supports iOS 12 or later.

Continuity Sketch and Continuity Markup

Renouveau

Requires an iPhone with iOS 13 or later or an iPad with iPadOS 13 or later.

Handoff

Requires an iPhone or iPad with a Lightning connector or with USB-C and iOS 8 or later.

Instant Hotspot

Requires an iPhone or iPad with cellular connectivity, a Lightning connector or USB-C, and iOS 8.1 or later. Requires Personal Hotspot service through your carrier.

Universal Clipboard

Requires an iPhone or iPad with a Lightning connector or with USB-C and iOS 10 or later.

Auto Unlock

Requires an Apple Watch with watchOS 3 or later or an iPhone 5 or later.

Approve with Apple Watch

Requires an Apple Watch with watchOS 6 or later or an iPhone 6s or later with iOS 13 or later.

Apple Pay on the Web

Requires a MacBook Pro or MacBook Air with Touch ID, an iPhone 6 or later with iOS 10 or later, or an Apple Watch with watchOS 3 or later.

Phone Calling

Requires an iPhone with iOS 8 or later and an activated carrier plan.

SMS

Requires an iPhone with iOS 8.1 or later and an activated carrier plan.

Home

Requires an iPhone with iOS 12 or later and a configured Home app.

AirDrop

AirDrop to iOS and iPadOS devices requires an iPhone or iPad with a Lightning connector or with USB-C and iOS 7 or later.

AirPlay

AirPlay Mirroring requires an Apple TV (2nd generation or later).

AirPlay for web video requires an Apple TV (2nd generation or later).

Peer-to-peer AirPlay requires a Mac (2012 or later) and an Apple TV (3rd generation rev A, model A1469 or later) with Apple TV software 7.0 or later.

Time Machine

Renouveau 2.2 Mac Os Download

Requires an external storage device (sold separately).

Maps electric vehicle routing

Requires an iPhone with iOS 14 and a compatible electric vehicle.

Maps license plate restrictions

Requires an iPhone running iOS 14 or an iPad running iPadOS 14.

Boot Camp

Allows Boot Camp installations of Windows 10 on supported Mac models.

Exchange Support

Mac Os Mojave

Requires Microsoft Office 365, Exchange 2016, Exchange 2013, or Exchange Server 2010. Installing the latest Service Packs is recommended.

Windows Migration

Supports OS X 10.7 or later and Windows 7 or later.

App Store

Available only to persons age 13 or older in the U.S. and many other countries and regions.

Photos

The improved Retouch tool is supported on the following Mac models:

  • MacBook Pro (15-inch and 16-inch models) introduced in 2016 or later
  • iMac (Retina 5K models) introduced in 2014 or later
  • iMac (Retina 4K models) introduced in 2017 or later
  • iMac Pro (2017 or later)
  • Mac Pro introduced in 2013 or later
  • Apple Books
  • Apple News
  • App Store
  • Automator
  • Calculator
  • Calendar
  • Chess
  • Contacts
  • Dictionary
  • DVD Player
  • FaceTime
  • Find My
  • Font Book
  • Home
  • Image Capture
  • Launchpad
  • Mail
  • Maps
  • Messages
  • Mission Control
  • Music
  • Notes
  • Photo Booth
  • Photos
  • Podcasts
  • Preview
  • QuickTime Player
  • Reminders
  • Safari
  • Siri
  • Stickies
  • Stocks
  • System Preferences
  • TextEdit
  • Time Machine
  • TV
  • Voice Memos
  • Activity Monitor
  • AirPort Utility
  • Audio MIDI Setup
  • Bluetooth File Exchange
  • Boot Camp Assistant
  • ColorSync Utility
  • Console
  • Digital Color Meter
  • Disk Utility
  • Grapher
  • Keychain Access
  • Migration Assistant
  • Screenshot
  • Screen Time
  • Script Editor
  • Sidecar
  • System Information
  • Terminal
  • VoiceOver Utility
  • Arabic
  • Catalan
  • Croatian
  • Simplified Chinese
  • Traditional Chinese
  • Traditional Chinese (Hong Kong)
  • Czech
  • Danish
  • Dutch
  • English (Australia)
  • English (UK)
  • English (U.S.)
  • Finnish
  • French
  • French (Canada)
  • German
  • Greek
  • Hebrew
  • Hindi
  • Hungarian
  • Indonesian
  • Italian
  • Japanese
  • Korean
  • Malay
  • Norwegian
  • Polish
  • Brazilian Portuguese
  • Portuguese
  • Romanian
  • Russian
  • Slovak
  • Spanish
  • Spanish (Latin America)
  • Swedish
  • Thai
  • Turkish
  • Ukrainian
  • Vietnamese