fr.cnes.sirius.patrius.assembly.models
Class InterpolatedDragReader
java.lang.Object
fr.cnes.sirius.patrius.assembly.models.InterpolatedDragReader
public class InterpolatedDragReader
- extends Object
Generic reader to read a file containing aero coefficients and store these coefficients.
The file must have the following format :
- lines starting with/containing only "#" are comments
- the file is a column-files : each column is separated by spaces or tabs
This reader is used to build an implementation of DragCoefficientProvider
.
- Since:
- 3.4
- Version:
- $Id: InterpolatedDragReader.java 17619 2017-05-18 13:16:01Z bignon $
- Author:
- rodriguest
- Concurrency :
- thread-safe
Method Summary |
double[][] |
readFile(String filePath)
Read the aero coefficients file by parsing it. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InterpolatedDragReader
public InterpolatedDragReader()
- Constructor.
readFile
public double[][] readFile(String filePath)
throws IOException
- Read the aero coefficients file by parsing it.
Parsing is done taking into account spaces or tabulations between
data, lines starting with/containing only "#" are being ignored.
The columns are stored in a matrix double[][].
- Parameters:
filePath
- file path
- Returns:
- file data
- Throws:
IOException
- if file could not be read
Copyright © 2017 CNES. All Rights Reserved.