CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

OpenFOAM 2.3.0

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 18, 2014, 04:58
Default OpenFOAM 2.3.0
  #1
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 21
jherb is on a distinguished road
Dear OpenFOAMers,

I am not sure, why this was not reported here yet, but a new version of OpenFOAM was released last week (2014-02-10):

http://www.openfoam.org/version2.3.0/
https://github.com/OpenFOAM/OpenFOAM-2.3.x

Joachim
Cyp, Tobi and JR22 like this.
jherb is offline   Reply With Quote

Old   February 18, 2014, 05:33
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Joachim,

Actually, the release notes are really misleading, because they only announced it yesterday: https://twitter.com/openfoam/statuse...44092042887168

As for the announcement here on the forum, it's stuck in moderation mode: http://www.cfd-online.com/Forums/ope...-v2-3-0-a.html - I don't have permissions to touch that section, so... we'll have to wait

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   February 18, 2014, 11:25
Default
  #3
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 21
jherb is on a distinguished road
Unfortunately, the 2.3.0 breaks swak4Foam compilation (due to a new implementation of mesh interpolation).
jherb is offline   Reply With Quote

Old   February 18, 2014, 14:02
Default Helyx-OS 2.0.0 with OpenFoam 2.3?
  #4
Senior Member
 
JR22's Avatar
 
Jose Rey
Join Date: Oct 2012
Posts: 134
Rep Power: 17
JR22 will become famous soon enough
Does anybody know if Helyx-OS 2.0.0 will work with OpenFoam 2.3?
Thanks.
JR22 is offline   Reply With Quote

Old   March 2, 2014, 03:42
Default
  #5
Member
 
Mehdi GHOZALI
Join Date: May 2013
Location: Dubai, UAE
Posts: 65
Rep Power: 12
Dadou is on a distinguished road
Hello Foamers,

I want to know if someone can help installing 2.3.x without deleting the 2.2.2 version already installed on my Ubuntu 12.04 LTS.


Thank you and sorry if there's already an answer.

Dadou
Dadou is offline   Reply With Quote

Old   March 2, 2014, 03:44
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings to all!

@Dadou: Here's some reading material: http://openfoamwiki.net/index.php/In...with_the_Shell - when you finish reading+studying that page, you should be able to install as many OpenFOAM versions and variants as you want

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   March 2, 2014, 03:48
Default
  #7
Member
 
Mehdi GHOZALI
Join Date: May 2013
Location: Dubai, UAE
Posts: 65
Rep Power: 12
Dadou is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Greetings to all!

@Dadou: Here's some reading material: http://openfoamwiki.net/index.php/In...with_the_Shell - when you finish reading+studying that page, you should be able to install as many OpenFOAM versions and variants as you want

Best regards,
Bruno

Greetings to you Bruno,

Thank you for the help

Kind Regards,

Dadou
Dadou is offline   Reply With Quote

Old   March 3, 2014, 04:46
Default
  #8
Member
 
Mehdi GHOZALI
Join Date: May 2013
Location: Dubai, UAE
Posts: 65
Rep Power: 12
Dadou is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Greetings to all!

@Dadou: Here's some reading material: http://openfoamwiki.net/index.php/In...with_the_Shell - when you finish reading+studying that page, you should be able to install as many OpenFOAM versions and variants as you want

Best regards,
Bruno
Hi Bruno,

I tried to follow and understand the content of the link you send me. now I have two versions of OpenFOAM, but when I open a terminal it's goes directly to the 2.3.0 version. I created two alias of222 for 2.2.2 version and of230 for the 2.3.0 but somehow doesn't read the first one.

Can you help me with this please?

Thank you


Dadou
Dadou is offline   Reply With Quote

Old   March 3, 2014, 06:42
Default
  #9
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by Dadou View Post
now I have two versions of OpenFOAM, but when I open a terminal it's goes directly to the 2.3.0 version. I created two alias of222 for 2.2.2 version and of230 for the 2.3.0 but somehow doesn't read the first one.
Mmm... perhaps it's fixed if you follow the section I added yesterday: 2.2.1 Unable to change the shell environment until I log-out
It happened to me in openSUSE and Fedora (if I'm not mistaken) and only after logging out and logging back in, was the environment properly set-up.
wyldckat is offline   Reply With Quote

Old   March 3, 2014, 07:36
Default
  #10
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 21
jherb is on a distinguished road
swak4Foam was updated meanwhile (in the hg repository) and compiles well with OpenFOAM 2.3.0.
Quote:
Originally Posted by jherb View Post
Unfortunately, the 2.3.0 breaks swak4Foam compilation (due to a new implementation of mesh interpolation).
jherb is offline   Reply With Quote

Old   March 3, 2014, 08:45
Default
  #11
Member
 
Mehdi GHOZALI
Join Date: May 2013
Location: Dubai, UAE
Posts: 65
Rep Power: 12
Dadou is on a distinguished road
It happened to me in openSUSE and Fedora (if I'm not mistaken) and only after logging out and logging back in, was the environment properly set-up.[/QUOTE]

I tried what you suggested but still have the same problem and try to follow the web site again but nothing. Do you have an idea about the why?

Hope you can help

thanks again

Regards
Dadou is offline   Reply With Quote

Old   March 3, 2014, 09:47
Default
  #12
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
@Dadou: What is the content of the file indicated by this command?
Code:
echo $HOME/.bashrc
wyldckat is offline   Reply With Quote

Old   March 4, 2014, 00:35
Default
  #13
Member
 
Mehdi GHOZALI
Join Date: May 2013
Location: Dubai, UAE
Posts: 65
Rep Power: 12
Dadou is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
@Dadou: What is the content of the file indicated by this command?
Code:
echo $HOME/.bashrc
@Bruno,

After tipping the code you wrote, I got this :
Code:
/home/openfoam/.bashrc
Dadou is offline   Reply With Quote

Old   March 4, 2014, 02:38
Default
  #14
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

I guess wyldckat meant 'cat $HOME/.bashrc'.

Actually even if you created aliases of222 and of230 but have a line 'source /path/to/openfoam/2.3.0/etc/bashrc' in your $HOME/.bashrc you'll get environment variables setup for OF 2.3.0 as soon as you open terminal.
alexeym is offline   Reply With Quote

Old   March 4, 2014, 03:19
Default
  #15
Member
 
Mehdi GHOZALI
Join Date: May 2013
Location: Dubai, UAE
Posts: 65
Rep Power: 12
Dadou is on a distinguished road
Quote:
Originally Posted by alexeym View Post
Hi,

I guess wyldckat meant 'cat $HOME/.bashrc'.

Actually even if you created aliases of222 and of230 but have a line 'source /path/to/openfoam/2.3.0/etc/bashrc' in your $HOME/.bashrc you'll get environment variables setup for OF 2.3.0 as soon as you open terminal.
Hi,

when I run the command you suggested, I have this in return :

Code:
openfoam@openfoam:~$ cat $HOME/.bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples

# If not running interactively, don't do anything
[ -z "$PS1" ] && return

# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth

# append to the history file, don't overwrite it
shopt -s histappend

# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000

# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize

# If set, the pattern "**" used in a pathname expansion context will
# match all files and zero or more directories and subdirectories.
#shopt -s globstar

# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"

# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
    debian_chroot=$(cat /etc/debian_chroot)
fi

# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
    xterm-color) color_prompt=yes;;
esac

# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
#force_color_prompt=yes

if [ -n "$force_color_prompt" ]; then
    if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
        # We have color support; assume it's compliant with Ecma-48
        # (ISO/IEC-6429). (Lack of such support is extremely rare, and such
        # a case would tend to support setf rather than setaf.)
        color_prompt=yes
    else
        color_prompt=
    fi
fi

if [ "$color_prompt" = yes ]; then
    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\0                                   33[01;34m\]\w\[\033[00m\]\$ '
else
    PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt

# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
    PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
    ;;
*)
    ;;
esac

# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
    test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dirco                                   lors -b)"
    alias ls='ls --color=auto'
    #alias dir='dir --color=auto'
    #alias vdir='vdir --color=auto'

    alias grep='grep --color=auto'
    alias fgrep='fgrep --color=auto'
    alias egrep='egrep --color=auto'
fi

# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'

# Add an "alert" alias for long running commands.  Use like so:
#   sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo                                    error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'                                   ')"'

# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.

if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases
fi

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
    . /etc/bash_completion
fi

source /opt/openfoam222/etc/bashrc
source /opt/openfoam230/etc/bashrc
Dadou is offline   Reply With Quote

Old   March 4, 2014, 03:35
Default
  #16
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

look at the two last lines of your .bashrc:

Code:
source /opt/openfoam222/etc/bashrc
source /opt/openfoam230/etc/bashrc
they are executed automatically when you start terminal. So by default you'll get environment of OpenFOAM 2.2.2.

You can do one of the following:
1. Comment out (or just remove) these lines and after you start terminal run one of your aliases (of222 or of230) depending on the version you'd like to use. I guess they are defined in $HOME/.bash_aliases?

2. Create a file .OpenFOAM-release with, put there version you'd like to use
Code:
echo '2.2.2' > $HOME/.OpenFOAM-release
and change those two last lines of your $HOME/.bashrc to
Code:
OF_VER=$(cat $HOME/.OpenFOAM-release)
if [ "$OF_VER" == "2.2.2" ]; then
  source /opt/openfoam222/etc/bashrc
fi
if [ "$OF_VER" == "2.3.0" ]; then
  source /opt/openfoam230/etc/bashrc
fi
and use that $HOME/.OpenFOAM-release to define version you'd like to use.
alexeym is offline   Reply With Quote

Old   March 5, 2014, 01:34
Default
  #17
Member
 
Mehdi GHOZALI
Join Date: May 2013
Location: Dubai, UAE
Posts: 65
Rep Power: 12
Dadou is on a distinguished road
Alexeym,

Thank you for the tips, I figured it out why it wasn't working. in the bash file we have set up the aliases and then it will be easy to "call" them.
Exemple :
Code:
alias of222='source /opt/openfoam222/etc/bashrc
Regards
Dadou is offline   Reply With Quote

Old   May 2, 2014, 02:14
Default
  #18
Member
 
Lucas Mutti
Join Date: Aug 2013
Posts: 47
Rep Power: 13
lramutti is on a distinguished road
Hey guys,

I have been trying to work with the new version of OpenFOAM 2.3.0 and it seems that it does not even run successful cases that I have executed in OpenFOAM 2.2.1. It is frustrating. Do you guys have similar issues? Why is that?

Lucas
lramutti is offline   Reply With Quote

Old   May 2, 2014, 07:44
Default
  #19
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Lucas,

OpenFOAM is constantly evolving. It might be a bit troubling at first, but to me it seems to be for the best, really!

Whenever a new version comes out, take the time to read the release notes; for example, for OpenFOAM 2.3.0: http://www.openfoam.org/version2.3.0/ - there you'll find about most of the changes that have been made.

The detail then comes when you find a bug... which may or may not have already been fixed in the repository version: http://www.openfoam.org/download/git.php - which means that you might have to build from source code the latest version, in this case OpenFOAM 2.3.x, in order to be able to use OpenFOAM without said bug...

As for adapting your cases to the changes, check the changes made in the reference tutorials you've been following as reference.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   May 2, 2014, 15:35
Default
  #20
Member
 
Lucas Mutti
Join Date: Aug 2013
Posts: 47
Rep Power: 13
lramutti is on a distinguished road
Hey Bruno,

Thanks for the response and the link. It is quite interesting to see the modifications that were done in this new version. I know that it is possible to install ParaView 4.1.0 without installing OpenFOAM 2.3.0 however, I am not sure how. What I do know is that ParaView can be downloaded from their website as a binary RHEL 64 bit. However, the paraFoam utility will not work and the only way to access the case is by creating a .foam extension in the directory. By any chance do you know how to do this?

I will post the solution to my problem in case someone comes across it in the future:

Code:
leftSolid_to_heater 

    type            compressible::turbulentTemperatureCoupledBaffleMixed; 
    Tnbr            T; 
    kappa           solidThermo; 
    kappaName       none; 
    thicknessLayers (1e-3);           OPTIONAL
    kappaLayers     (5e-4);           OPTIONAL
    value           uniform 300;
Furthermore, I minor update is necessary in the fvSchemes script of the fluid as follows:

Code:
laplacian(rhorAUf, p_rgh) Gauss linear limited 0.333;
Please note that the Gauss linear limited 0.333 is subjected to changes depending on the scheme used to solve for the laplacian of the turbulent model.

Cheers

Lucas Mutti
lramutti is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 11:58
OpenFOAM Foundation Releases OpenFOAM v2.3.0 opencfd OpenFOAM Announcements from OpenFOAM Foundation 3 December 23, 2014 03:43
OpenFOAM Foundation releases OpenFOAM 2.2.2 opencfd OpenFOAM Announcements from ESI-OpenCFD 0 October 14, 2013 07:18
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07
OpenFOAM Training and Workshop Hrvoje Jasak Main CFD Forum 0 October 7, 2005 07:14


All times are GMT -4. The time now is 15:28.