module myna.application.thesis.parse
function load_file_lines
load_file_lines(filepath, newline='\n')
function find_keyword_line_indices
find_keyword_line_indices(file_lines, keyword, filepath)
function adjust_parameter
adjust_parameter(filepath, keyword, value)
Updates keyword value for 3DThesis input file
Keyword arguments: filepath -- filepath for the 3DThesis file to update keyword -- keyword value to update in specified file value -- value to update keyword to
function read_parameter
read_parameter(filepath, keyword)
Read the specified keyword value from file
function copy_simulation_result
copy_simulation_result(
new_file,
result_file='3DThesis/TestInputs/Data/TestSim.Final.csv'
)
Copies final simulation results to the specified folder
function update_domain_resolution
update_domain_resolution(domain_file, direction, value)
Update the mesh resolution for one direction in a Thesis Domain file.
function write_file_lines
write_file_lines(filepath, file_lines, newline=None, trailing_newline=None)
Write newline-stripped lines back to a file.
function replace_first_nonempty_line
replace_first_nonempty_line(filepath, new_value)
Replace the first non-empty line in a Thesis text input file.
function replace_block_header
replace_block_header(filepath, block_names, new_value)
Replace the first matching Thesis block header without touching preambles.
function find_named_block
find_named_block(filepath, block_name)
Return the content bounds for a simple named Thesis block.
function set_block_keyword
set_block_keyword(filepath, block_name, keyword, value)
Update or append one keyword within a simple Thesis block.
function remove_block_keyword
remove_block_keyword(filepath, block_name, keyword)
Remove one keyword from a simple Thesis block when it exists.
This file was automatically generated via lazydocs.