> For the complete documentation index, see [llms.txt](https://docs-ksc.gitbook.io/blog/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-ksc.gitbook.io/blog/install/nurion/foam-extend-3.1-install.md).

# foam-extend v3.1 설치 소개

foam-extend는 오픈소스 유체역학 시뮬레이션 소프트웨어인 OpenFOAM에서 파생된 확장 프로젝트입니다. OpenFOAM의 기능을 기반으로 하되, 새로운 기능과 물리 모델을 실험하고 개발할 수 있도록 개발된 소프트웨어 입니다.

* foam-extend wiki : [https://sourceforge.net/p/foam-extend/wiki/Home](https://sourceforge.net/p/foam-extend/wiki/Home/)

이 문서에서는 foam-extend 3.1 버전을 컴파일 하여 설치 하는 방법에 대해 예시로 소개합니다.

## **가. 설치 환경**

| 구분                      | 내용                     |
| ----------------------- | ---------------------- |
| 대상 시스템                  | 누리온                    |
| OS Version              | 리눅스 / CentOS 7.9       |
| CPU                     | <p>Intel Xeon Phi 7250 |
| <br>Intel Xeon 6148</p> |                        |
| 컴파일러                    | Gcc 7.2.0              |
| MPI                     | OpenMPI 3.1.0          |
| 기타                      |                        |

## **나. 설치 전 환경 설정**

누리온 시스템에서는 PATH, LD\_LIBRARY\_PATH 설정을 손쉽게 하기 위해서 환경설정 툴인 Module이 구성되어 있으며 이하 설치 소개에서는 module load 를 이용한 환경설정 방법으로 안내 드립니다.

\[ 환경 설정 ]

```shell-session
$ module purge
$ module load gcc/7.2.0 openmpi/3.1.0
$ module load cmake/3.12.3 subversion/1.9.3 git/1.8.3.4
```

## **다. foam-extend-3.1 버전 설치 과정**

설치 과정 소개는 tar 를 이용한 압축 해제 방법과 설정 방법등 진행 절차를 위주로 설명하고, 소스 파일 다운로드 등은 생략합니다.

\[설치과정]

```shell-session
$ mkdir -p ~/foam/foam-extend-3.1
$ mv foam-extend-3.1_f77b480.tgz ~/foam/foam-extend-3.1
$ cd ~/foam/foam-extend-3.1
$ tar -xvzf foam-extend-3.1_f77b480.tgz
$ source ~/foam/foam-extend-3.1/etc/bashrc
$ foam
$ sed -iold -e "s=-liberty==" wmake/rules/*/general
$ vi ThirdParty/AllMake.stage5
- - - [AllMake.stage5 수정 사항] 참고 - - -
$ ./Allwmake.firstInstall 2>&1
```

\[AllMake.stage5 수정 사항]

```
90line : (cd ./rpmBuild/BUILD; svn checkout http://svn.code.sf.net/p/openfoam-extend/svn/trunk/Breeder_2.0/libraries/swak4Foam swak4Foam-$SWAK_RELEASE_VERSION)
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs-ksc.gitbook.io/blog/install/nurion/foam-extend-3.1-install.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
