CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

OpenFOAM - Dakota coupling/Issues with Dakota parameters file

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 4, 2020, 13:34
Default OpenFOAM - Dakota coupling/Issues with Dakota parameters file
  #1
New Member
 
Join Date: Jan 2020
Posts: 6
Rep Power: 6
ilaj is on a distinguished road
Hello,


I am looking to couple OpenFOAM with Dakota. I started with tutorials available in Wolf Dynamics. I have been working on the simple cavity gradient case. Here's the Dakota input file -


environment
tabular_data
tabular_data_file = 'table_out.dat'

method
conmin_frcg
max_iterations = 100
convergence_tolerance = 1e-4
max_function_evaluations = 20


variables
continuous_design = 1
cdv_initial_point -1.8
cdv_lower_bounds -2.0
cdv_upper_bounds 3.0
cdv_descriptor 'x1'

responses
num_objective_functions = 1
numerical_gradients

method_source dakota
interval_type forward

#fd_gradient_step_size = .000001
fd_gradient_step_size = 1.e-5

# to instead use analytic gradients returned by the simulator comment the
# preceding two lines and uncomment the following:
## analytic_gradients

no_hessians

sense 'max'


interface
fork
asynchronous
#evaluation_concurrency = 4
evaluation_concurrency = 1
analysis_driver = 'OF_D.sh'
parameters_file = 'params.in'
results_file = 'results.out'
work_directory directory_tag

copy_files = 'templatedir/*'


# uncomment to leave params.in and results.out files in work_dir subdirectories
named 'workdir' file_save directory_save


# when using conmin_frcg (above) with analytic_gradients (below),
# need to turn off the active set vector




When I run this file, I get the following error -

/params.in: line 1: 1: command not found
/params.in: line 2: -1.800000000000000e+00: command not found
/params.in: line 3: 1: command not found
/params.in: line 4: 1: command not found
/params.in: line 5: 1: command not found
/params.in: line 6: 1: command not found
/params.in: line 7: 0: command not found

/params.in: line 8: 1: command not found


When I add the aprepro command to the following statement in the input file,
# uncomment to leave params.in and results.out files in work_dir subdirectories
named 'workdir' file_save directory_save aprepro



Here's the error I get -

/params.in: line 9: syntax error: unexpected end of file


It seems like the issue is with the Dakota parameters file format. But I am not sure how to fix it. Thank you for any help you can provide!


- Ilaj

Last edited by ilaj; February 10, 2020 at 11:21.
ilaj is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Thermophysical Properties wsmith02 OpenFOAM 4 June 1, 2023 15:30
how to calculate mass flow rate on patches and summation of that during the run? immortality OpenFOAM Post-Processing 104 February 16, 2021 09:46
[waves2Foam] Tripping over several build issues with OpenFOAM 2.1.1 Yage OpenFOAM Community Contributions 18 February 15, 2016 03:02
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 Seroga OpenFOAM Community Contributions 9 June 12, 2015 18:18
[swak4Foam] Error bulding swak4Foam sfigato OpenFOAM Community Contributions 18 August 22, 2013 13:41


All times are GMT -4. The time now is 04:37.