FEFF Tutorial Session¶
Tutorial Slides¶
Downloading FEFF¶
To obtain FEFF, first fill out the registration form Here
Once you have registered, you will receive a download link along with a copy of the installation instructions.
Instructions for setting up JFEFF+FEFF10¶
Windows¶
-
You need an updated version of java for JFEFF to work. Please install java if it is not already installed.
-
Go to the feff10 releases page and download jfeffv9.x.x_feffv10.x.x_win_installer.exe, and run the installer.
-
Open jfeff.
-
Click on "Settings" in the lower right corner.
-
Click on "Browse" next to "Feff Module Dir".
-
Browse to "your_install_directory\JFEFF_FEFF10\feff10\bin" and click "Open". For most people "your_install_directory" is "C:\Windows\Program Files (x86)"
-
Click OK.
-
You can now try running the pre-loaded example by clicking "Save and Run" in the lower right hand corner.
-
The calculation should only take a few seconds. Once it is done, you can plot the results by clicking "Plot" in the lower right hand corner.
-
You can find examples in your home directory in a directory named "feff10_examples". Note that some of these examples do not work with JFEFF, although all should work with FEFF10.
Mac¶
-
If you have a mac with M1 or M2 chip rather than Intel, you will need to install rosetta. To do so, open a terminal and type the following command:
/usr/sbin/softwareupdate --install-rosetta --agree-to-licenseHit enter to agree and install. -
In order to install JFEFF+FEFF10 on OSx, you will need java jdk 8, which you can find at JDK8 Download. Choose the macos x64 file.
-
Download jfeffv9.x.x_feffv10.x.x_osx_install.tgz from the FEFF10 Download page
-
Open a terminal. Note that when you run some of the following commands, you might see a message: "Terminal would like to access files in ..." If you see this message, click "OK"
-
Change directories to the location of the downloaded install file. For example,
cd Downloads -
Extract the install directory:
tar -zxvf jfeffv9.x.x\_feffv10.x.x\_osx\_install.tgz -
Move to the jfeffv9.x.x_feffv10.x.x_osx_install directory.
cd jfeffv9.x.x\_feffv10.x.x\_osx\_install -
Run the installer
./jfeff\_installer.sh -
NOTE: Users of OSx Catalina and Big Sur may see the message: "jfeff_feff10.0.0_osx_install cannot be opened because the developer cannot be verified." If you see this message, click "Cancel" and run the following commands:
cd .. ; xattr -rd com.apple.quarantine jfeffv9.x.x\_feffv10.x.x\_osx\_install ; cd jfeffv9.x.x\_feffv10.x.x\_osx\_installNow run the installer as specified above in step 8. -
Follow the directions to install jfeff.
-
Run jfeff - Browse to the directory you specified during installation, and double click on "jfeff10.app" Alternatively, run jfeff from the command line by typing:
open your\_home\_directory/jfeff10.app -
You will see a message about copying files. Click "Don't Copy Files"
-
Click on "Settings" in the lower right corner.
-
Click on "Browse" next to "Feff Module Dir".
-
Browse to "your_install_directory/jfeff10.app/Contents/Resources/JFEFF/feff10/mac/" and click "Open".
-
Click "OK"
-
You can now try running the pre-loaded example by clicking "Save and Run" in the lower right hand corner.
-
The calculation should only take a few seconds. Once it is done, you can plot the results by clicking "Plot" in the lower right hand corner.
-
You can find examples in your home directory in a directory named "feff10_examples". Note that some of these examples do not work with JFEFF, although all should work with FEFF10.
Linux¶
-
In order to install JFEFF+FEFF10 on linux, you will need Oracle java, which you can find at https://www.java.com/en/download/
-
Download jfeffv9.x.x_feffv10.x.x_linux_install.tgz from the FEFF10 Download page
-
Open a terminal.
-
Change directories to the location of the downloaded install file. For example,
cd Downloads -
Extract the install directory:
tar -zxvf jfeffv9.x.x\_feffv10.x.x\_osx\_install.tgz -
Move to the jfeffv9.x.x_feffv10.x.x_osx_install directory.
cd jfeffv9.x.x\_feffv10.x.x\_linux\_install -
Run the installer
./jfeff\_installer.sh -
Follow the directions to install jfeff.
-
Run jfeff
your\_home\_directory/JFEFF\_FEFF10/jfeff10 -
You will see a message about copying files. Click "Don't Copy Files"
-
Click on "Settings" in the lower right corner.
-
Click on "Browse" next to "Feff Module Dir".
-
Browse to "your_home_directory/JFEFF_FEFF10/feff10/linux/" and click "Open".
-
Click "OK"
-
You can now try running the pre-loaded example by clicking "Save and Run" in the lower right hand corner.
-
The calculation should only take a few seconds. Once it is done, you can plot the results by clicking "Plot" in the lower right hand corner.
-
You can find examples in your home directory in a directory named "feff10_examples". Note that some of these examples do not work with JFEFF, although all should work with FEFF10.