#include "cs_defs.h"
#include <assert.h>
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "bft_mem.h"
#include "bft_error.h"
#include "bft_printf.h"
#include "cs_equation_param.h"
#include "cs_log.h"
#include "cs_mesh_location.h"
#include "cs_post.h"
#include "cs_field.h"
#include "cs_field_default.h"
Functions | |
int | cs_variable_cdo_field_create (const char *name, const char *label, int location_id, int dim, int has_previous) |
Add a field shared between CDO and legacy schemes. This field is related to a general solved variable, with default options. More... | |
int | cs_variable_field_create (const char *name, const char *label, int location_id, int dim) |
Add field defining a general solved variable, with default options. More... | |
cs_equation_param_t * | cs_field_get_equation_param (cs_field_t *f) |
Access a field's equation parameters. More... | |
const cs_equation_param_t * | cs_field_get_equation_param_const (const cs_field_t *f) |
Access a field's equation parameters for read only. More... | |
void | cs_field_build_bc_codes_all (void) |
Allocate and map boundary condition coefficients for all variable fields. More... | |
void | cs_field_free_bc_codes_all (void) |
Deallocate and unmap boundary condition coefficients for all variable fields. More... | |
Field utility functions.
void cs_field_build_bc_codes_all | ( | void | ) |
Allocate and map boundary condition coefficients for all variable fields.
void cs_field_free_bc_codes_all | ( | void | ) |
Deallocate and unmap boundary condition coefficients for all variable fields.
cs_equation_param_t* cs_field_get_equation_param | ( | cs_field_t * | f | ) |
Access a field's equation parameters.
If the equation parameters were never initialized, they will be initialized based on the current defaults.
If the field does not have associated equation paremeters (i.e. is not a variable field or is a CDO field (which is referenced by but does not directly reference equations), NULL is returned.
[in,out] | f | pointer to associated field |
const cs_equation_param_t* cs_field_get_equation_param_const | ( | const cs_field_t * | f | ) |
Access a field's equation parameters for read only.
If the equation parameters were never initialized, the current default parameters will be returned instead.
If the field does not have associated equation parameters (i.e. is not a variable field or is a CDO field (which is referenced by but does not directly reference equations), NULL is returned.
[in] | f | pointer to associated field |
int cs_variable_cdo_field_create | ( | const char * | name, |
const char * | label, | ||
int | location_id, | ||
int | dim, | ||
int | has_previous | ||
) |
Add a field shared between CDO and legacy schemes. This field is related to a general solved variable, with default options.
[in] | name | field name |
[in] | label | field default label, or empty |
[in] | location_id | id of associated location |
[in] | dim | field dimension |
[in] | has_previous | no if lower than 1 |
int cs_variable_field_create | ( | const char * | name, |
const char * | label, | ||
int | location_id, | ||
int | dim | ||
) |
Add field defining a general solved variable, with default options.
[in] | name | field name |
[in] | label | field default label, or empty |
[in] | location_id | id of associated location |
[in] | dim | field dimension |