Coder Social home page Coder Social logo

awsim's Introduction

AWSIM

AndreW Stewart Isopycnal Model

Because vanity has no limits.

This package includes:

  1. The core model code, written in C (see model_code/).
  2. A library of useful Matlab files for configuring and analyzing experiments (see matlab_common/).
  3. Some example experiment configuration scripts (see examples/).

The example experiments serve as an introduction to working with the model. To get started, open one of the example experiment configurations using Matlab. The 'examples/ACC' is probably the simplest, and will be assumed for the purposes of this example. Create an experiment using setparams_ACC.m as follows:

setparams_ACC('.','test_ACC')

This will create an experiment folder 'test_ACC' within the examples/ACC/ directory. You can create the experiment elsewhere by changing the first argument of setparams_ACC. Now use a unix terminal to navigate to your experiment folder and compile using:

sh Make.sh

This script compiles the code using gcc (you will need to have gcc installed for this to work, or you will need to modify this script for your C compiler). Then you can run the model using

sh Run.sh

As the model runs, you can visualize the model fields, for example using the anim.m script provided in the matlab_common/ folder:

anim('.','test_ACC','z',1,-1,-1)

(See anim.m for information on input parameters.) This will play a movie of the relative vorticity in the upper isopycnal layer of this test case. The anim.m script also serves as an example of how to analyze the model output.

awsim's People

Contributors

andystew7583 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.