Reads boundary conditions files.
30 FILE* file_imped = NULL;
31 FILE* file_radiants = NULL;
33 FILE* file_lambda = NULL;
34 FILE* file_gamma = NULL;
35 FILE* file_func = NULL;
74 perror(
"Coudln't find IMPEDANCE file ");
85 perror(
"Coudln't find RADIATING PANELS file ");
123 file_lambda = fopen(flambda,
"r");
124 file_gamma = fopen(fgamma ,
"r");
125 file_func = fopen(ffunc ,
"r");
126 file_g = fopen(fg ,
"r");
139 logger(
LOG_WARN,
"Number of lines in file %s > number of unsymmetrized panels: %d > %d, only %d lines will be read\n",flambda,
bc.
nlambda,mpi_ncntr,mpi_ncntr);
144 logger(
LOG_WARN,
"Number of lines in file %s > number of unsymmetrized panels: %d > %d, only %d lines will be read\n",fgamma,
bc.
ngamma,mpi_ncntr,mpi_ncntr);
149 logger(
LOG_WARN,
"Number of lines in file %s > number of unsymmetrized panels: %d > %d, only %d lines will be read\n",ffunc,
bc.
nfunc,mpi_ncntr,mpi_ncntr);
154 logger(
LOG_WARN,
"Number of lines in file %s > 1, only 1 lines will be read (g is constant in space) \n",fg);
165 for(j =0;j<nlambda;j++){
168 for(j =0;j<ngamma;j++){
171 for(j =0;j<nfunc;j++){
180 for(j =0;j<nlambda;j++){
181 fgets(line,100,file_lambda);
191 for(j =0;j<ngamma;j++){
192 fgets(line,100,file_gamma);
202 for(j =0;j<nfunc;j++){
203 fgets(line,100,file_func);
205 bc.
func[i1-1] = d1 + I*d2;
214 fgets(line,100,file_g);
229 fgets(line,100,file_imped);
248 fgets(line,100,file_radiants);
const char * bc_gamma_file
Definition: structs.h:422
int nlambda
Definition: structs.h:618
int ncntr
Definition: structs.h:299
int nimped
Definition: structs.h:450
#define CREAL(x)
Definition: functions.h:49
int nfunc
Definition: structs.h:620
BOOL radiantbody
Definition: structs.h:489
#define CIMAG(x)
Definition: functions.h:50
COMPLEX * lambda
Definition: structs.h:623
int nchief
Definition: structs.h:301
struct bc_struct bc
Definition: globals.h:54
int nsig
Definition: structs.h:456
struct file_info * fileinfo
Definition: globals.h:32
int ng
Definition: structs.h:621
COMPLEX radiantfield
Definition: structs.h:493
int ngamma
Definition: structs.h:619
DOUBLE rho
Definition: structs.h:476
#define COMPLEX
Definition: types.h:48
int custombc
Definition: structs.h:523
#define VECTOR_SCANF
Definition: formats.h:65
struct modsol_info * modsolinfo
Definition: globals.h:44
const char * bc_g_file
Definition: structs.h:424
DOUBLE z
Definition: structs.h:35
struct vector g
Definition: structs.h:626
#define LOG_DEBUG
Definition: logger.h:27
COMPLEX * gamma
Definition: structs.h:624
const char * bc_func_file
Definition: structs.h:423
int nradian
Definition: structs.h:452
#define LOG_WARN
Definition: logger.h:25
int getlines(FILE *file)
Definition: utils.c:29
DOUBLE x
Definition: structs.h:31
#define IMPED_SCANF
Definition: formats.h:64
int nome
Definition: structs.h:458
COMPLEX * func
Definition: structs.h:625
BOOL impedentbody
Definition: structs.h:491
const char * imped_file
Definition: structs.h:411
const char * bc_lambda_file
Definition: structs.h:421
const char * radiants_file
Definition: structs.h:413
#define MAX_PATH
Definition: constants.h:29
void logger(int level, char *msg,...)
Definition: logger.c:56
struct modgeom_info * modgeominfo
Definition: globals.h:38
COMPLEX impedance
Definition: structs.h:495
DOUBLE y
Definition: structs.h:33