What are physics codes?

  • Thread starter Aaronvan
  • Start date
  • #1
44
2

Main Question or Discussion Point

What are physics "codes?"

How does the physicist define “code?”

I often read slug lines such as “New hydrodynamic codes reveal stellar core collapse” or “Scientists use EMSolve Code to better understand magnetic fusion energy.” To most laymen, code is a set of instructions, i.e. a computer program.

However, when I peruse the paper or article the code in question is often a set of mathematical equations. It is certainly not computer code, pseudo-code, or even an algorithm.

I am perplexed and hence the question. :smile:
 

Answers and Replies

  • #2
mathman
Science Advisor
7,800
430
Without knowing any of the specifics, I presume the codes involved are the implementations of the equations. The papers usually describe the results obtained from the codes.
 
  • #3
1,948
200
They are talking about a computer code that solves the equations numerically.
 
  • #4
525
16
How does the physicist define “code?”

I often read slug lines such as “New hydrodynamic codes reveal stellar core collapse” or “Scientists use EMSolve Code to better understand magnetic fusion energy.” To most laymen, code is a set of instructions, i.e. a computer program.

However, when I peruse the paper or article the code in question is often a set of mathematical equations. It is certainly not computer code, pseudo-code, or even an algorithm.

I am perplexed and hence the question. :smile:
A lot of times, the actual computer code isn't what people are really interested in. They're interested in the mathematical models for things, and they're interested in the solutions to those mathematical models. The computer code usually just provides a way to extract solutions from mathematical models. Researchers may spend a lot of time writing code to solve a problem, but if they don't use any novel algorithms or techniques in their code, why would they bother talking about it in a paper?

Also, a lot of times researchers may be using proprietary code. If a company writes some code and is making money off of it, they probably don't want some researcher blabbing about it in a paper. In fact, the researchers themselves probably aren't allowed to know everything about how the code works.
 
  • #5
44
2
Good information, thanks.
 

Related Threads on What are physics codes?

Replies
0
Views
683
  • Last Post
Replies
0
Views
1K
  • Last Post
Replies
2
Views
4K
  • Last Post
Replies
13
Views
841
  • Last Post
Replies
13
Views
2K
  • Last Post
Replies
11
Views
4K
Replies
5
Views
708
Replies
2
Views
4K
Replies
12
Views
3K
Replies
2
Views
2K
Top