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

Build SU2 on Windows 10

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 30, 2020, 18:43
Default Build SU2 on Windows 10
  #1
New Member
 
Tomás Silva
Join Date: May 2020
Posts: 2
Rep Power: 0
tomas.h.silva is on a distinguished road
Hi all,

I had to change the turb_sources.cpp file in order to adjust the B-C turbulence model and now I need to build the SU2_CFD file again. Is there any way to build only this part of the program without having to build the whole code?

Moreover, I tried to build the whole code as it said on the SU2 website but I didn't succeed. It worked well until I ran: ./meson.py build
After that, I got this message :

Please be sure to add the $SU2_HOME and $SU2_RUN environment variables,
and update your $PATH (and $PYTHONPATH if applicable) with $SU2_RUN

Based on the input to this configuration, add these lines to your .bashrc file:

export SU2_RUN=c://bin
export SU2_HOME=C:\PIR\SU2\SU2-master\SU2-master
export PATH=$PATH:$SU2_RUN
export PYTHONPATH=$PYTHONPATH:$SU2_RUN

Use './ninja -C false install' to compile and install SU2


I can't find the .bashrc file and I tried to ran the '.\ninja -C false install' but it also doesn't work. I also tried to run '.\ninja -C build install', which is another command line indicated in the website, but it also didn't work.

Thank you in advance for your help,
tomas.h.silva is offline   Reply With Quote

Old   May 31, 2020, 05:51
Default
  #2
Super Moderator
 
Tim Albring
Join Date: Sep 2015
Posts: 195
Rep Power: 10
talbring is on a distinguished road
Make sure to use "ninja.exe -C build install" on windows like it is mentioned here:
https://su2code.github.io/docs_v7/Build-SU2-Windows/

These export commands are only for macOS/Linux. We will modify the documentation accordingly soon.
__________________
Developer Director @ SU2 Foundation

Get involved:
talbring is offline   Reply With Quote

Old   June 2, 2020, 08:19
Default
  #3
New Member
 
Tomás Silva
Join Date: May 2020
Posts: 2
Rep Power: 0
tomas.h.silva is on a distinguished road
Thank you for your reply.

When I use the command "ninja.exe -C build install" I get the following messages:

ninja: error: unknown target 'install'
ninja: Entering directory `build'
tomas.h.silva is offline   Reply With Quote

Reply

Tags
su2 build


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 v6.0.0 windows zip - Installer Application? Harry_D SU2 Installation 1 February 20, 2018 14:20
[foam-extend.org] FOAM on Windows, Linux and Mac hjasak OpenFOAM Installation 7 January 24, 2016 06:54
Build SU2 on Intel Xeon Phi akun646 SU2 Installation 1 August 4, 2014 04:50
Welcome to the Stanford University Unstructured (SU2) forum! economon SU2 0 January 7, 2013 02:48
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 18:56


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