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

Problem with foamNewSource

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 6, 2021, 09:42
Default Problem with foamNewSource
  #1
New Member
 
Join Date: Dec 2021
Location: Argentina, BB
Posts: 5
Rep Power: 4
ariedinger is on a distinguished road
I'm trying to create a solver in /OpenFOAM/applications/solvers/electromagnetics using

Code:
foamNewSource App newSolver
But, I keep getting the following error:

Code:
wmakeFilesAndOptions error: environment variable $WM_OPTIONS not set
I'm running EndeavourOS Linux x86_64 with kernel 5.15.6-arch2-1 and shell bash 5.1.12. In order to set up OpenFOAM (v9), I have the following in my .bashrc config file:

Code:
source /opt/OpenFOAM/OpenFOAM-9/etc/bashrc
PATH=$PATH:/opt/OpenFOAM
Now, when looking at the environment variables, I couldn't see WM_OPTIONS in my system. So, after googling a little bit, I added this to my .bashrc file:

Code:
source /opt/OpenFOAM/OpenFOAM-9/etc/bashrc
PATH=$PATH:/opt/OpenFOAM
export WM_OPTIONS=linux64GccDPOpt
And now, doing env | grep WM:

Code:
WM_COMPILER=Gcc
WM_PRECISION_OPTION=DP
WM_PROJECT_USER_DIR=/home/ariedinger/OpenFOAM/ariedinger-9
WM_MPLIB=SYSTEMOPENMPI
WM_OPTIONS=linux64GccDPOpt
WM_ARCH=linux64
WM_LABEL_SIZE=32
WM_PROJECT=OpenFOAM
WM_THIRD_PARTY_DIR=/opt/OpenFOAM/ThirdParty-9
WM_CC=gcc
WM_LABEL_OPTION=Int32
WM_CFLAGS=-m64 -fPIC
WM_LINK_LANGUAGE=c++
WM_OSTYPE=POSIX
WM_PROJECT_VERSION=9
WM_DIR=/opt/OpenFOAM/OpenFOAM-9/wmake
WM_ARCH_OPTION=64
WM_CXXFLAGS=-m64 -fPIC -std=c++0x
WM_PROJECT_INST_DIR=/opt/OpenFOAM
WM_LDFLAGS=-m64
WM_CXX=g++
WM_COMPILE_OPTION=Opt
WM_PROJECT_DIR=/opt/OpenFOAM/OpenFOAM-9
WM_COMPILER_TYPE=system
WM_COMPILER_LIB_ARCH=64
I can see the WM_OPTIONS environment variable set, but nonetheless I keep getting the same wmakeFilesAndOptions error.

I don't know what configuration I'm messing up, so I'd appreciate some help!

Thanks!
ariedinger is offline   Reply With Quote

Reply

Tags
environment variable, solve error, wmake


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
SU2-7.0.1 on ubuntu 18.04 hyunko SU2 Installation 7 March 16, 2020 04:37
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 04:43
Gambit - meshing over airfoil wrapping (?) problem JFDC FLUENT 1 July 11, 2011 05:59
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 06:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 19:13


All times are GMT -4. The time now is 19:17.