forked from idaholab/moose
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request idaholab#26395 from GiudGiud/PR_multi_csv
Add support for multiple files when reading properties from CSV
- Loading branch information
Showing
23 changed files
with
233 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 0 additions & 22 deletions
22
framework/doc/content/source/vectorpostprocessors/CSVReader.md
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CSVReaderVectorPostprocessor.md |
22 changes: 22 additions & 0 deletions
22
framework/doc/content/source/vectorpostprocessors/CSVReaderVectorPostprocessor.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# CSVReaderVectorPostprocessor | ||
|
||
The CSVReaderVectorPostprocessor reads [CSV](https://en.wikipedia.org/wiki/Comma-separated_values) data from a file and | ||
converts each column into a VectorPostprocessor vector. This object uses the | ||
[DelimitedFileReader](MooseUtils.md#delimitedfilereader) utility to perform the reading of the file. | ||
|
||
The names of the vectors declared by the `CSVReaderVectorPostprocessor` are the names of the columns in the CSV file. | ||
|
||
## Example Input Syntax | ||
|
||
In this example, the `example.csv` file containing data for year/month/day is being read by | ||
the `CSVReaderVectorPostprocessor`. | ||
|
||
!listing test/tests/vectorpostprocessors/csv_reader/read.i block=VectorPostprocessors | ||
|
||
!listing test/tests/vectorpostprocessors/csv_reader/example.csv | ||
|
||
!syntax parameters /VectorPostprocessors/CSVReaderVectorPostprocessor | ||
|
||
!syntax inputs /VectorPostprocessors/CSVReaderVectorPostprocessor | ||
|
||
!syntax children /VectorPostprocessors/CSVReaderVectorPostprocessor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
test/tests/functions/piecewise_constant_from_csv/data_element_t2.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
0,0,0.2 | ||
0,0,1.6 | ||
0,0,0.8 | ||
0,0,1.8 | ||
0,0,2 | ||
1,0,2.2 | ||
1,0,4.2 | ||
1,0,6.2 | ||
1,0,34.2 | ||
1,0,48 | ||
1,0,20 | ||
1,0,0.2 | ||
1,0,22 | ||
1,0,34 | ||
1,0,3.6 | ||
1,0,-2 |
Binary file added
BIN
+41.7 KB
test/tests/functions/piecewise_constant_from_csv/gold/piecewise_constant_elem_multiple.e
Binary file not shown.
Oops, something went wrong.