MoDeNa  1.0
Software framework facilitating sequential multi-scale modelling
struts.cc File Reference

Functions governing creation of struts. More...

#include "globals.hh"
#include "geometry.hh"
#include "edges.hh"
#include "nodes.hh"
#include <gsl/gsl_errno.h>
#include <gsl/gsl_math.h>
#include <gsl/gsl_min.h>
#include <iostream>

Go to the source code of this file.

Functions

double fn1 (double x, void *p)
 Objective function for optimization. We want to have certain strut porosity. More...
 
int optim (void *params, double &m, double &a, double &b, bool report)
 GSL minimizer for univariate scalar function. More...
 

Detailed Description

Functions governing creation of struts.

Author
Pavel Ferkl

Definition in file struts.cc.

Function Documentation

◆ fn1()

double fn1 ( double  x,
void *  p 
)

Objective function for optimization. We want to have certain strut porosity.

Parameters
[in]xindependent variable (dstrut)
[in]pfunction parameters (fn1_params)

Definition at line 17 of file struts.cc.

◆ optim()

int optim ( void *  params,
double &  m,
double &  a,
double &  b,
bool  report 
)

GSL minimizer for univariate scalar function.

Parameters
[in]paramsfunction parameters
[in]minitial guess of minimum location
[in]alower bracket bound
[in]bupper bracket bound
[in]reportshow output

Definition at line 46 of file struts.cc.

Referenced by main().